* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
}

/* HEADER FIJO */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.header-logo {
    width: 40%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.473);
}

.header-logo {
    font-size: 22px;
    font-weight: 700;
}

.header-nav {
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 28px;
    padding: 0 5%;
}

.header-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: black;
}

/* HERO */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* MISMA POSICIÓN PARA LAS DOS IMÁGENES */
.hero-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    pointer-events: none;
}

/* CAPA 1 */
.hero-img-base {
    z-index: 1;
}

/* Oscurecedor opcional */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.50),
            rgba(0, 0, 0, 0.10),
            rgba(0, 0, 0, 0.35));

    z-index: 1;
    pointer-events: none;
}

/* CAPA 2: TEXTO ENTRE AMBAS IMÁGENES */
.hero-text-back {
    position: absolute;
    z-index: 2;

    top: 25%;
    left: 85%;
    transform: translate(-50%, -50%);

    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-text-back h1 {
    font-size: clamp(40px, 10vw, 190px);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -7px;
    text-transform: uppercase;
    text-align: start;
    color: rgb(255, 255, 255);
}

/* CAPA 3: PNG RECORTADO ARRIBA DEL TEXTO */
.hero-img-cutout {
    z-index: 3;
}

/* CAPA 4: TEXTO SUPERIOR */
.hero-text-front {
    position: absolute;
    z-index: 4;

    top: 43%;
    left: 75%;
    transform: translate(-50%, -50%);

    width: 100%;
    text-align: center;
    pointer-events: none;
}

.hero-text-front h2 {
    font-size: clamp(40px, 10vw, 180px);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -5px;
    text-transform: uppercase;
    text-align: start;
    color: rgb(255, 255, 255);
}

/* CAPA 5: CONTENEDOR EXTRA SOBRE TODO */
.hero-side-card {
    position: absolute;
    z-index: 5;

    left: 48px;
    bottom: 80px;

    width: auto;
    height: auto;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 14px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.hero-side-card img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.hero-side-card span {
    font-size: 16px;
    font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .site-header {
        height: 70px;
        padding: 0 24px;
    }

    .header-nav {
        display: none;
    }

    .hero-img {
        object-position: center center;
    }

    .hero-text-back h1 {
        font-size: clamp(58px, 18vw, 120px);
        letter-spacing: -3px;
    }

    .hero-text-front {
        right: 24px;
        left: 24px;
        bottom: 130px;

        max-width: none;
        text-align: center;
    }

    .hero-text-front h2 {
        font-size: 40px;
    }

    .hero-text-front p {
        font-size: 16px;
    }

    .hero-side-card {
        left: 50%;
        bottom: 28px;
        transform: translateX(-50%);

        width: calc(100% - 48px);
        max-width: 320px;
        justify-content: center;
    }
}

.hero-text-back,
.hero-text-front {
    animation: heroTextUp 1.5s ease-in-out both;
}

.hero-text-front {
    animation-delay: 0.20s;
}

@keyframes heroTextUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hero-bottom-buttons {
    position: absolute;
    z-index: 5;
    right: 48px;
    bottom: 80px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.hero-btn {
    min-width: 170px;
    height: 42px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fd1745;

    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-6px);
    background: rgba(12, 12, 12, 0.904);
}

.primary {
    width: 100%;
    height: 100vh;
}

.primary-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    margin-top: 0px;
    gap: 0px;
}

.primary-box {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: start;
}

.box2 span {
    font-size: 4.2rem;
    color: #af0023de;
    margin-bottom: 8px;
    font-family: "Bebas Neue", sans-serif;
}

.box3 span {
    font-size: 3.5rem;
    color: #ffffffde;
    margin-bottom: 8px;
    font-family: "Bebas Neue", sans-serif;
}

.box1 {
    grid-column: span 6 / span 6;
    grid-row: span 4 / span 4;
    background-image: url(/assets/images/alfonsin.jpg);
    background-position: top;
    background-size: cover;
}

.box2 {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 7;
    background-color: #ffffff;
}

.box3 {
    grid-column: span 3 / span 3;
    grid-row: span 4 / span 4;
    grid-row-start: 5;
    background-color: #af0023;
}

.box4 {
    grid-column: span 5 / span 5;
    grid-row: span 4 / span 4;
    grid-column-start: 4;
    grid-row-start: 5;
    background-image: url(/assets/images/ucr-flag.png);
    background-position: top;
    background-size: cover;
}



.primary-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.box1::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: #af002396;

    transform: translatex(100%);
    transition: transform 0.45s ease;
}

.box4::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: #ff023496;

    transform: translatex(100%);
    transition: transform 0.45s ease;
}

.primary-box:hover::before {
    transform: translateY(0);
}

.primary-box>* {
    position: relative;
    z-index: 2;
}

.box2 .animated-text,
.box3 .animated-text {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    line-height: 0.95;
}

.box2 .animated-text span,
.box3 .animated-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
}

.box2 .animated-text.is-visible span,
.box3 .animated-text.is-visible span {
    animation: wordFadeUp 0.7s ease forwards;
    animation-delay: calc(var(--i) * 0.08s);
}

@keyframes wordFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.secondary {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 40px;
    background-color: #ffffff;
    margin-top: 80px;
}

.secondary-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
}

.secondary-card {
    width: 450px;
    height: 700px;
    background-color: #333;
    display: flex;
    flex-direction: column;
}

.card-header {
    width: 100%;
    height: 10%;
    padding: 20px;
    background-color: #af0023;
}

.card-body {
    width: 100%;
    height: 70%;
    padding: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
    background-color: #af0023;
    position: relative;
}

.card-body h2 {
    color: white;
    font-size: 5.5rem;
    text-transform: uppercase;
    font-family: "Bebas Neue", sans-serif;
    text-align: start;
}

.card-bottom {
    width: 100%;
    height: 20%;
    background-color: #af0023;
    padding: 20px;
}

.card-bottom a {
    text-decoration: none;
    color: #790018;
    font-size: 2rem;
    font-family: "Bebas Neue", sans-serif;
    text-align: start;
}

.secondary-card {
    width: 450px;
    height: 700px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-color: #af0023;
}

.secondary-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.secondary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.card1::before {
    background-image: url("/assets/images/ucr-flag.png");
}

.card2::before {
    background-image: url("/assets/images/ucr.jpg");
}

.card3::before {
    background-image: url("/assets/images/alfonsin4.jpg");
}

.card4::before {
    background-image: url("/assets/images/ucr-bg1.jpg");
}

.secondary-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.secondary-card:hover::after {
    opacity: 1;
}

.card-header,
.card-body,
.card-bottom {
    position: relative;
    z-index: 3;
    background-color: transparent;
}

.secondary-card:hover .card-body h2,
.secondary-card:hover .card-bottom a {
    color: white;
}

.card-body h2,
.card-bottom a {
    transition: color 0.3s ease;
}

.separador {
    width: 100%;
    height: 200px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    margin-top: 80px;
}

.sep1 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;

    width: 320px;
    display: flex;
    align-items: center;
    justify-content: start;
    background-color: #af0023;
    padding: 28px;
    margin-top: 0px;
    padding-left: 40px;
}

.sep1 h2 {
    font-size: 5rem;
    color: white;
    margin-bottom: 8px;
    font-family: "Bebas Neue", sans-serif;
}

.sep2 {
    grid-column: span 5 / span 5;
    grid-row: span 2 / span 2;
    grid-column-start: 4;
}

.tl-root {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 520px;
    background: #af0023;
    overflow: hidden;
    padding-left: 40px;
}

.tl-left {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* ← evita que el contenido interno empuje el layout */
    min-height: 0;
    /* ← necesario para que flex hijo pueda scrollear */
    margin-top: 40px;
    font-family: "Bebas Neue", sans-serif;
}

.tl-meta {
    padding: 14px 24px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}

.tl-meta span {
    font-size: 5rem;
    color: white;
    line-height: 1.5;
}

.tl-years {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 0;
    /* ← clave para scroll en flex */
}

.tl-year-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    font-family: "Bebas Neue", sans-serif;
    color: white;
}

.tl-year-btn:hover {
    background: var(--color-background-secondary);
}

.tl-year-btn.active {
    background: #333;
}

.tl-year-btn.active .yr-num {
    color: var(--color-text-primary);
    font-weight: 500;
}

.tl-year-btn.active .yr-dot {
    background: var(--color-text-primary);
}

.yr-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-border-secondary, #999);
    flex-shrink: 0;
    transition: background 0.15s;
}

.yr-num {
    font-size: 22px;
    color: white;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1;
    transition: color 0.15s;
}

.yr-plus {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.tl-right {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    /* ← igual que tl-left */
}

.tl-topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 28px;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}

.tl-topbar a {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.15s;
}

.tl-topbar a:hover,
.tl-topbar a.active {
    color: var(--color-text-primary);
}

.tl-topbar .sep {
    width: 1px;
    height: 12px;
    background: var(--color-border-tertiary);
}

.tl-topbar .menu {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tl-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 0;
    /* ← para que los hijos del grid puedan scrollear */
}

.tl-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    overflow-y: auto;
    /* ← scroll del panel central */
    min-height: 0;
}

.tl-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-block {
    flex: 1;
}

.stat-num {
    font-size: 28px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-desc {
    font-size: 10px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin-top: 4px;
    max-width: 110px;
}

.tl-title-big {
    font-size: 38px;
    font-weight: 500;
    color: white;
    letter-spacing: -2px;
    line-height: 0.95;
    margin-bottom: 12px;
    transition: opacity 0.3s;
    font-family: "Bebas Neue", sans-serif;
}

.tl-subtitle {
    font-size: 4rem;
    color: white;
    margin-bottom: 8px;
    font-family: "Bebas Neue", sans-serif;
}

.tl-desc {
    font-size: 1.2rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tl-read-btn {
    display: none;
    padding: 8px 18px;
    border: 0.5px solid var(--color-border-primary, #333);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-primary);
    background: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background 0.15s, color 0.15s;
}

.tl-read-btn:hover {
    background: var(--color-text-primary);
    color: var(--color-background-primary);
}

.tl-img-wrap {
    position: relative;
    overflow: hidden;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s;
}

.tl-img-wrap .year-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 72px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.07);
    letter-spacing: -4px;
    pointer-events: none;
    line-height: 1;
}

.tl-img-wrap .dots {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-img-wrap .dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

.tl-img-wrap .dots span.active {
    background: rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar discreta en ambos paneles */
.tl-years::-webkit-scrollbar,
.tl-info::-webkit-scrollbar {
    width: 4px;
}

.tl-years::-webkit-scrollbar-track,
.tl-info::-webkit-scrollbar-track {
    background: transparent;
}

.tl-years::-webkit-scrollbar-thumb,
.tl-info::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.tl-years::-webkit-scrollbar-thumb:hover,
.tl-info::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Overrides & mejoras específicas para la sección fourth / organigrama */
.fourth {
    width: 100%;
    height: 100vh;
    background: #faf9f7;
    padding: 48px;
}

.fourth-content {
    width: 100%;
    height: 100%;
    background-color: #79001800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fourth-title {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.fourth-title h2 {
    font-family: "Bebas Neue", sans-serif;
    color: #790018;
    text-transform: uppercase;
    font-size: 7rem;
}

.fourth-slider {
    width: 70%;
    height: 100%;
}


/* ─── Section Layout ────────────────────────────────────────── */
/*
      La sección ocupa el 100vh y se divide en dos columnas:
        - Columna izquierda: bloque del título (fijo, independiente del slider)
        - Columna derecha:   slider + controles
      Al avanzar el slider, la columna izquierda colapsa a 0 y el slider
      ocupa el ancho total gracias a la transición de grid-template-columns.
    */
.fourth {
    display: grid;
    grid-template-columns: 520px 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
    height: 100vh;
    min-height: 600px;
    padding: 48px;
    padding-top: 80px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    /* Anima el colapso/expansión de la columna del título */
    transition: grid-template-columns 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Estado expandido: columna del título colapsada a 0 */
.fourth.slider-expanded {
    grid-template-columns: 0px 1fr;
}

/* ─── Título (columna izquierda, ocupa ambas filas) ─────────── */
.title-block {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8px;
    padding-right: 32px;
    overflow: hidden;
    /* evita que el texto desborde durante el colapso */
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.title-block.hidden {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.section-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 80px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 2px;
    user-select: none;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 7rem;
    line-height: 1.05;
    color: #af0023;
    letter-spacing: 1px;
    margin-top: 4px;
}

.section-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: #790018;
    letter-spacing: 0px;
    margin-top: 4px;
    text-transform: lowercase;
}

.section-periodo {
    font-size: 2rem;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: 0px;
    margin-top: 8px;
    text-transform: lowercase;
}

/* ─── Slider (columna derecha, fila 1) ─────────────────────── */
.slider-container {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 16px;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

/* ─── Tarjetas ──────────────────────────────────────────────── */
/*
      Cada tarjeta ocupa 1/3 del ancho del track (menos gaps),
      y la altura la define el contenedor (100% del slider-container).
      Resultado: tarjetas más verticales que horizontales.
    */
.card {
    flex: 0 0 calc(33.333% - 11px);
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    border: 5px solid #af0023;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.card:hover .card-bg {
    transform: scale(1.06);
}

/* Gradiente oscuro inferior para legibilidad del texto */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.20) 40%,
            rgba(0, 0, 0, 0.80) 100%);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 200;
    z-index: 2;
    transition: border-color 0.2s, color 0.2s;
}

.card:hover .card-badge {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 22px;
    z-index: 2;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ─── Controles (columna derecha, fila 2) ───────────────────── */
.controls {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
}

/* Botones de navegación */
.nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid #303030;
    background: transparent;
    color: #af0023;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.15s;
    font-size: 0;
    /* oculta texto inline, usamos SVG interno */
}

.nav-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-btn:hover:not(:disabled) {
    background: #1e1e1e;
    border-color: #555;
}

.nav-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Indicador de progreso (dots) */
.progress-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dot {
    height: 5px;
    border-radius: 3px;
    background: #333;
    transition: width 0.35s ease, background 0.35s ease;
    width: 5px;
}

.dot.active {
    width: 22px;
    background: #fff;
}

.fifth {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    padding: 48px;
}

.fifth-content {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.fifth-title {
    width: 30%;
    height: 100%;
    padding-bottom: 15%;
}

.fifth-title h2 {
    font-family: "Bebas Neue", sans-serif;
    color: #af0023;
    text-transform: uppercase;
    font-size: 8rem;
}

.fifth-title span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: #46000e;
    letter-spacing: 0px;
    margin-top: 4px;
    text-transform: lowercase;
}

.fifth-gob {
    width: 70%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gobernador {
    width: 400px;
    height: 650px;
    background-color: #fcfcfc;
    background-position: center;
    background-size: cover;
    position: relative;
    border: 5px solid #af0023;
}

.gobernador-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.20) 40%,
            rgba(0, 0, 0, 0.80) 100%);
}

.gob-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px 22px;
    position: absolute;
    z-index: 2;
}

.gob-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.gob-text {
    flex: 1;
}

.gob-provincia-img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.gob-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.gob-desc {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.sixth {
    width: 100%;
    height: auto;
    background-color: #1a1a1a;
    padding: 48px;
}

.news-principal {
    width: 100%;
    height: 600px;
    background-color: #46000e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.news-principal-container {
    width: 100%;
    height: 600px;
    display: flex;
}

.news-title {
    width: 60%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: end;
    justify-content: start;
    padding: 48px;

}

.news-title h3 {
    font-size: 2rem;
    color: white;
    z-index: 9;
}

.news-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.20) 40%,
            rgba(0, 0, 0, 0.80) 100%);
}

.news-body {
    width: 40%;
    height: 100%;
    background-color: #af0023;
    padding: 48px;
}

.news-subtitle span {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.news-descripton {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-descripton p {
    color: white;
}

.read-more-btn {
    margin-top: 48px;
    text-decoration: none;
    color: white;
    font-weight: 700;
}

.news-grid {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
}

.news-card {
    width: 50%;
    height: 600px;
    background-color: #999;
}

.news-card-body {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.footer-wrap {
    font-family: var(--font-sans);
    width: 100%;
}

.hero-zone {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay-info {
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 24px;
    font-family: "Bebas Neue", sans-serif;
}

.overlay-info span {
    font-size: 3rem;
}

.overlay-info a {
    font-size: 2rem;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #fff;
}

.info-row i {
    font-size: 2rem;
    color: #fff;
}

.info-row a {
    color: #fff;
    text-decoration: none;
}

.info-row a:hover {
    text-decoration: underline;
}

.social-block {
    width: 300px;
    height: 100px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    align-items: center;
}
.fa-brands{
    font-size: 3rem;
}
.soc-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
}




.forms-zone {
    background: #0a0a0a;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.form-col h3 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.form-col p {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}

.form-col label {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
    margin-top: 10px;
}

.form-col input,
.form-col textarea,
.form-col select {
    width: 100%;
    background: #161616;
    border: 0.5px solid #2a2a2a;
    color: #fff;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.form-col input:focus,
.form-col textarea:focus {
    border-color: #cc0000;
}

.form-col textarea {
    resize: vertical;
    min-height: 80px;
}

.form-col input::placeholder,
.form-col textarea::placeholder {
    color: #444;
}

.form-col .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-col .row2>div {
    display: flex;
    flex-direction: column;
}

.btn-red {
    margin-top: 14px;
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s;
}

.btn-red:hover {
    background: #e60000;
}

.nl-inline {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.nl-inline input {
    flex: 1;
}

.nl-inline button {
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.nl-inline button:hover {
    background: #e60000;
}

.nl-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.nl-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    cursor: pointer;
}

.nl-check input[type=checkbox] {
    accent-color: #cc0000;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.divider-v {
    width: 0.5px;
    background: #222;
}

.bottom-bar {
    background: #050505;
    text-align: center;
    padding: 14px;
    font-size: 11px;
    color: #444;
    border-top: 0.5px solid #1a1a1a;
}