:root {
    /* Colores institucionales */

    --negro: #0C1014;
    --grafito: #171C20;
    --card: #242A2D;

    --verde: #11FF00;
    --verde-lima: #A0F100;
    --verde-militar: #365033;

    --amarillo: #FFD215;
    --rojo: #E51B23;

    --blanco: #F5F5F5;
    --gris: #AEB5B0;

    --color-primary: #0C1014;
    --color-secondary: #171C20;

    --color-red:  #365033;
    --color-red-dark: #A0F100;

    --color-white: #FFFFFF;
    --color-light: #E5E5E5;

    --color-gray: #777777;
    --color-border: #2A2A2A;

    /* Texto */
    --text-primary: #FFFFFF;
    --text-secondary: #E5E5E5;
    --text-muted: #777777;

    /* Estados */
    --hover-red: #11FF00;

    /* Sombras */
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    --shadow-red: 0 0 15px rgba(54, 143, 32, 0.35);

    --font-display: "Barlow Condensed", sans-serif;
    --font-body: "Outfit", sans-serif;
    --max: 1120px;
    --header-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-primary);
    color: var(--text-secondary);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0 0 0.6em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

p { margin: 0 0 1rem; }

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: var(--color-red);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1.4rem;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--color-red);
    cursor: pointer;
    box-shadow: var(--shadow-red);
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.btn:hover {
    background: var(--hover-red);
    border-color: var(--hover-red);
}

.btn--ghost {
    background: transparent;
    box-shadow: none;
    color: var(--text-primary);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-red);
    background: transparent;
}

.btn--sm {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    box-shadow: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    background: rgba(5, 5, 5, 0.92);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo__text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.logo__text small {
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav a {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--color-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    align-items: center;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, #050505 0%, #0a0a0a 55%, #0e6320 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black, transparent 90%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: 10%;
    width: min(48vw, 520px);
    height: min(70vh, 640px);
    /* border: 1px solid var(--color-border); */
    /* background:
        repeating-linear-gradient(
            -18deg,
            transparent,
            transparent 18px,
            rgba(229, 9, 20, 0.08) 18px,
            rgba(229, 9, 20, 0.08) 20px
        ); */
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__lead {
    font-size: 1.15rem;
    max-width: 38rem;
    color: var(--color-light);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 2.4rem;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero__stats li {
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--color-red);
    padding-left: 0.85rem;
}

.hero__stats strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero__stats span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section {
    padding: 5.5rem 0;
}

.section--alt {
    background: var(--color-secondary);
    border-block: 1px solid var(--color-border);
}

.section__head {
    max-width: 40rem;
    margin-bottom: 2.4rem;
}

.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}

.checklist {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.6rem;
    border-bottom: 1px solid var(--color-border);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 10px;
    height: 10px;
    background: var(--color-red);
}

.panel {
    background: #0c0c0c;
    border: 1px solid var(--color-border);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
}

.facts {
    margin: 0;
}

.facts > div {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.facts > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.facts dt {
    font-family: var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--color-red);
}

.facts dd {
    margin: 0;
    color: var(--text-primary);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.card {
    padding: 1.4rem 1.2rem 1.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-primary);
    min-height: 100%;
}

.card:hover {
    border-color: var(--color-red-dark);
}

.card--programa {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.card__image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.card__body {
    padding: 1.2rem 1.1rem 1.4rem;
}

.card--programa h3 {
    margin-bottom: 0.5rem;
}

.card--programa p {
    margin: 0;
    color: var(--color-white);
}

.card__tag {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--color-red);
    color: var(--color-red);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.schedule th,
.schedule td {
    text-align: left;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--color-border);
}

.schedule th {
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: var(--color-secondary);
    color: var(--text-primary);
}

.schedule tr:last-child td {
    border-bottom: 0;
}

.schedule tbody tr:hover td {
    background: rgba(229, 9, 20, 0.06);
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
}

.benefits article {
    padding-top: 1rem;
    border-top: 3px solid var(--color-red);
}

.cta-band {
    background: linear-gradient(90deg, var(--color-red-dark), var(--color-red));
    padding: 3.2rem 0;
}

.cta-band h2,
.cta-band p,
.cta-band .eyebrow {
    color: var(--color-white);
}

.cta-band .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

.cta-band p {
    margin: 0;
    max-width: 36rem;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-band .btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
    flex-shrink: 0;
}

.cta-band .btn:hover {
    background: #000;
    border-color: #000;
}

.contact-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.contact-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-list span {
    font-family: var(--font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contact-list a,
.contact-list address {
    font-style: normal;
    color: var(--text-primary);
}

.contact-list a:hover {
    color: var(--color-red);
}

.form {
    display: grid;
    gap: 0.85rem;
}

.form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.75rem 0.8rem;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 1px solid var(--color-red);
    border-color: var(--color-red);
}

.form__note {
    margin: 0;
    color: var(--color-light);
    font-size: 0.9rem;
}

.footer {
    border-top: 1px solid var(--color-border);
    padding: 1.6rem 0 2rem;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.logo--footer {
    margin: 0;
}

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

    .split,
    .cta-band__inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero::after {
        opacity: 0.35;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #080808;
        border-bottom: 1px solid var(--color-border);
        padding: 0.5rem 1rem 1.2rem;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .cards,
    .benefits {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CARRUSEL PRINCIPAL
   ========================================= */

   .hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #050505;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Imágenes */

.hero-carousel .carousel-item {
    height: 500px;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}


/* Oscurecer ligeramente las imágenes */

.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.05)
    );

    pointer-events: none;
}


/* Indicadores */

.hero-carousel .carousel-indicators {
    z-index: 5;
}

.hero-carousel .carousel-indicators button {
    width: 35px;
    height: 4px;

    margin-left: 4px;
    margin-right: 4px;

    border: none;
    border-radius: 2px;

    opacity: 0.6;
}

.hero-carousel .carousel-indicators button.active {
    background-color: #E50914;
    opacity: 1;
}


/* Botones de navegación */

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 8%;
    z-index: 5;
}


/* Fondo de los controles al pasar el mouse */

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.25);
}


/* Responsive */

@media (max-width: 768px) {

    .hero-carousel .carousel-item {
        height: 350px;
    }

    .hero-carousel .carousel-item img {
        height: 350px;
    }

}


@media (max-width: 480px) {

    .hero-carousel .carousel-item {
        height: 280px;
    }

    .hero-carousel .carousel-item img {
        height: 280px;
    }

}


/* btn whatsapp */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: background 0.2s, transform 0.18s;
    text-decoration: none;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #1ebd5a;
    transform: scale(1.07);
}
.whatsapp-float svg {
    display: block;
}
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-float svg {
        width: 23px;
        height: 23px;
    }
}


/* =========================
   INSTAGRAM SECTION
========================= */

.instagram-section {
    background-color: #f8f9fa;
}


/* SUBTÍTULO */

.section-subtitle {
    display: inline-block;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 2px;

    color: #777;
}


/* TÍTULO */

.section-title {
    font-size: 2.3rem;

    font-weight: 700;

    margin-bottom: 15px;
}


/* DESCRIPCIÓN */

.instagram-description {
    max-width: 650px;

    margin: auto;

    color: #6c757d;

    font-size: 1.05rem;
}


/* TARJETA */

.instagram-card {

    position: relative;

    display: block;

    overflow: hidden;

    border-radius: 12px;

    background: #000;

    aspect-ratio: 1 / 1;

    text-decoration: none;

}


/* IMAGEN */

.instagram-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;

}


/* ZOOM */

.instagram-card:hover img {

    transform: scale(1.1);

}


/* OVERLAY */

.instagram-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 10px;

    background: rgba(0, 0, 0, 0.65);

    color: white;

    opacity: 0;

    transition: opacity 0.3s ease;

}


/* MOSTRAR OVERLAY */

.instagram-card:hover .instagram-overlay {

    opacity: 1;

}


/* ICONO */

.instagram-overlay i {

    font-size: 2rem;

}


/* TEXTO */

.instagram-overlay span {

    font-size: 0.9rem;

}


/* BOTÓN INSTAGRAM */

.instagram-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 25px;

    border-radius: 50px;

    background: #212529;

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: all 0.3s ease;

}


/* ICONO BOTÓN */

.instagram-button i {

    font-size: 1.3rem;

}


/* HOVER BOTÓN */

.instagram-button:hover {

    background: #000;

    color: white;

    transform: translateY(-3px);

}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .section-title {

        font-size: 1.8rem;

    }


    .instagram-description {

        font-size: 0.95rem;

        padding: 0 10px;

    }


    .instagram-overlay {

        display: none;

    }


    .instagram-button {

        padding: 12px 20px;

        font-size: 0.9rem;

    }

}