/**
 * ═══════════════════════════════════════════════════════════════════════════
 * DIPLOMADO DETAIL — Page-specific Styles (10-Section Definitive Architecture)
 * ═══════════════════════════════════════════════════════════════════════════
 *
 * Complements Tailwind utilities with custom animations and effects
 * for the modular diplomado detail landing page.
 *
 * Section Index:
 *   1. Hero            6. Platform / Entorno
 *   2. Professional    7. Committee (NEW)
 *   3. Deliverables    8. Ideal Profile
 *   4. Methodology +   9. Certificates
 *      Evaluation     10. Investment + FAQ + CTA
 *   5. Curriculum
 */
@layer pages {

/* ── Mobile overflow prevention ────────────────────────────────────────── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* ── Hero Section (Section 1) ──────────────────────────────────────────── */
.dip-hero {
    position: relative;
    overflow: hidden;
}

/* Norm code gradient shimmer */
.dip-hero-norm {
    background-size: 200% auto;
    animation: normShimmer 4s ease-in-out infinite;
}

@keyframes normShimmer {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 100% center; }
}

.dip-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    border-radius: 50%;
    background: var(--dip-color, #a62126);
    opacity: 0.06;
    filter: blur(100px);
    pointer-events: none;
}

.dip-hero__doctrine {
    margin: 0 0 1.25rem;
    color: rgba(226, 232, 240, 0.74);
    font-size: 0.92rem;
    line-height: 1.55;
}

.dip-hispanic-band {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--dip-color, #a62126) 8%, transparent), transparent 52%),
        #f8fafc;
    border-block: 1px solid #e2e8f0;
    padding: clamp(2.25rem, 5vw, 4rem) 0;
}

.dip-hispanic-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.dip-hispanic-band__eyebrow {
    margin: 0 0 0.7rem;
    color: var(--dip-color, #a62126);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dip-hispanic-band h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.dip-hispanic-band__intro p:not(.dip-hispanic-band__eyebrow) {
    margin: 1rem 0 0;
    color: #475569;
    line-height: 1.68;
}

.dip-hispanic-band__items {
    display: grid;
    gap: 0.85rem;
}

.dip-hispanic-band__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dip-hispanic-band__item > span {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dip-color, #a62126);
    background: color-mix(in srgb, var(--dip-color, #a62126) 10%, white);
    border-radius: 8px;
}

.dip-hispanic-band__item h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
}

.dip-hispanic-band__item p {
    margin: 0.28rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}

.dip-hispanic-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dip-hispanic-band__actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.72rem 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    background: #ffffff;
}

/* ── Professional Change Cards (Section 2) ─────────────────────────────── */
.dip-professional-change .group:hover > div {
    border-color: var(--dip-color, #a62126);
}

/* ── Deliverables Grid (Section 3) ─────────────────────────────────────── */
.dip-deliverables [class*="rounded-xl"] {
    animation: fadeUp 0.3s ease-out both;
}

/* ── Methodology + Evaluation (Section 4 — Merged) ─────────────────────── */
.dip-methodology-evaluation .space-y-6 > div {
    animation: fadeUp 0.4s ease-out both;
}

.dip-methodology-evaluation .space-y-6 > div:nth-child(2) { animation-delay: 0.05s; }
.dip-methodology-evaluation .space-y-6 > div:nth-child(3) { animation-delay: 0.10s; }
.dip-methodology-evaluation .space-y-6 > div:nth-child(4) { animation-delay: 0.15s; }
.dip-methodology-evaluation .space-y-6 > div:nth-child(5) { animation-delay: 0.20s; }
.dip-methodology-evaluation .space-y-6 > div:nth-child(6) { animation-delay: 0.25s; }

/* Legacy aliases for backward compat */
.dip-methodology .space-y-6 > div { animation: fadeUp 0.4s ease-out both; }
.dip-evaluation .space-y-6 > div  { animation: fadeUp 0.4s ease-out both; }

/* Section separator line between methodology and evaluation */
.dip-methodology-evaluation .dip-section-divider {
    position: relative;
    margin: 3rem 0;
}

.dip-methodology-evaluation .dip-section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dip-color, #a62126), transparent);
}

/* ── Curriculum Collapse (Section 5) ───────────────────────────────────── */
[x-collapse] {
    overflow: hidden;
}

/* ── Platform Features (Section 6) ─────────────────────────────────────── */
.dip-platform .group:hover > div {
    box-shadow: 0 8px 30px -10px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 7 — COMITÉ TÉCNICO, TRIBUNAL Y VALIDACIÓN DE COMPETENCIA
   ══════════════════════════════════════════════════════════════════════════ */
.dip-committee {
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind section */
.dip-committee::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--dip-color, #a62126);
    opacity: 0.04;
    filter: blur(120px);
    pointer-events: none;
}

/* Committee member cards — glass morphism + hover lift */
.dip-committee-card {
    position: relative;
    animation: fadeUp 0.4s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dip-committee-card:nth-child(1) { animation-delay: 0.0s; }
.dip-committee-card:nth-child(2) { animation-delay: 0.08s; }
.dip-committee-card:nth-child(3) { animation-delay: 0.16s; }
.dip-committee-card:nth-child(4) { animation-delay: 0.24s; }

.dip-committee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -8px rgba(0,0,0,0.15);
}

/* Tribunal step cards */
.dip-tribunal-grid > div {
    animation: fadeUp 0.4s ease-out both;
}

.dip-tribunal-grid > div:nth-child(1) { animation-delay: 0.0s; }
.dip-tribunal-grid > div:nth-child(2) { animation-delay: 0.10s; }
.dip-tribunal-grid > div:nth-child(3) { animation-delay: 0.20s; }

/* Evaluation criteria weight bars animation */
.dip-validation-bar {
    position: relative;
    overflow: hidden;
}

.dip-validation-bar .bar-fill {
    transform-origin: left;
    animation: barGrow 0.8s ease-out both;
}

@keyframes barGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Staggered bar animations */
.dip-committee .dip-validation-bar:nth-child(1) .bar-fill { animation-delay: 0.0s; }
.dip-committee .dip-validation-bar:nth-child(2) .bar-fill { animation-delay: 0.15s; }
.dip-committee .dip-validation-bar:nth-child(3) .bar-fill { animation-delay: 0.30s; }
.dip-committee .dip-validation-bar:nth-child(4) .bar-fill { animation-delay: 0.45s; }

/* ── Ideal Profile (Section 8) ─────────────────────────────────────────── */
.dip-ideal-profile ul li {
    animation: fadeUp 0.3s ease-out both;
}

/* ── Certificate Cards Shine (Section 9) ───────────────────────────────── */
.dip-certificates .group::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.dip-certificates .group:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 10 — INVESTMENT + FAQ + CTA (Merged)
   ══════════════════════════════════════════════════════════════════════════ */

/* Investment card */
.dip-investment .rounded-2xl {
    transition: box-shadow 0.3s ease;
}

.dip-investment .dip-guarantee-item {
    animation: fadeUp 0.3s ease-out both;
}

/* FAQ Accordion */
.dip-faq-cta button:focus-visible {
    outline: 2px solid var(--dip-color, #a62126);
    outline-offset: 2px;
    border-radius: 0.75rem;
}

/* Legacy aliases */
.dip-faq button:focus-visible {
    outline: 2px solid var(--dip-color, #a62126);
    outline-offset: 2px;
    border-radius: 0.75rem;
}

/* CTA Final Shimmer */
.dip-cta-final a[style*="background"],
.dip-faq-cta .dip-cta-final a[style*="background"] {
    position: relative;
    overflow: hidden;
}

.dip-cta-final a[style*="background"]::after,
.dip-faq-cta .dip-cta-final a[style*="background"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: ctaShimmer 3s ease-in-out infinite;
}

/* Legacy pricing/guarantees aliases */
.dip-pricing .rounded-2xl { transition: box-shadow 0.3s ease; }
.dip-guarantees li { animation: fadeUp 0.3s ease-out both; }

/* ── Shared Keyframes ──────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ctaShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ── Sticky Section Nav ───────────────────────────────────────────────── */
.dip-section-nav {
    transition: box-shadow 0.2s ease;
}

.dip-section-nav .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dip-section-nav .scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ── Section Transitions ─────────────────────────────────────────────── */
/* Smooth gradient dividers between light and dark sections */
.dip-committee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(248,250,252,0.08), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Accent line at section tops for visual rhythm */
.dip-professional-change::before,
.dip-deliverables::before,
.dip-methodology-evaluation::before,
.dip-curriculum::before,
.dip-platform::before,
.dip-ideal-profile::before,
.dip-certificates::before,
.dip-faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(120px, 15%);
    height: 3px;
    border-radius: 999px;
    background: var(--dip-color, #a62126);
    opacity: 0.2;
}

.dip-professional-change,
.dip-deliverables,
.dip-methodology-evaluation,
.dip-curriculum,
.dip-platform,
.dip-ideal-profile,
.dip-certificates,
.dip-faq-cta {
    position: relative;
}

/* ── Mobile Sticky CTA Bar ─────────────────────────────────────────────── */
@media (max-width: 639px) {
    .dip-cta-final {
        padding-bottom: 80px;
    }
}

/* ── Print Styles ──────────────────────────────────────────────────────── */
@media print {
    .dip-cta-final,
    .dip-investment,
    .dip-faq-cta,
    .dip-pricing,
    .dip-faq,
    .dip-section-nav {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRO DESIGN UPGRADES — Enhanced visual effects
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Animated Glow ────────────────────────────────────────────────── */
@keyframes pulse-glow {
    0%   { opacity: 0.06; transform: scale(1); }
    100% { opacity: 0.12; transform: scale(1.15); }
}

.dip-hero::before {
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

/* ── PRO Card Hover — Gradient overlay + lift + premium shadow ─────────── */
.dip-professional-change .group > div {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.dip-professional-change .group > div::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, color-mix(in srgb, var(--dip-color, #a62126) 8%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.dip-professional-change .group:hover > div {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.dip-professional-change .group:hover > div::before {
    opacity: 1;
}

/* ── Competencia Cards — Top-bar scaleX animation ──────────────────────── */
.dip-perfil-egresado [class*="rounded-2xl"] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.dip-perfil-egresado [class*="rounded-2xl"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dip-color, #a62126), color-mix(in srgb, var(--dip-color, #a62126) 70%, white));
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: left;
    pointer-events: none;
}

.dip-perfil-egresado [class*="rounded-2xl"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
}

.dip-perfil-egresado [class*="rounded-2xl"]:hover::after {
    transform: scaleX(1);
}

/* ── Benefit Cards — Gradient overlay from top ─────────────────────────── */
.dip-beneficios-post [class*="rounded-2xl"] {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.dip-beneficios-post [class*="rounded-2xl"]::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, color-mix(in srgb, var(--dip-color, #a62126) 5%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.dip-beneficios-post [class*="rounded-2xl"]:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

.dip-beneficios-post [class*="rounded-2xl"]:hover::before {
    opacity: 1;
}

/* ── CTA Primary — Shine overlay ───────────────────────────────────────── */
.dip-cta-primary {
    position: relative;
    overflow: hidden;
}

.dip-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.dip-cta-primary:hover::before {
    opacity: 1;
}

/* ── Format Bar — Gradient background + brand border ───────────────────── */
.dip-format-bar {
    background: linear-gradient(135deg, color-mix(in srgb, var(--dip-color, #a62126) 5%, transparent), #f8fafc);
    border: 1px solid color-mix(in srgb, var(--dip-color, #a62126) 15%, transparent);
}

/* ── Summary Bar — Gradient dark background ────────────────────────────── */
.dip-summary-bar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* ── Investment Badge — Golden premium badge ───────────────────────────── */
.dip-investment-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    z-index: 1;
    white-space: nowrap;
}

/* ── Highlight Blocks — Glow hover ─────────────────────────────────────── */
.dip-highlight-block {
    transition: all 0.3s;
}

.dip-highlight-block:hover {
    border-color: var(--dip-color, #a62126);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--dip-color, #a62126) 25%, transparent);
}

/* ── Social Proof Strip ────────────────────────────────────────────────── */
.dip-social-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.dip-social-proof .sp-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Methodology Hours Tag ─────────────────────────────────────────────── */
.dip-hours-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--dip-color, #a62126) 10%, transparent);
    color: var(--dip-color, #a62126);
    margin-left: 0.5rem;
}

} /* end @layer pages */

/* ── MOBILE OVERFLOW FIX (outside @layer for max specificity) ──────── */
@media (max-width: 1023px) {
    html, body {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100vw;
    }
    /* Clip ALL sections to viewport width */
    .dip-hero,
    .dip-trust-badges,
    .dip-certificates,
    .dip-beneficios-post,
    .dip-methodology-evaluation,
    .dip-professional-change,
    .dip-platform,
    .dip-investment,
    .dip-faq-cta,
    .dip-section-nav,
    section,
    main,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
    /* Pseudo-elements that could overflow */
    .dip-hero::before,
    .dip-committee::before {
        max-width: 80vw;
        right: 0;
    }
}

/* ── MOBILE TYPOGRAPHY & SPACING (outside @layer) ──────────────────── */
@media (max-width: 639px) {
    /* Investment card: reduce padding on small screens */
    .dip-investment .p-8 {
        padding: 1.25rem;
    }
    .dip-investment .p-6 {
        padding: 1rem;
    }
    /* Routes CTA box: reduce padding */
    .dip-investment .max-w-2xl .p-8 {
        padding: 1.25rem;
    }
    /* Hero: smoother title progression */
    .dip-hero h1 span {
        font-size: clamp(1.25rem, 6vw, 1.875rem);
    }
    .dip-hispanic-band__grid {
        grid-template-columns: 1fr;
    }
    .dip-hispanic-band__actions a {
        width: 100%;
        justify-content: center;
    }
    /* Beneficios cards: reduce padding */
    .dip-beneficios-post .p-8 {
        padding: 1.25rem;
    }
    /* Professional change cards */
    .dip-professional-change .p-8 {
        padding: 1.25rem;
    }

    /* ── Comprimir el alto vertical entre secciones en móvil ────────────────
       Las secciones de la ficha usan py-16 (4rem) en móvil. En una página de
       ~17.000px eso acumula demasiado aire. Lo bajamos a 2.5rem con mesura,
       SIN tocar desktop (lg:py-24 gana por especificidad de media-query). */
    .dip-detail > .dip-professional-change,
    .dip-detail > .dip-deliverables,
    .dip-detail > .dip-methodology-evaluation,
    .dip-detail > .dip-curriculum,
    .dip-detail > .dip-platform,
    .dip-detail > .dip-ideal-profile,
    .dip-detail > .dip-certificates,
    .dip-detail > .dip-beneficios-post,
    .dip-detail > .dip-perfil-egresado,
    .dip-detail > .dip-trust-badges,
    .dip-detail > #instructores,
    .dip-detail > .dip-investment,
    .dip-detail > .dip-faq-cta {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Mobile sticky CTA: single action rail above the global bottom nav. */
.gc-dip-mobile-sticky {
    display: none;
}

@media (max-width: 1023px) {
    body:has(.gc-dip-mobile-sticky) {
        padding-bottom: calc(var(--app-tabbar-height, 64px) + var(--app-safe-bottom, 0px) + 88px) !important;
    }

    .dip-investment,
    section:last-of-type {
        padding-bottom: 7rem;
    }

    .gc-dip-mobile-sticky {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--app-tabbar-height, 64px) + var(--app-safe-bottom, 0px) + 10px);
        z-index: 90;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        max-width: calc(100vw - 24px);
        padding: 8px;
        border: 1px solid rgba(203, 213, 225, 0.88);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(18px) saturate(150%);
        -webkit-backdrop-filter: blur(18px) saturate(150%);
        transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    }

    body.tabbar-hidden .gc-dip-mobile-sticky {
        transform: translateY(calc(var(--app-tabbar-height, 64px) + var(--app-safe-bottom, 0px)));
    }

    .gc-dip-mobile-sticky__primary,
    .gc-dip-mobile-sticky__secondary {
        min-height: 52px !important;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-decoration: none;
        font-weight: 850;
        line-height: 1;
        white-space: nowrap;
        transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
    }

    .gc-dip-mobile-sticky__primary {
        min-width: 0;
        padding: 0 1rem;
        background: var(--dip-cta, #a62126);
        color: #fff;
        box-shadow: 0 12px 26px rgba(166, 33, 38, 0.26);
    }

    .gc-dip-mobile-sticky__secondary {
        padding: 0 0.9rem;
        border: 1px solid #dbe4ef;
        background: #ffffff;
        color: #0f172a;
    }

    .gc-dip-mobile-sticky__primary:hover,
    .gc-dip-mobile-sticky__secondary:hover {
        transform: translateY(-1px);
    }

    .gc-dip-mobile-sticky__primary svg,
    .gc-dip-mobile-sticky__secondary svg {
        width: 16px;
        height: 16px;
    }

    body:has(.gc-consent-banner:not([hidden])) .gc-dip-mobile-sticky {
        display: none !important;
    }

    body:has(.gc-dip-mobile-sticky) .gc-wa-fab-dip,
    body:has(.gc-dip-mobile-sticky) .gia-fallback,
    body:has(.gc-dip-mobile-sticky) #gia-container,
    body:has(.gc-dip-mobile-sticky) .gia-container {
        display: none !important;
    }
}

@media (max-width: 374px) {
    .gc-dip-mobile-sticky {
        left: 8px;
        right: 8px;
        grid-template-columns: 1fr 52px;
        max-width: calc(100vw - 16px);
    }

    .gc-dip-mobile-sticky__secondary {
        padding: 0;
    }

    .gc-dip-mobile-sticky__secondary span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MARCA UNIFORME · ESTRUCTURA NAVY + CTA ROJO
   ──────────────────────────────────────────────────────────────────────────
   Los datos de cada diplomado aportan navy (#0B2545) como --dip-color: alimenta
   toda la estructura (heros, barras, íconos, badges, líneas). Los botones de
   ACCIÓN (inscripción / checkout / packs / envío de formulario) se fuerzan al
   rojo de marca (--dip-cta:#a62126) en TODAS las fichas, para una conversión
   consistente, aunque su background inline derive del navy estructural.
   ════════════════════════════════════════════════════════════════════════ */
.dip-detail .dip-cta-primary,
.dip-detail a[href*="/academia/checkout/"],
.dip-detail a[href="/academia/packs"],
.dip-detail form button[type="submit"] {
    background: var(--dip-cta, #a62126) !important;
    box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--dip-cta, #a62126) 45%, transparent) !important;
}
.dip-detail .dip-cta-primary:hover,
.dip-detail a[href*="/academia/checkout/"]:hover,
.dip-detail a[href="/academia/packs"]:hover,
.dip-detail form button[type="submit"]:hover {
    background: color-mix(in srgb, var(--dip-cta, #a62126) 90%, #000) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   DIPLOMADOS PREMIUM DARK — visual system 2026
   ════════════════════════════════════════════════════════════════════════ */
.dip-breadcrumb-shell {
    background: #020914;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.dip-breadcrumb-shell :where(a, span, li) {
    color: rgba(226, 232, 240, 0.78) !important;
}

.dip-hero {
    color: #f8fafc;
    background:
        radial-gradient(circle at 18% -10%, color-mix(in srgb, var(--dip-color, #a62126) 24%, transparent), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.14), transparent 34rem),
        linear-gradient(180deg, #020914 0%, #061220 55%, #020914 100%) !important;
}

.dip-hero__gridline {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.dip-hero__glow {
    position: absolute;
    inset: auto -10% -28% 40%;
    width: 48rem;
    height: 48rem;
    border-radius: 999px;
    pointer-events: none;
    background: color-mix(in srgb, var(--dip-color, #a62126) 18%, transparent);
    filter: blur(110px);
    opacity: 0.55;
}

.dip-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.dip-hero__eyebrow {
    margin: 0 0 1rem;
    color: #ffb4b8;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dip-hero__title {
    margin: 0;
    color: #fff;
    font-family: var(--gc-font-display);
    font-size: clamp(2.35rem, 5vw, 5.35rem);
    line-height: 1.03;
    letter-spacing: 0;
}

.dip-hero__title span,
.dip-hero__title strong {
    display: block;
}

.dip-hero__title strong {
    color: #cbd5e1;
    font-weight: 900;
}

.dip-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0.45rem 0.65rem;
    color: #f8fafc;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.dip-hero__promise {
    max-width: 44rem;
    margin: 1.25rem 0 0;
    color: #d7e1ee;
    font-size: clamp(1.02rem, 1.45vw, 1.24rem);
    line-height: 1.7;
    font-weight: 650;
}

.dip-hero__doctrine {
    max-width: 43rem;
    margin-top: 1rem;
    color: #9fb0c4;
}

.dip-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.3rem;
}

.dip-hero__badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.45rem 0.65rem;
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.76rem;
    font-weight: 760;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.dip-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.dip-hero__actions a,
.dip-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1.05rem;
    border-radius: 8px !important;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.dip-hero__actions a:hover {
    transform: translateY(-1px);
}

.dip-hero__secondary {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.dip-hero .dip-cta-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #c4262d, var(--dip-cta, #a62126)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(166, 33, 38, 0.28) !important;
}

.dip-hero .dip-cta-primary:hover {
    background: linear-gradient(135deg, #d42c34, #8f1b21) !important;
}

.dip-hero__secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
}

.dip-hero__visual {
    position: relative;
    min-height: 34rem;
}

.dip-hero__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.dip-hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.94) contrast(1.04);
}

.dip-hero__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 9, 20, 0.02), rgba(2, 9, 20, 0.78)),
        linear-gradient(135deg, color-mix(in srgb, var(--dip-color, #a62126) 18%, transparent), transparent 58%);
}

.dip-hero__credential-card,
.dip-hero__mini-panel {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(3, 10, 22, 0.76);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.dip-hero__credential-card {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem;
}

.dip-hero__credential-card > div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dip-hero__credential-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    color: #fff;
    border-radius: 8px;
    background: var(--dip-cta, #a62126);
}

.dip-hero__credential-card p {
    margin: 0;
    color: #fff;
    font-weight: 850;
}

.dip-hero__credential-card small {
    display: block;
    margin-top: 0.55rem;
    color: #a9b8cb;
    line-height: 1.45;
}

.dip-hero__mini-panel {
    top: 1rem;
    right: 1rem;
    width: min(18rem, calc(100% - 2rem));
    padding: 1rem;
}

.dip-hero__mini-panel p {
    margin: 0 0 0.8rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dip-hero__mini-panel ol {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dip-hero__mini-panel li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #cbd5e1;
    font-size: 0.86rem;
}

.dip-hero__mini-panel li span {
    color: #ffb4b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 900;
}

.dip-hero__data {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: clamp(1.8rem, 4vw, 3rem);
}

.dip-hero__data div {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.dip-hero__data span {
    display: block;
    color: #91a2b8;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dip-hero__data strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: 1rem;
}

.dip-section-nav {
    background: rgba(2, 9, 20, 0.88) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.17) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.dip-section-nav__inactive {
    color: #aab8ca !important;
}

.dip-section-nav__inactive:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

.dip-detail,
.dip-video-band,
.dip-hispanic-band {
    background: #020914 !important;
    color: #f8fafc;
}

.dip-hispanic-band {
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--dip-color, #a62126) 16%, transparent), transparent 30rem),
        linear-gradient(180deg, #020914 0%, #061220 100%) !important;
    border-block: 1px solid rgba(148, 163, 184, 0.14);
}

.dip-hispanic-band h2,
.dip-hispanic-band__item h3 {
    color: #fff;
}

.dip-hispanic-band__intro p:not(.dip-hispanic-band__eyebrow),
.dip-hispanic-band__item p {
    color: #a9b8cb;
}

.dip-hispanic-band__item,
.dip-hispanic-band__actions a {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.14);
}

.dip-hispanic-band__item > span {
    background: color-mix(in srgb, var(--dip-color, #a62126) 18%, rgba(255,255,255,.06));
}

.dip-hispanic-band__actions a {
    color: #fff;
}

.dip-detail > section:not(.dip-investment),
.dip-detail > .dip-professional-change,
.dip-detail > .dip-methodology-evaluation,
.dip-detail > .dip-certificates,
.dip-detail > .dip-platform,
.dip-detail > .dip-beneficios-post,
.dip-detail > .dip-faq-cta,
.dip-detail > #consulta {
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--dip-color, #a62126) 10%, transparent), transparent 25rem),
        linear-gradient(180deg, #020914 0%, #061220 100%) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.dip-detail :where(h2, h3, h4, .text-slate-900, .text-gray-900) {
    color: #f8fafc !important;
}

.dip-detail :where(.text-slate-800, .text-slate-700, .text-gray-700) {
    color: #d8e1ee !important;
}

.dip-detail :where(p, li, figcaption, .text-slate-600, .text-slate-500, .text-gray-600, .text-gray-500) {
    color: #a6b5c7 !important;
}

.dip-detail :where(.bg-white, .bg-slate-50, .from-slate-50, .to-white):not(input):not(textarea):not(select) {
    background: rgba(9, 23, 40, 0.86) !important;
}

.dip-detail :where(.border-slate-100, .border-slate-200, .ring-slate-200\/60) {
    border-color: rgba(148, 163, 184, 0.18) !important;
    --tw-ring-color: rgba(148, 163, 184, 0.18) !important;
}

.dip-detail :where(.rounded-2xl, .rounded-xl, .gc-cur-item, .gc-faq-item),
.dip-detail :where(.group > div) {
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.dip-detail :where(.dip-professional-change .group > div,
.dip-methodology-evaluation .rounded-xl,
.dip-certificates .group > div,
.dip-platform .rounded-2xl,
.dip-beneficios-post .rounded-2xl,
.gc-faq-item) {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(8, 20, 35, 0.82) !important;
}

.dip-detail :where(.dip-professional-change .group > div:hover,
.dip-methodology-evaluation .rounded-xl:hover,
.dip-certificates .group > div:hover,
.dip-platform .rounded-2xl:hover,
.dip-beneficios-post .rounded-2xl:hover,
.gc-faq-item:hover) {
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34) !important;
}

.dip-detail .dip-certificates figure > div {
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.dip-detail .dip-certificates figure img {
    filter: saturate(0.9) contrast(1.04) brightness(0.78);
}

.dip-detail .dip-hours-tag {
    color: #ffb4b8;
    background: rgba(166, 33, 38, 0.18);
}

.dip-detail .dip-method-cta {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(219, 228, 239, 0.16);
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--dip-color, #a62126) 22%, transparent), transparent 28rem),
        linear-gradient(135deg, rgba(17, 31, 52, 0.96), rgba(6, 18, 32, 0.98)) !important;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dip-detail .dip-method-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.dip-detail .dip-method-cta:hover::before {
    transform: translateX(100%);
}

.dip-detail .dip-method-cta > * {
    position: relative;
    z-index: 1;
}

.dip-detail :where(input, select, textarea) {
    color: #fff !important;
    background: #061424 !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}

.dip-detail :where(input, select, textarea)::placeholder {
    color: #74869c !important;
}

.dip-detail :where(label) {
    color: #d8e1ee !important;
}

.dip-detail .gc-faq-trigger {
    color: #fff;
}

.dip-detail .gc-faq-content {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

.dip-detail #consulta {
    background:
        radial-gradient(circle at 8% 0%, rgba(166, 33, 38, 0.13), transparent 28rem),
        linear-gradient(180deg, #061220 0%, #020914 100%) !important;
}

.dip-detail #consulta .lg\:sticky {
    top: 8.5rem;
}

.dip-sticky-whatsapp {
    color: #d8e1ee !important;
    background: rgba(9, 23, 40, 0.9) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

@media (max-width: 1023px) {
    .gc-dip-mobile-sticky {
        background: rgba(2, 9, 20, 0.94);
        border-color: rgba(148, 163, 184, 0.22);
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    }

    .gc-dip-mobile-sticky__secondary {
        color: #f8fafc;
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.16);
    }
}

@media (max-width: 980px) {
    .dip-hero__layout {
        grid-template-columns: 1fr;
    }

    .dip-hero__visual {
        min-height: 27rem;
    }

    .dip-hero__data {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dip-hero__title {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .dip-hero__actions a {
        width: 100%;
    }

    .dip-hero__visual {
        min-height: 25rem;
    }

    .dip-hero__mini-panel {
        left: 1rem;
        width: auto;
    }

    .dip-hero__data {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dip-hero::before,
    .dip-hero__actions a,
    .dip-detail :where(.group > div, .rounded-2xl, .rounded-xl) {
        animation: none !important;
        transition: none !important;
    }
}
