/* Estilos del sitio publico, extraidos de app/Views/blog/index.php (antes en <style> en linea). */
:root {
    --marketing-max: 1240px;
    --marketing-copy: #5a6578;
    --marketing-surface: rgba(255, 255, 255, 0.82);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(11, 110, 79, 0.09), transparent 28%),
        linear-gradient(180deg, #f6f8fc 0%, #ffffff 30%, #f2f5fb 100%);
    color: var(--cs-gray-900);
}

a:hover { text-decoration: none; }

.shell {
    width: min(100%, var(--marketing-max));
    margin: 0 auto;
    padding-left: clamp(1.15rem, 3vw, 2rem);
    padding-right: clamp(1.15rem, 3vw, 2rem);
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.9rem 0;
    background: #F6F8FC;
    border-bottom: 1px solid rgba(28, 36, 56, 0.06);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand img { height: 54px; width: auto; }

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.08);
    color: var(--cs-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero {
    padding: clamp(1.5rem, 3.4vw, 2.6rem) 0 2.2rem;
}

.hero h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 26ch;
}

.lead {
    margin: 0;
    max-width: 62ch;
    color: var(--marketing-copy);
    font-size: 1.05rem;
    line-height: 1.65;
}

.blog-section { padding: 0 0 4rem; }

.featured-post {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(28, 36, 56, 0.08);
}

.featured-post-media {
    aspect-ratio: 16 / 10;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(28, 36, 56, 0.08);
    box-shadow: 0 22px 54px rgba(17, 25, 43, 0.12);
    background: #e5e7eb;
}

.featured-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-post-chip {
    display: inline-flex;
    margin-bottom: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.08);
    color: var(--cs-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured-post h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.featured-post p {
    margin: 0 0 1.1rem;
    color: var(--marketing-copy);
    font-size: 1rem;
    line-height: 1.65;
}

.featured-post a.read-more,
.post-card a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cs-blue);
    font-weight: 700;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.post-card {
    background: var(--marketing-surface);
    border: 1px solid rgba(28, 36, 56, 0.08);
    border-radius: 22px;
    padding: 1rem 1rem 1.15rem;
    box-shadow: 0 14px 36px rgba(17, 25, 43, 0.06);
}

.post-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(28, 36, 56, 0.08);
    margin-bottom: 0.85rem;
    background: #e5e7eb;
}

.post-card-chip {
    display: inline-flex;
    margin: 0 0 0.65rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(11, 110, 79, 0.08);
    color: var(--cs-blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.post-card h3 {
    margin: 0.2rem 0 0.55rem;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--cs-blue);
}

.post-card p {
    margin: 0;
    color: var(--marketing-copy);
    font-size: 0.92rem;
    line-height: 1.55;
}

.post-card .read-more { margin-top: 0.75rem; font-size: 0.9rem; }

.footer {
    margin-top: 4rem;
    padding: 2rem 0 2.6rem;
    background: var(--cs-navy);
}

.footer-links a,
.footer span { color: rgba(255,255,255,0.74); }

@media (max-width: 980px) {
    .featured-post { grid-template-columns: 1fr; }
    .featured-post-media { order: -1; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .brand img { height: 42px; }
    .header-actions { width: 100%; justify-content: flex-end; gap: 0.45rem; }
    .header-actions a:not(.ios-btn) { display: none; }
    .header-actions .ios-btn { font-size: 12px; padding: 0.62rem 0.9rem; }
}

@media (max-width: 560px) {
    .header-inner { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; }
    .brand { flex-shrink: 0; min-width: 0; }
    .header-actions { width: auto !important; }
    .header-actions a:not(.ios-btn-primary) { display: none !important; }
}
