:root {
    --bg: #f7f1e6;
    --bg2: #fcf9f2;
    --ink: #1f3559;
    --muted: #6b6358;
    --primary: #203d6b;
    --secondary: #7d1f2b;
    --accent: #9b6d3d;
    --card: #fffdf8;
    --line: rgba(31, 53, 89, 0.12);
    --shadow: rgba(31, 53, 89, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1000px 520px at 10% -12%, rgba(32, 61, 107, 0.18) 0%, transparent 70%),
        radial-gradient(920px 500px at 100% -18%, rgba(125, 31, 43, 0.13) 0%, transparent 72%),
        radial-gradient(800px 400px at 50% 105%, rgba(155, 109, 61, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg), var(--bg2));
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(252, 249, 242, 0.88);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(155, 109, 61, 0.2);
    box-shadow: 0 10px 24px rgba(31, 53, 89, 0.14);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-kicker {
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--secondary);
    font-weight: 700;
}

.brand .dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(130deg, var(--secondary), var(--primary));
    box-shadow: 0 0 0 5px rgba(125, 31, 43, 0.12);
}

.brand h1 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.4px;
}

nav a {
    text-decoration: none;
    color: var(--ink);
    margin-left: 18px;
    font-weight: 600;
    transition: color .18s ease;
}

nav a:hover {
    color: var(--secondary);
}

.hero {
    padding: 78px 0 52px;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.pill {
    display: inline-block;
    margin: 0 auto 14px;
    background: rgba(125, 31, 43, 0.10);
    color: var(--secondary);
    border: 1px solid rgba(125, 31, 43, 0.14);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.8rem;
}

.hero h2 {
    margin: 0 auto 18px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.lead {
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 58ch;
    line-height: 1.78;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.primary-cta,
.secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary-cta {
    background: linear-gradient(135deg, var(--secondary), #9f2d3e);
    color: #fff;
    box-shadow: 0 14px 30px rgba(125, 31, 43, 0.22);
}

.secondary-cta {
    border: 1px solid rgba(32, 61, 107, 0.16);
    background: rgba(255, 255, 255, 0.74);
    color: var(--primary);
}

.primary-cta:hover,
.secondary-cta:hover,
.news-link:hover {
    transform: translateY(-1px);
}


.section {
    padding: 22px 0 52px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, rgba(125, 31, 43, 0.95), rgba(32, 61, 107, 0.35));
}

.section-news {
    position: relative;
    margin: 10px 0 20px;
    padding: 34px;
    border: 1px solid rgba(32, 61, 107, 0.08);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 244, 0.88)),
        radial-gradient(circle at top right, rgba(125, 31, 43, 0.09), transparent 34%),
        radial-gradient(circle at bottom left, rgba(32, 61, 107, 0.08), transparent 38%);
    box-shadow: 0 20px 44px rgba(31, 53, 89, 0.08);
}

.section-news::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.section-head-news {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.section-head h3 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    line-height: 1.12;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.grid-news {
    margin-top: 28px;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 245, 0.95));
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(32, 61, 107, 0.1);
    box-shadow: 0 16px 34px rgba(31, 53, 89, 0.09);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 31, 43, 0.18);
    box-shadow: 0 24px 40px rgba(31, 53, 89, 0.14);
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: rgba(247, 241, 230, 0.9);
}

.news-placeholder {
    width: 100%;
    height: 210px;
    display: block;
    background:
        linear-gradient(120deg, rgba(32, 61, 107, 0.92), rgba(125, 31, 43, 0.95)),
        linear-gradient(45deg, #1d3559, #9b6d3d);
}

.news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 22px;
}

.news-body .date {
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-body h4 {
    margin: 10px 0 12px;
    font-size: 1.16rem;
    line-height: 1.35;
}

.news-body .bajada {
    margin: 0 0 10px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.6;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.news-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 11px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), #9f2d3e 55%, #b24b4b 100%);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(125, 31, 43, 0.18);
}

.news-link::after {
    content: "\2192";
    font-size: 0.92rem;
}

.news-link:hover {
    filter: brightness(1.05);
}

.noticia-main {
    padding: 30px 0 50px;
}

.noticia-detalle {
    max-width: 860px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 35px rgba(31, 53, 89, 0.1);
    overflow: hidden;
}

.noticia-imagen {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    background: rgba(247, 241, 230, 0.9);
}

.noticia-contenido {
    padding: 22px;
}

.noticia-contenido h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.4rem, 3.6vw, 2rem);
}

.noticia-bajada {
    margin: 0 0 18px;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.55;
}

.noticia-descripcion {
    color: var(--ink);
    line-height: 1.7;
}

.noticia-descripcion p {
    margin: 0 0 12px;
}

.empty-news {
    margin-top: 24px;
    border: 2px dashed rgba(31, 53, 89, 0.18);
    border-radius: 20px;
    padding: 30px;
    background: rgba(255, 253, 248, 0.95);
    color: var(--muted);
    text-align: center;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

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

@media (max-width: 640px) {
    .section-news {
        padding: 24px 18px;
        border-radius: 24px;
    }
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
    .brand-logo {
        width: 48px;
        height: 48px;
    }
    .brand h1 {
        font-size: 0.94rem;
    }
    nav a {
        margin-left: 0;
        margin-right: 12px;
        font-size: 0.9rem;
    }
    .hero {
        padding: 52px 0 36px;
    }
    .grid-news {
        grid-template-columns: 1fr;
    }
}




