/* =========================================================
   PROGRAMAS.CSS
   Página de programas académicos - INSIATEC
========================================================= */


/* =========================================================
   VARIABLES LOCALES
========================================================= */

:root {
    --programas-primary: #0b5ed7;
    --programas-primary-dark: #061a3a;
    --programas-primary-light: #0f5fa8;

    --programas-accent: #19d3d3;
    --programas-green: #72d84a;
    --programas-whatsapp: #25d366;

    --programas-bg: #07111f;
    --programas-bg-soft: #0a1728;
    --programas-surface: rgba(255, 255, 255, 0.07);
    --programas-surface-strong: rgba(255, 255, 255, 0.11);

    --programas-border: rgba(255, 255, 255, 0.14);
    --programas-border-soft: rgba(255, 255, 255, 0.08);

    --programas-text: #ffffff;
    --programas-muted: #a8b3c7;
    --programas-muted-light: #d1d9e7;

    --programas-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    --programas-radius-large: 30px;
    --programas-radius-medium: 20px;
    --programas-radius-small: 13px;

    --programas-transition:
        0.35s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   AJUSTES GENERALES
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at top left,
            rgba(11, 94, 215, 0.12),
            transparent 34%
        ),
        var(--programas-bg);
}

main {
    position: relative;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
}

.section-heading-center {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 18px 0 20px;
    color: var(--programas-text);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading h2 span {
    color: var(--programas-accent);
}

.section-heading p {
    color: var(--programas-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 9px 14px;
    border: 1px solid rgba(25, 211, 211, 0.3);
    border-radius: 999px;
    background: rgba(25, 211, 211, 0.08);
    color: var(--programas-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-eyebrow i {
    font-size: 0.9rem;
}


/* =========================================================
   BOTONES
========================================================= */

.programas-hero .btn,
.programa-actions .btn,
.programas-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--programas-transition),
        box-shadow var(--programas-transition),
        border-color var(--programas-transition),
        background var(--programas-transition),
        color var(--programas-transition);
}

.programas-hero .btn:hover,
.programa-actions .btn:hover,
.programas-cta .btn:hover {
    transform: translateY(-3px);
}

.programas-hero .btn-primary,
.programa-actions .btn-primary,
.programas-cta .btn-primary {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--programas-primary),
            var(--programas-primary-light)
        );
    box-shadow:
        0 14px 30px rgba(11, 94, 215, 0.28);
}

.programas-hero .btn-primary:hover,
.programa-actions .btn-primary:hover,
.programas-cta .btn-primary:hover {
    box-shadow:
        0 18px 38px rgba(11, 94, 215, 0.4);
}

.programas-hero .btn-outline {
    color: var(--programas-text);
    border-color: var(--programas-border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
}

.programas-hero .btn-outline:hover {
    border-color: rgba(25, 211, 211, 0.45);
    background: rgba(25, 211, 211, 0.08);
}

.programa-actions .btn-whatsapp,
.programas-cta .btn-whatsapp {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #1ebc59,
            var(--programas-whatsapp)
        );
    box-shadow:
        0 14px 30px rgba(37, 211, 102, 0.22);
}

.programa-actions .btn-whatsapp:hover,
.programas-cta .btn-whatsapp:hover {
    box-shadow:
        0 18px 38px rgba(37, 211, 102, 0.34);
}


/* =========================================================
   HERO
========================================================= */

.programas-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 720px;
    padding: 150px 0 100px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            135deg,
            rgba(6, 26, 58, 0.97),
            rgba(7, 17, 31, 0.98) 48%,
            rgba(8, 44, 84, 0.92)
        );
}

.programas-hero::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    background:
        linear-gradient(
            90deg,
            rgba(7, 17, 31, 0.94),
            rgba(7, 17, 31, 0.55)
        );
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.24;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );
    background-size: 55px 55px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.75),
            transparent
        );
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-one {
    top: -140px;
    right: 7%;
    background: rgba(25, 211, 211, 0.18);
    animation: heroGlowFloat 9s ease-in-out infinite;
}

.hero-glow-two {
    bottom: -220px;
    left: 2%;
    background: rgba(11, 94, 215, 0.22);
    animation: heroGlowFloat 11s ease-in-out infinite reverse;
}

.programas-hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 80px;
    align-items: center;
}

.programas-hero-content {
    max-width: 680px;
}

.programas-hero-content h1 {
    margin: 24px 0 24px;
    color: var(--programas-text);
    font-size: clamp(2.9rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.programas-hero-content h1 span {
    display: block;
    margin-top: 8px;
    color: transparent;
    background:
        linear-gradient(
            90deg,
            var(--programas-accent),
            var(--programas-green)
        );
    background-clip: text;
    -webkit-background-clip: text;
}

.programas-hero-content > p {
    max-width: 640px;
    color: var(--programas-muted-light);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
}

.programas-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}


/* =========================================================
   TARJETA VISUAL DEL HERO
========================================================= */

.programas-hero-visual {
    position: relative;
}

.hero-program-card {
    position: relative;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--programas-border);
    border-radius: var(--programas-radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.04)
        );
    box-shadow: var(--programas-shadow);
    backdrop-filter: blur(26px);
    transform:
        perspective(1000px)
        rotateY(-4deg)
        rotateX(2deg);
    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        border-color var(--programas-transition);
}

.hero-program-card:hover {
    border-color: rgba(25, 211, 211, 0.35);
    transform:
        perspective(1000px)
        rotateY(0deg)
        rotateX(0deg)
        translateY(-8px);
}

.hero-program-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            circle at top right,
            rgba(25, 211, 211, 0.18),
            transparent 35%
        );
}

.hero-program-card-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-program-card-header > i {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(114, 216, 74, 0.28);
    border-radius: 18px;
    background: rgba(114, 216, 74, 0.1);
    color: var(--programas-green);
    font-size: 1.45rem;
}

.online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(37, 211, 102, 0.22);
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.08);
    color: #baf5cf;
    font-size: 0.82rem;
    font-weight: 700;
}

.online-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--programas-whatsapp);
    box-shadow:
        0 0 0 6px rgba(37, 211, 102, 0.12);
    animation: onlinePulse 2s ease-in-out infinite;
}

.hero-program-card-content {
    position: relative;
    padding: 38px 0 30px;
}

.hero-small-label {
    display: block;
    margin-bottom: 12px;
    color: var(--programas-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-program-card-content strong {
    display: block;
    max-width: 420px;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.hero-program-card-content p {
    margin-top: 18px;
    color: var(--programas-muted);
    line-height: 1.75;
}

.hero-program-mini-features {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-program-mini-features div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 18px 10px;
    border: 1px solid var(--programas-border-soft);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    transition:
        transform var(--programas-transition),
        border-color var(--programas-transition),
        background var(--programas-transition);
}

.hero-program-mini-features div:hover {
    border-color: rgba(25, 211, 211, 0.3);
    background: rgba(25, 211, 211, 0.07);
    transform: translateY(-4px);
}

.hero-program-mini-features i {
    color: var(--programas-accent);
    font-size: 1.2rem;
}

.hero-program-mini-features span {
    color: var(--programas-muted-light);
    font-size: 0.76rem;
    font-weight: 700;
}


/* =========================================================
   INDICADORES
========================================================= */

.programas-highlights {
    position: relative;
    z-index: 5;
    margin-top: -45px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--programas-border);
    border-radius: 22px;
    background:
        rgba(9, 25, 44, 0.88);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 108px;
    padding: 22px;
    border-right: 1px solid var(--programas-border-soft);
    transition:
        background var(--programas-transition),
        transform var(--programas-transition);
}

.highlight-card:last-child {
    border-right: 0;
}

.highlight-card:hover {
    background: rgba(25, 211, 211, 0.055);
}

.highlight-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(25, 211, 211, 0.23);
    border-radius: 14px;
    background: rgba(25, 211, 211, 0.08);
    color: var(--programas-accent);
    font-size: 1.1rem;
}

.highlight-card strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 0.95rem;
}

.highlight-card span {
    display: block;
    color: var(--programas-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}


/* =========================================================
   INTRODUCCIÓN DEL CATÁLOGO
========================================================= */

.programas-intro {
    padding-top: 135px;
    padding-bottom: 70px;
}


/* =========================================================
   SECCIONES DE PROGRAMAS
========================================================= */

.programa-section {
    position: relative;
    padding: 55px 0;
}

.programa-section-alternate::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(11, 94, 215, 0.045),
            transparent
        );
}

.programa-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--programas-border);
    border-radius: var(--programas-radius-large);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.035)
        );
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.24);
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-color var(--programas-transition),
        box-shadow var(--programas-transition);
}

.programa-card:hover {
    border-color: rgba(25, 211, 211, 0.28);
    box-shadow:
        0 38px 90px rgba(0, 0, 0, 0.31);
    transform: translateY(-6px);
}

.programa-card-reverse .programa-media {
    order: 2;
}

.programa-card-reverse .programa-content {
    order: 1;
}


/* =========================================================
   VIDEO
========================================================= */

.programa-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #06182b;
}

.programa-video-wrapper {
    position: relative;
    width: 100%;
    padding: 24px 22px 20px;
    overflow: hidden;
}

.programa-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

.programa-video::-webkit-media-controls-panel {
    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.85)
        );
}

.programa-video-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 80px rgba(7, 17, 31, 0.34);
}

.programa-video-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.78);
    color: #ffffff;
    font-size: 0.77rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.programa-video-badge i {
    color: var(--programas-green);
    font-size: 0.72rem;
}


/* =========================================================
   CONTENIDO DEL PROGRAMA
========================================================= */

.programa-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(35px, 5vw, 65px);
}

.programa-heading {
    margin-bottom: 22px;
}

.programa-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    padding: 8px 13px;
    border: 1px solid rgba(114, 216, 74, 0.23);
    border-radius: 999px;
    background: rgba(114, 216, 74, 0.08);
    color: var(--programas-green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.programa-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.programa-subtitle {
    margin-top: 13px;
    color: var(--programas-accent);
    font-size: 1rem;
    font-weight: 700;
}

.programa-description {
    margin: 0 0 30px;
    color: var(--programas-muted-light);
    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   DETALLES DEL PROGRAMA
========================================================= */

.programa-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.programa-detail {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 79px;
    padding: 14px;
    border: 1px solid var(--programas-border-soft);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        border-color var(--programas-transition),
        background var(--programas-transition),
        transform var(--programas-transition);
}

.programa-detail:hover {
    border-color: rgba(25, 211, 211, 0.24);
    background: rgba(25, 211, 211, 0.055);
    transform: translateY(-3px);
}

.programa-detail-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            rgba(11, 94, 215, 0.18),
            rgba(25, 211, 211, 0.11)
        );
    color: var(--programas-accent);
}

.programa-detail span {
    display: block;
    margin-bottom: 4px;
    color: var(--programas-muted);
    font-size: 0.75rem;
}

.programa-detail strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
}


/* =========================================================
   NIVELES Y ÁREAS
========================================================= */

.programa-levels {
    margin-bottom: 27px;
}

.programa-levels > span {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
}

.programa-level-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.programa-level-list span {
    padding: 7px 11px;
    border: 1px solid rgba(25, 211, 211, 0.17);
    border-radius: 999px;
    background: rgba(25, 211, 211, 0.055);
    color: #c9f8f8;
    font-size: 0.76rem;
    font-weight: 700;
    transition:
        border-color var(--programas-transition),
        background var(--programas-transition),
        transform var(--programas-transition);
}

.programa-level-list span:hover {
    border-color: rgba(25, 211, 211, 0.4);
    background: rgba(25, 211, 211, 0.11);
    transform: translateY(-2px);
}


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

.programa-features {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.programa-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--programas-muted-light);
    font-size: 0.91rem;
    line-height: 1.55;
}

.programa-features i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--programas-green);
}


/* =========================================================
   ACCIONES DE LOS PROGRAMAS
========================================================= */

.programa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.programa-actions .btn {
    flex: 1 1 220px;
}


/* =========================================================
   PRÓXIMOS PROGRAMAS
========================================================= */

.proximos-programas {
    overflow: hidden;
}

.proximos-programas::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 700px;
    height: 700px;
    content: "";
    border-radius: 50%;
    background: rgba(11, 94, 215, 0.09);
    filter: blur(120px);
    transform: translate(-50%, -50%);
}

.proximos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px;
}

.proximo-card {
    position: relative;
    min-height: 290px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--programas-border);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );
    transition:
        transform var(--programas-transition),
        border-color var(--programas-transition),
        box-shadow var(--programas-transition);
}

.proximo-card::before {
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 160px;
    height: 160px;
    content: "";
    border-radius: 50%;
    background: rgba(25, 211, 211, 0.09);
    filter: blur(15px);
    transition: transform 0.5s ease;
}

.proximo-card:hover {
    border-color: rgba(25, 211, 211, 0.3);
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.22);
    transform: translateY(-8px);
}

.proximo-card:hover::before {
    transform: scale(1.2);
}

.proximo-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    border: 1px solid rgba(25, 211, 211, 0.25);
    border-radius: 17px;
    background: rgba(25, 211, 211, 0.08);
    color: var(--programas-accent);
    font-size: 1.35rem;
}

.proximo-card > span {
    display: inline-flex;
    margin-bottom: 13px;
    color: var(--programas-green);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.proximo-card h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.35rem;
}

.proximo-card p {
    margin: 0;
    color: var(--programas-muted);
    line-height: 1.7;
}


/* =========================================================
   BENEFICIOS
========================================================= */

.beneficios-programas {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.025),
            transparent
        );
}

.beneficios-container {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 90px;
    align-items: start;
}

.beneficios-content {
    position: sticky;
    top: 120px;
}

.beneficios-content h2 {
    margin: 20px 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.beneficios-content h2 span {
    color: var(--programas-accent);
}

.beneficios-content p {
    color: var(--programas-muted);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--programas-accent);
    font-weight: 800;
    text-decoration: none;
}

.text-link i {
    transition: transform var(--programas-transition);
}

.text-link:hover i {
    transform: translateX(5px);
}

.beneficios-list {
    display: grid;
    gap: 14px;
}

.beneficio-item {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--programas-border-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    transition:
        transform var(--programas-transition),
        border-color var(--programas-transition),
        background var(--programas-transition);
}

.beneficio-item:hover {
    border-color: rgba(114, 216, 74, 0.25);
    background: rgba(114, 216, 74, 0.045);
    transform: translateX(6px);
}

.beneficio-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(114, 216, 74, 0.22);
    border-radius: 15px;
    background: rgba(114, 216, 74, 0.08);
    color: var(--programas-green);
    font-size: 0.9rem;
    font-weight: 900;
}

.beneficio-item h3 {
    margin: 2px 0 9px;
    color: #ffffff;
    font-size: 1.1rem;
}

.beneficio-item p {
    margin: 0;
    color: var(--programas-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* =========================================================
   CTA FINAL
========================================================= */

.programas-cta {
    padding-top: 70px;
    padding-bottom: 120px;
}

.programas-cta-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
    padding: clamp(35px, 6vw, 70px);
    overflow: hidden;
    border: 1px solid rgba(25, 211, 211, 0.2);
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            rgba(8, 44, 84, 0.98),
            rgba(6, 26, 58, 0.98)
        );
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.3);
}

.programas-cta-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    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: 42px 42px;
    mask-image:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.8),
            transparent
        );
}

.cta-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.cta-decoration-one {
    top: -120px;
    right: -70px;
    width: 300px;
    height: 300px;
    background: rgba(25, 211, 211, 0.17);
}

.cta-decoration-two {
    bottom: -150px;
    left: 20%;
    width: 330px;
    height: 330px;
    background: rgba(11, 94, 215, 0.2);
}

.programas-cta-content,
.programas-cta-actions {
    position: relative;
    z-index: 1;
}

.programas-cta-content {
    max-width: 680px;
}

.programas-cta-content h2 {
    margin: 18px 0 15px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.programas-cta-content p {
    margin: 0;
    color: var(--programas-muted-light);
    line-height: 1.75;
}

.programas-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 250px;
}


/* =========================================================
   ANIMACIONES DE ENTRADA
========================================================= */

.reveal {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal[data-animation="fade-up"] {
    transform: translateY(45px);
}

.reveal[data-animation="fade-left"] {
    transform: translateX(55px);
}

.reveal[data-animation="fade-right"] {
    transform: translateX(-55px);
}

.reveal[data-animation="zoom-in"] {
    transform: scale(0.93);
}

.reveal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}


/* =========================================================
   KEYFRAMES
========================================================= */

@keyframes heroGlowFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(30px, -20px, 0) scale(1.08);
    }
}

@keyframes onlinePulse {

    0%,
    100% {
        box-shadow:
            0 0 0 5px rgba(37, 211, 102, 0.1);
    }

    50% {
        box-shadow:
            0 0 0 10px rgba(37, 211, 102, 0.02);
    }
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .programas-hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
        gap: 45px;
    }

    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-card:nth-child(2) {
        border-right: 0;
    }

    .highlight-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--programas-border-soft);
    }

    .programa-content {
        padding: 40px;
    }

    .programas-cta-card {
        grid-template-columns: 1fr;
    }

    .programas-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .programas-cta-actions .btn {
        flex: 1 1 230px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET PEQUEÑA
========================================================= */

@media (max-width: 900px) {

    .section {
        padding: 90px 0;
    }

    .programas-hero {
        min-height: auto;
        padding: 135px 0 110px;
    }

    .programas-hero-container {
        grid-template-columns: 1fr;
    }

    .programas-hero-content {
        max-width: 760px;
    }

    .programas-hero-visual {
        max-width: 650px;
    }

    .hero-program-card {
        transform: none;
    }

    .programa-card {
        grid-template-columns: 1fr;
    }

    .programa-card-reverse .programa-media,
    .programa-card-reverse .programa-content {
        order: initial;
    }

    .programa-media {
        padding: 22px;
    }

    .programa-video-wrapper {
        position: relative;
        top: auto;
    }

    .programa-video {
        aspect-ratio: 16 / 9;
    }

    .proximos-grid {
        grid-template-columns: 1fr;
    }

    .proximo-card {
        min-height: auto;
    }

    .beneficios-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .beneficios-content {
        position: relative;
        top: auto;
        max-width: 720px;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 680px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 75px 0;
    }

    .programas-hero {
        padding: 120px 0 90px;
    }

    .programas-hero-content h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .programas-hero-actions {
        flex-direction: column;
    }

    .programas-hero-actions .btn {
        width: 100%;
    }

    .hero-program-card {
        padding: 22px;
        border-radius: 23px;
    }

    .hero-program-mini-features {
        grid-template-columns: 1fr;
    }

    .hero-program-mini-features div {
        flex-direction: row;
        justify-content: flex-start;
        padding: 14px;
        text-align: left;
    }

    .programas-highlights {
        margin-top: -30px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        border-right: 0;
        border-bottom: 1px solid var(--programas-border-soft);
    }

    .highlight-card:nth-child(2) {
        border-right: 0;
    }

    .highlight-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--programas-border-soft);
    }

    .highlight-card:last-child {
        border-bottom: 0;
    }

    .programas-intro {
        padding-top: 110px;
        padding-bottom: 45px;
    }

    .programa-section {
        padding: 35px 0;
    }

    .programa-card {
        border-radius: 23px;
    }

    .programa-media {
        padding: 13px;
    }

    .programa-video-wrapper {
        border-radius: 17px;
    }

    .programa-video-badge {
        top: 12px;
        left: 12px;
        padding: 7px 10px;
        font-size: 0.68rem;
    }

    .programa-content {
        padding: 30px 22px 28px;
    }

    .programa-heading h2 {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .programa-details {
        grid-template-columns: 1fr;
    }

    .programa-actions {
        flex-direction: column;
    }

    .programa-actions .btn {
        flex: none;
        width: 100%;
    }

    .proximos-grid {
        margin-top: 38px;
    }

    .proximo-card {
        padding: 24px;
    }

    .beneficio-item {
        grid-template-columns: 1fr;
    }

    .beneficio-item:hover {
        transform: translateY(-4px);
    }

    .programas-cta {
        padding-top: 45px;
        padding-bottom: 90px;
    }

    .programas-cta-card {
        gap: 30px;
        padding: 32px 22px;
        border-radius: 23px;
    }

    .programas-cta-actions {
        flex-direction: column;
    }

    .programas-cta-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   MÓVILES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

    .programas-hero-content h1 {
        font-size: 2.45rem;
    }

    .programas-hero-content > p {
        font-size: 0.95rem;
    }

    .hero-program-card-header {
        align-items: flex-start;
        gap: 15px;
    }

    .online-indicator {
        font-size: 0.72rem;
    }

    .hero-program-card-header > i {
        width: 47px;
        height: 47px;
        font-size: 1.15rem;
    }

    .hero-program-card-content strong {
        font-size: 1.65rem;
    }

    .programa-category {
        font-size: 0.68rem;
    }

    .programa-detail {
        min-height: 72px;
    }
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hero-program-card {
        transform: none;
    }
}


/* =========================================================
   ESTADO SIN JAVASCRIPT
========================================================= */

.no-js .reveal {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.programa-card.is-playing{
    border-color:#19d3d3;
    box-shadow:0 0 35px rgba(25,211,211,.25);
}
/* =========================================================
   PORTADA Y VIDEO DEL PROGRAMA
========================================================= */

.programa-media {
    min-width: 0;
}

.programa-media-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    padding: 22px;
    gap: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(8, 25, 43, 0.96),
            rgba(4, 14, 26, 0.98)
        );
}


.programa-cover {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(8, 27, 47, 0.98),
            rgba(5, 17, 30, 0.98)
        );
}

.programa-cover img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;

    object-fit: contain;
    object-position: center;

    border-radius: 14px;
}

//* Nombre del programa arriba de la imagen */
.programa-cover-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;

    padding: 9px 13px;
    border: 1px solid rgba(114, 216, 74, 0.24);
    border-radius: 999px;

    color: #ffffff;
    background: rgba(114, 216, 74, 0.08);

    font-size: 0.78rem;
    font-weight: 700;
}

.programa-cover-badge svg {
    width: 17px;
    height: 17px;
    color: #72d84a;
}

/* Caja inferior del video */
.programa-video-box {
    align-self: center;
    width: 94%;
    margin: 0 auto;

    overflow: hidden;
    border-radius: 20px;
    background: #020810;
    border: 1px solid rgba(25, 211, 211, 0.2);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.programa-video-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 18px;

    background:
        linear-gradient(
            90deg,
            rgba(15, 95, 168, 0.2),
            rgba(25, 211, 211, 0.08)
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.programa-video-title > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.programa-video-title svg {
    width: 23px;
    height: 23px;
    color: #19d3d3;
}

.programa-video-title span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.programa-video-title small {
    color: #8fa0b6;
    font-size: 0.7rem;
    font-weight: 600;
}

.programa-video-title strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.programa-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000000;
}
.programa-detail-center{
    grid-column:1 / -1;

    width:calc(50% - 6px);

    justify-self:center;
}
@media (max-width: 900px) {

    .programa-media-panel {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 16px;
    }

    .programa-cover {
        border-radius: 16px;
    }

    .programa-video-box {
        width: 100%;
        margin: 0;
        border-radius: 16px;
    }

}
@media (max-width:680px){

    .programa-detail-center{

        width:100%;

    }

}
/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    position: relative;
    padding: 80px 0 28px;
    background:
        linear-gradient(
            180deg,
            #061321 0%,
            #040c16 100%
        );
    border-top: 1px solid rgba(25, 211, 211, 0.16);
}

.footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 54px;
    padding-bottom: 50px;
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    display: block;
    width: min(100%, 300px);
    height: auto;
    margin-bottom: 24px;
}

.footer-brand p {
    max-width: 380px;
    color: #9aa9bc;
    font-size: 0.95rem;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.footer-social a:hover {
    color: #19d3d3;
    background: rgba(25, 211, 211, 0.1);
    border-color: rgba(25, 211, 211, 0.4);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 19px;
    height: 19px;
}

.footer-column h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 13px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-column a {
    color: #9aa9bc;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: #19d3d3;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: #19d3d3;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #8494a8;
    font-size: 0.88rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.back-to-top:hover {
    color: #19d3d3;
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 980px) {

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px;
    }

}

@media (max-width: 620px) {

    .site-footer {
        padding-top: 58px;
    }

    .footer-container {
        width: min(100% - 30px, 1180px);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-logo {
        width: min(100%, 250px);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

}
.footer-logo{
    width:240px;
}
.footer-social a:nth-child(1):hover{
    color:#1877F2;
}

.footer-social a:nth-child(2):hover{
    color:#E4405F;
}

.footer-social a:nth-child(3):hover{
    color:#25D366;
}