:root {
    --bg: #f5f0e8;
    --cream: #fdfbd4;
    --dark: #090b0e;
    --dark-2: #11161c;
    --dark-3: #171d24;
    --gold: #d4a449;
    --gold-2: #b98933;
    --text: #252525;
    --muted: #6e6a63;
    --green: #57a856;
    --blue: #2f6ccf;
    --line: rgba(255,255,255,0.12);
    --shadow: 0 14px 30px rgba(0,0,0,0.16);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: 12px 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 0;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #111; }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }

.dark-panel {
    color: #fff;
    border-radius: 0;
    background:
        radial-gradient(circle at top right, rgba(212,164,73,0.16), transparent 26%),
        linear-gradient(135deg, #090b0e 0%, #151b22 100%);
    border: 1px solid rgba(212,164,73,0.14);
    box-shadow: var(--shadow);
}
main .dark-panel { border-radius: var(--radius); padding: 32px; }
.dark-card {
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 10px 24px rgba(0,0,0,0.13);
}
.eyebrow, .hero-kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
}
.hero-kicker { color: rgba(255,255,255,0.92); margin: 0 0 8px; font-size: 0.9rem; text-align: center; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 2.55vw, 2.12rem); line-height: 1.08; color: var(--gold); }
.section-intro { margin: -6px 0 24px; color: rgba(255,255,255,0.82); font-size: 1.02rem; }

.hero { position: relative; overflow: hidden; border-left: 0; border-right: 0; border-top: 0; }
.hero-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,0.58), rgba(0,0,0,0.16)); }
.navbar, .hero-content { position: relative; z-index: 1; }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.brand img {
    width: auto;
    height: 190px;
    max-width: 410px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(212,164,73,0.22);
}
.nav-links { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.9); white-space: nowrap; }
.nav-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.nav-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.95);
    line-height: 1.25;
}
.nav-subtitle span {
    display: block;
    font-size: clamp(1.08rem, 1.55vw, 1.38rem);
    font-weight: 800;
    letter-spacing: 0.015em;
    color: var(--gold);
}
.nav-subtitle small {
    display: block;
    margin-top: 4px;
    font-size: clamp(0.86rem, 1.05vw, 1rem);
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.menu-toggle { display: none; }

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 390px);
    grid-template-areas: "copy image" "videos videos";
    gap: 24px 44px;
    align-items: center;
    padding: 8px 0 36px;
}
.hero-copy { grid-area: copy; }
.hero-copy .hero-kicker, .hero-copy .eyebrow { max-width: 720px; }
.hero-copy .eyebrow { font-size: 0.9rem; text-align: center; color: rgba(255,255,255,0.9); letter-spacing: 0.08em; text-transform: none; }

.hero-copy h1 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero-copy h1 span { display: block; color: var(--gold); }
.hero-text { max-width: 680px; margin: 0 0 12px; color: rgba(255,255,255,0.86); font-size: 1.04rem; line-height: 1.5; }
.hero-strong { color: #fff; font-weight: 600; }
.hero-mini { margin: 0; color: rgba(255,255,255,0.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-media-single { grid-area: image; }
.hero-media-single img { width: 100%; height: 360px; object-fit: cover; border-radius: 36px 14px 36px 14px; border: 1px solid rgba(212,164,73,0.24); }
.hero-videos { grid-area: videos; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-card { padding: 14px; border-radius: 16px; }
.video-thumb { position: relative; overflow: hidden; border-radius: 13px; }
.video-thumb img { width: 100%; height: 155px; object-fit: cover; object-position: center; }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.9); color: #10141a; font-size: 1.4rem; }
.video-card h3 { margin: 12px 0 5px; color: #fff; }
.video-card p { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.88rem; }

.split-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.split-panel h2 { white-space: nowrap; font-size: clamp(1.35rem, 2.25vw, 1.9rem); }
.split-panel p, .text-panel li, .learning-panel li, .closing-card p, .teacher-copy p { color: rgba(255,255,255,0.78); }
.split-panel > p { margin: 0; font-size: 1.04rem; }
.text-panel h2, .learning-panel h2, .modules-panel h2 { text-align: center; }
.check-list { margin: 0; padding-left: 20px; columns: 2; column-gap: 42px; }
.check-list li { break-inside: avoid; margin-bottom: 10px; }
.compact-list { columns: 1; }

.learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.learning-grid article { padding: 18px; border-radius: 16px; }
.learning-grid h3 { margin: 0 0 12px; color: #fff; font-size: 1rem; line-height: 1.2; }
.learning-grid ul { margin: 0; padding-left: 18px; }
.learning-grid li { margin-bottom: 8px; font-size: 0.88rem; line-height: 1.35; }
.method-panel h2 { color: var(--gold); }

.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.module-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; }
.module-image { height: 122px; overflow: hidden; background: #151515; }
.module-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.module-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 16px; min-height: 438px; }
.module-number { display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 800; color: var(--gold); }
.module-card h3 { margin: 0 0 10px; color: #fff; font-size: 1.25rem; line-height: 1.12; letter-spacing: -0.03em; }
.module-card p { min-height: 58px; margin: 0 0 12px; color: rgba(255,255,255,0.82); font-size: 0.95rem; line-height: 1.35; }
.module-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: rgba(255,255,255,0.78); font-size: 0.82rem; }
.price-box, .date-box { padding: 0 0 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.price-box small, .date-box small { display: block; margin-bottom: 5px; text-transform: uppercase; color: var(--gold); font-size: 0.72rem; font-weight: 800; }
.price-box strong { display: block; font-size: 1.28rem; line-height: 1.05; color: #fff; }
.price-box span, .date-box span { display: block; color: #fff; font-size: 0.96rem; line-height: 1.35; }
.card-actions { margin-top: auto; display: grid; gap: 9px; }
.module-card .btn { width: 100%; min-height: 38px; font-size: 0.82rem; }
.soon-stamp { margin: 35px 0 auto; padding: 18px 0; transform: rotate(-12deg); border-top: 1px solid rgba(255,255,255,0.28); border-bottom: 1px solid rgba(255,255,255,0.28); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.62); font-size: 1.65rem; font-weight: 800; }
.is-soon .module-body { min-height: 438px; }

.closing-card { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: center; }
.closing-copy { align-self: center; }
.closing-copy p { font-size: 1rem; }
.closing-copy .check-list li { margin-bottom: 12px; }
.closing-card h2 { color: var(--gold); max-width: none; font-size: clamp(1.2rem, 2vw, 1.75rem); white-space: nowrap; }
.closing-card img { width: 100%; height: 230px; object-fit: cover; border-radius: 14px; margin-top: 18px; border: 1px solid rgba(255,255,255,0.12); }

.teacher-grid { display: grid; grid-template-columns: 330px 1fr; gap: 38px; align-items: center; }
.teacher-photo img { width: 100%; height: 420px; object-fit: cover; object-position: center; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); }
.teacher-copy h2 { margin-bottom: 8px; color: var(--gold); }
.teacher-copy p { margin: 0 0 10px; font-size: 0.95rem; }
.teacher-copy strong { color: #fff; }

.faq h2, .contact-box h2 { text-align: center; color: var(--gold); }
.faq-list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq-list details { padding: 15px 18px; background: #fffdf8; border-radius: 15px; border: 1px solid rgba(17,17,17,0.08); box-shadow: 0 8px 18px rgba(0,0,0,0.075); }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; }
.faq p, .contact-box p { color: var(--muted); line-height: 1.5; font-size: 0.9rem; }
.contact-box { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; padding: 22px; background: #fffdf8; border-radius: var(--radius); border: 1px solid rgba(17,17,17,0.08); box-shadow: 0 8px 18px rgba(0,0,0,0.075); }
.contact-box h2 { text-align: left; font-size: clamp(1.25rem, 2.1vw, 1.65rem); white-space: nowrap; }
.contact-box .eyebrow { color: var(--gold-2); }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(17,17,17,0.08); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 0.9rem; background: #fff; }
.contact-form textarea { min-height: 110px; resize: vertical; }

@media (max-width: 1120px) {
    .brand img { height: 145px; max-width: 310px; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-body, .is-soon .module-body { min-height: 390px; }
    .learning-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .navbar { position: relative; z-index: 5000; gap: 10px; justify-content: flex-start; }
    .nav-center { flex: 1; align-items: flex-start; gap: 0; min-width: 0; }
    .nav-subtitle { text-align: left; }
    .nav-subtitle span { font-size: clamp(0.78rem, 3.3vw, 0.98rem); line-height: 1.15; }
    .nav-subtitle small { font-size: clamp(0.62rem, 2.75vw, 0.78rem); line-height: 1.2; margin-top: 2px; }
    .menu-toggle { display: inline-flex; margin-left: auto; flex: 0 0 auto; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(212,164,73,0.35); border-radius: 12px; background: rgba(8,10,14,0.95); color: #fff; font-size: 1.55rem; cursor: pointer; }
    .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; width: 100%; flex-direction: column; gap: 0; padding: 12px; border-radius: 18px; background: #090b0f; border: 1px solid rgba(212,164,73,0.35); box-shadow: 0 22px 50px rgba(0,0,0,0.72); }
    .nav-links.is-open { display: flex; }
    .nav-links a { display: block; width: 100%; padding: 12px; color: #fff; background: rgba(255,255,255,0.035); border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; font-weight: 700; }
    .btn-nav.whatsapp-nav { display: inline-flex; order: 2; margin-left: auto; margin-right: 8px; }
    .hero-content { grid-template-columns: 1fr; grid-template-areas: "copy" "videos"; }
    .hero-media-single { display: none; }
    .contact-box h2, .split-panel h2, .closing-card h2 { white-space: normal; }
    .hero-videos, .split-panel, .closing-card, .teacher-grid, .contact-box { grid-template-columns: 1fr; }
    .check-list { columns: 1; }
}
@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .section { padding: 22px 0; }
    main .dark-panel { padding: 22px; }
    .brand img { height: 82px; max-width: 170px; }
    .hero-copy h1 { font-size: clamp(1.8rem, 10vw, 2.4rem); }
    .hero-videos, .module-grid { grid-template-columns: 1fr; }
    .module-body, .is-soon .module-body { min-height: 360px; }
    .module-image { height: 135px; }
    .soon-stamp { font-size: 1.35rem; }
    .teacher-photo img { height: 340px; }
}

/* Ajustes v4: texto de marca en mobile y ocultar proximamente */
@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .brand {
        order: 1;
    }

    .menu-toggle {
        order: 2;
        margin-left: auto;
        margin-top: 18px;
    }

    .nav-center {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        align-items: flex-start;
        margin-top: -8px;
        padding-left: 2px;
    }

    .nav-subtitle {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .modules .module-card.is-soon {
        display: none;
    }
}

.btn-disabled,
.btn-disabled:hover {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.35);
    transform: none;
}

/* v12 - trabajo de cierre: imagenes completas y layout proporcionado */
.closing-card-v12 {
    display: block;
    padding: clamp(28px, 4vw, 54px);
    border-radius: 24px;
}
.closing-card-v12 .closing-title {
    margin-bottom: clamp(18px, 2.4vw, 30px);
}
.closing-card-v12 h2 {
    color: var(--gold);
    max-width: 100%;
    white-space: normal;
    font-size: clamp(2rem, 4.1vw, 3.95rem);
    line-height: 1.05;
    margin: 0;
}
.closing-card-v12 .eyebrow {
    margin-bottom: 16px;
    letter-spacing: 0.24em;
}
.closing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(320px, 0.88fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.closing-media {
    display: grid;
    gap: clamp(18px, 2.2vw, 28px);
}
.closing-card-v12 .closing-media img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.18);
}
.closing-card-v12 .closing-copy {
    align-self: center;
    max-width: 560px;
}
.closing-card-v12 .closing-copy p,
.closing-card-v12 .closing-copy li {
    font-size: clamp(1.03rem, 1.55vw, 1.55rem);
    line-height: 1.48;
    color: rgba(255,255,255,0.9);
}
.closing-card-v12 .closing-copy p:first-child {
    color: #fff;
    margin-bottom: 22px;
}
.closing-card-v12 .compact-list {
    margin-bottom: clamp(28px, 4vw, 58px);
}
.closing-card-v12 .compact-list li {
    margin-bottom: 22px;
}
.closing-card-v12 .closing-separator {
    position: relative;
    height: 28px;
    margin: 0 0 clamp(28px, 4vw, 58px);
}
.closing-card-v12 .closing-separator::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.9;
}
.closing-card-v12 .closing-separator span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: #10161b;
}
.closing-card-v12 .closing-separator span::after {
    content: "✺";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 16px;
    line-height: 1;
}
@media (max-width: 980px) {
    .closing-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .closing-card-v12 .closing-copy {
        max-width: none;
    }
}
@media (max-width: 640px) {
    .closing-card-v12 {
        padding: 24px 18px;
    }
    .closing-card-v12 .closing-copy p,
    .closing-card-v12 .closing-copy li {
        font-size: 1rem;
    }
}

/* v14 - achicar proporcionalmente solo el bloque Trabajo de cierre. Miguel Abraham queda igual. */
.closing-work {
    padding-top: 22px;
    padding-bottom: 22px;
}
.closing-card-v12 {
    width: min(1040px, calc(100% - 36px));
    padding: clamp(22px, 3vw, 34px);
}
.closing-card-v12 .closing-title {
    margin-bottom: clamp(14px, 1.8vw, 22px);
}
.closing-card-v12 h2 {
    font-size: clamp(1.55rem, 2.7vw, 2.75rem);
    line-height: 1.08;
}
.closing-card-v12 .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
}
.closing-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: clamp(22px, 3.2vw, 46px);
}
.closing-media {
    gap: clamp(12px, 1.6vw, 18px);
}
.closing-card-v12 .closing-media img {
    max-height: 250px;
    object-fit: contain;
    border-radius: 14px;
}
.closing-card-v12 .closing-copy {
    max-width: 470px;
}
.closing-card-v12 .closing-copy p,
.closing-card-v12 .closing-copy li {
    font-size: clamp(0.92rem, 1.18vw, 1.08rem);
    line-height: 1.42;
}
.closing-card-v12 .closing-copy p:first-child {
    margin-bottom: 14px;
}
.closing-card-v12 .compact-list {
    margin-bottom: clamp(18px, 2.5vw, 34px);
}
.closing-card-v12 .compact-list li {
    margin-bottom: 12px;
}
.closing-card-v12 .closing-separator {
    height: 22px;
    margin-bottom: clamp(18px, 2.5vw, 34px);
}
.closing-card-v12 .closing-separator span {
    width: 26px;
    height: 26px;
}
.closing-card-v12 .closing-separator span::after {
    font-size: 13px;
}
@media (max-width: 980px) {
    .closing-card-v12 {
        width: min(760px, calc(100% - 36px));
    }
    .closing-card-v12 .closing-copy {
        max-width: none;
    }
}
@media (max-width: 640px) {
    .closing-card-v12 {
        width: calc(100% - 28px);
        padding: 20px 16px;
    }
    .closing-card-v12 h2 {
        font-size: 1.55rem;
    }
    .closing-card-v12 .closing-media img {
        max-height: none;
    }
}


/* v15 - reducir aun mas Trabajo de cierre, mantener Miguel Abraham igual */
.closing-card-v12{
    width:min(920px, calc(100% - 60px));
    padding:18px 22px;
}
.closing-layout{
    grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);
    gap:20px;
}
.closing-card-v12 h2{
    font-size:clamp(1.35rem,2.1vw,2.1rem);
}
.closing-card-v12 .closing-media img{
    max-height:180px;
}
.closing-card-v12 .closing-copy p,
.closing-card-v12 .closing-copy li{
    font-size:0.92rem;
    line-height:1.35;
}

/* v17 - Trabajo de cierre con el mismo tamano de ejemplo.jpg (1065x260) en escritorio. */
.closing-work {
    padding-top: 22px;
    padding-bottom: 22px;
}
.closing-card-v12 {
    width: min(1180px, calc(100% - 32px));
    /*aspect-ratio: 1065 / 260;*/
    min-height: 260px;
    padding: 26px 31px;
    box-sizing: border-box;
    overflow: hidden;
}
.closing-card-v12 .closing-title {
    margin-bottom: 14px;
}
.closing-card-v12 .eyebrow {
    margin: 0 0 8px;
    font-size: 0.66rem;
    letter-spacing: 0.24em;
}
.closing-card-v12 h2 {
    font-size: clamp(1.72rem, 2.7vw, 2rem);
    line-height: 1.02;
    margin: 0;
    white-space: normal;
}
.closing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
    gap: 18px;
    align-items: start;
}
.closing-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.closing-card-v12 .closing-media img {
    width: 100%;
    height: 112px;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    margin: 0;
}
.closing-card-v12 .closing-copy {
    max-width: none;
    align-self: start;
}
.closing-card-v12 .closing-copy p,
.closing-card-v12 .closing-copy li {
    font-size: 0.78rem;
    line-height: 1.22;
}
.closing-card-v12 .closing-copy p:first-child {
    margin: 0 0 7px;
}
.closing-card-v12 .compact-list {
    margin: 0 0 10px;
    padding-left: 1.1rem;
}
.closing-card-v12 .compact-list li {
    margin-bottom: 6px;
}
.closing-card-v12 .closing-separator {
    height: 14px;
    margin: 0 0 9px;
}
.closing-card-v12 .closing-separator::before {
    height: 1px;
}
.closing-card-v12 .closing-separator span {
    width: 18px;
    height: 18px;
}
.closing-card-v12 .closing-separator span::after {
    font-size: 9px;
}
.closing-card-v12 .closing-separator + p {
    margin: 0;
}
@media (max-width: 980px) {
    .closing-card-v12 {
        aspect-ratio: auto;
        min-height: 0;
        height: auto;
        overflow: visible;
    }
    .closing-layout {
        grid-template-columns: 1fr;
    }
    .closing-card-v12 .closing-media img {
        height: 160px;
    }
}
@media (max-width: 640px) {
    .closing-card-v12 {
        width: calc(100% - 24px);
        padding: 20px 16px;
    }
    .closing-card-v12 h2 {
        font-size: 1.45rem;
    }
    .closing-media {
        grid-template-columns: 1fr;
    }
    .closing-card-v12 .closing-media img {
        height: auto;
    }
    .closing-card-v12 .closing-copy p,
    .closing-card-v12 .closing-copy li {
        font-size: 0.95rem;
        line-height: 1.35;
    }
}

.whatsapp-nav{display:inline-flex;align-items:center;justify-content:center;}

@media (max-width: 900px){ .whatsapp-nav img{width:42px !important;height:42px !important;} .menu-toggle{order:3;} }

/* Video embebido del hero */
.hero-video-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; width: 100%; margin: 0 auto; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; background: #0b0f14; border: 1px solid rgba(212,164,73,0.22); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-video-single .video-card { padding: 16px; }


/* Video principal embebido: centrado, sin tarjeta contenedora */
.hero-video-wrap {
    grid-area: videos;
    width: 80%;
    max-width: 688px;
    margin: 0 auto;
}
.hero-video-wrap .video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #0b0f14;
    border: 0;
    box-shadow: none;
}
.hero-video-wrap .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (max-width: 768px) {
    .hero-video-wrap {
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }
    .hero-video-wrap .video-embed {
        border-radius: 10px;
    }
}

/* v25 - ajustes solicitados */
.nav-subtitle span {
    font-size: clamp(1.35rem, 2.35vw, 2.2rem);
    line-height: 1.08;
}
.hero-copy h1 {
    font-size: clamp(1.35rem, 2.25vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.method-panel-v25 {
    display: grid;
    gap: 26px;
}
.method-panel-v25 .method-main-title {
    margin: 0;
    text-align: center;
}
.method-panel-v25 .method-intro {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.study-plan {
    display: grid;
    gap: 12px;
}
.study-plan h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.1rem, 2.2vw, 1.9rem);
    line-height: 1.15;
    text-align: center;
}
.program-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
}
.program-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #111;
    background: #fff;
    font-size: clamp(1rem, 2.15vw, 1.95rem);
    line-height: 1.05;
}
.program-table th,
.program-table td {
    border: 1px solid #111;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.program-table thead th,
.program-table tbody th {
    font-weight: 800;
}
.closing-card-v25 {
    width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.method-panel-v25 .closing-card-v25 .closing-title {
    margin-top: 4px;
}
.method-panel-v25 .closing-card-v25 h2 {
    font-size: clamp(1.35rem, 2.45vw, 2.1rem);
}
.method-panel-v25 .closing-card-v25 .closing-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}
.method-panel-v25 .closing-card-v25 .closing-media img {
    height: 128px;
}
.faq-list details p {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .nav-subtitle span {
        font-size: clamp(0.88rem, 3.6vw, 1.12rem);
    }
    .hero-copy h1 {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
    }
    .method-panel-v25 .closing-card-v25 .closing-layout {
        grid-template-columns: 1fr;
    }
    .method-panel-v25 .closing-card-v25 .closing-media img {
        height: 160px;
    }
}
@media (max-width: 640px) {
    .program-table {
        min-width: 640px;
        font-size: 1rem;
    }
    .program-table th,
    .program-table td {
        padding: 7px 9px;
    }
    .method-panel-v25 .closing-card-v25 .closing-media {
        grid-template-columns: 1fr;
    }
    .method-panel-v25 .closing-card-v25 .closing-media img {
        height: auto;
    }
}

/* v26 - video embebido responsive en mobile */
.hero-video-wrap,
.hero-video-wrap .video-embed,
.hero-video-wrap .video-embed iframe {
    max-width: 100%;
}
.hero-video-wrap .video-embed iframe {
    display: block;
}
@media (max-width: 768px) {
    .hero-video-wrap {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .hero-video-wrap .video-embed {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }
    .hero-video-wrap .video-embed iframe {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }
}
@media (max-width: 420px) {
    .hero-video-wrap .video-embed {
        border-radius: 8px;
    }
}

/* v28 - fix definitivo video hero en mobile: responsive real, sin recorte */
.hero-video-wrap {
    box-sizing: border-box;
}
.hero-video-wrap .video-embed {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    overflow: visible;
}
.hero-video-wrap .video-embed iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0;
}
@media (max-width: 768px) {
    .hero-content {
        overflow: visible;
    }
    .hero-video-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 22px auto 0;
        padding: 0;
    }
    .hero-video-wrap .video-embed {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: auto;
        height: 0 !important;
        padding-bottom: 56.25%;
        border-radius: 10px;
        overflow: hidden;
        background: #0b0f14;
    }
    .hero-video-wrap .video-embed iframe {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
    }
}
@media (max-width: 420px) {
    .hero-video-wrap {
        margin-top: 18px;
    }
    .hero-video-wrap .video-embed {
        border-radius: 8px;
    }
}


/* v31 - YouTube responsive y correccion Error 153 */
.hero-video-wrap {
    width: min(100%, 688px);
    max-width: 688px;
    margin-left: auto;
    margin-right: auto;
}
.hero-video-wrap .video-embed {
    position: relative;
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    overflow: hidden;
    background: #0b0f14;
}
.hero-video-wrap .video-embed iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}
@supports not (aspect-ratio: 16 / 9) {
    .hero-video-wrap .video-embed {
        height: 0 !important;
        padding-bottom: 56.25% !important;
    }
}
@media (max-width: 768px) {
    .hero-video-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 18px;
    }
    .hero-video-wrap .video-embed {
        border-radius: 10px;
    }
}
.video-container{
    width:100%;
    max-width:900px;
    margin:0 auto;
}

.video-container video{
    width:100%;
    height:auto;
    display:block;
}


.contact-message{margin-top:18px;padding:12px 14px;border-radius:10px;font-weight:700}
.contact-ok{background:rgba(214,163,58,.16);border:1px solid rgba(214,163,58,.65);color:#fff3d0}
.contact-error{background:rgba(180,50,40,.16);border:1px solid rgba(255,120,100,.65);color:#ffd8d2}
