/* ========================================
   CURSO HERO
   ======================================== */

.curso-hero {
    position: relative;
    min-height: 34vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(120% 120% at 0% 0%, #f6faf6 0%, #eef4ef 45%, #e3ece4 100%);
}

.curso-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.curso-hero__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.curso-hero .container {
    position: relative;
    z-index: 2;
    padding: 60px 20px 50px;
}

.curso-eyebrow {
    display: inline-block;
    font-family: var(--font-texto);
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--verde-claro);
    border: 1px solid rgba(77, 140, 103, .4);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, .5);
}

.curso-title {
    font-family: var(--font-titulos);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    color: var(--verde-oscuro);
    margin: 0 auto;
    letter-spacing: 1px;
    line-height: 1.1;
}

.curso-title .accent {
    color: var(--verde-claro);
    font-style: italic;
}

.curso-hero-desc {
    font-family: var(--font-texto);
    font-size: 1rem;
    color: var(--verde-medio);
    max-width: 55ch;
    margin: 16px auto 0;
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   MOVIMIENTO SUTIL DE LOS FONDOS SVG
   ======================================== */

.wave-slow,
.wave-med,
.wave-fast {
    transform-box: fill-box;
    transform-origin: center;
}

.wave-slow { animation: cursoDrift 26s ease-in-out infinite alternate; }
.wave-med  { animation: cursoDrift 18s ease-in-out infinite alternate-reverse; }
.wave-fast { animation: cursoBreathe 14s ease-in-out infinite alternate; }

@keyframes cursoDrift {
    from { transform: translateX(-2%) translateY(0); }
    to   { transform: translateX(2%) translateY(-1.4%); }
}

@keyframes cursoBreathe {
    from { transform: scale(1); opacity: .85; }
    to   { transform: scale(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .wave-slow, .wave-med, .wave-fast { animation: none; }
}

/* ========================================
   PARA QUIÉN VA DIRIGIDO
   ======================================== */

.curso-para-quien {
    position: relative;
    margin-bottom: 44px;
    padding: 32px 38px 30px 42px;
    background: linear-gradient(135deg, rgba(232, 212, 160, 0.10), rgba(232, 212, 160, 0.02) 65%);
    border: 1px solid rgba(232, 212, 160, 0.22);
    border-radius: 22px;
    max-width: 760px;
    overflow: hidden;
    box-shadow: 0 16px 46px -22px rgba(0, 0, 0, 0.5);
}

.curso-para-quien::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -70px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 212, 160, 0.16), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.curso-para-quien::after {
    content: "\201D";
    position: absolute;
    top: -18px;
    left: 12px;
    font-family: var(--font-titulos);
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(232, 212, 160, 0.25);
    pointer-events: none;
}

.para-quien-label {
    position: relative;
    display: block;
    font-family: var(--font-texto);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dorado);
    margin-bottom: 12px;
    padding-left: 2px;
}

.para-quien-texto {
    position: relative;
    font-family: var(--font-texto);
    font-size: 0.92rem;
    color: rgba(248, 250, 248, 0.85);
    line-height: 1.75;
    margin: 0;
    padding-left: 2px;
}

@media (max-width: 480px) {
    .curso-para-quien {
        padding: 26px 24px 24px 28px;
    }
    .curso-para-quien::after {
        font-size: 4rem;
        top: -10px;
        left: 6px;
    }
}

/* ========================================
   CURSO CONTENT
   ======================================== */

.curso-content {
    position: relative;
    overflow: hidden;
    background-color: var(--verde-oscuro);
    padding: 70px 0 60px;
}

.curso-content__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.curso-content__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.curso-content > .container {
    position: relative;
    z-index: 1;
}

.curso-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ========================================
   ACORDEONES
   ======================================== */

.curso-acordeones {
    display: flex;
    flex-direction: column;
}

.acordeon-item {
    border-bottom: 1px solid rgba(232, 212, 160, 0.2);
}

.acordeon-header {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.acordeon-header span {
    font-family: var(--font-titulos);
    font-size: 1.5rem;
    color: var(--crema);
    text-align: left;
    transition: color 0.3s ease;
}

.acordeon-header .acordeon-icon {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(232, 212, 160, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.acordeon-header .acordeon-icon i {
    font-size: 0.85rem;
    color: var(--dorado);
    transition: transform 0.3s ease;
}

.acordeon-header:hover span { color: var(--dorado); }

.acordeon-header:hover .acordeon-icon {
    border-color: var(--dorado);
    background: rgba(232, 212, 160, 0.1);
}

.acordeon-header.active span { color: var(--dorado); }

.acordeon-header.active .acordeon-icon {
    background: rgba(232, 212, 160, 0.15);
    border-color: var(--dorado);
}

.acordeon-header.active .acordeon-icon i {
    transform: rotate(45deg);
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                opacity 0.3s ease;
    padding: 0;
    opacity: 0;
}

.acordeon-content.active {
    max-height: 1200px;
    padding: 4px 0 24px;
    opacity: 1;
}

.acordeon-content p,
.acordeon-content li {
    color: rgba(248, 250, 248, 0.85);
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.acordeon-content strong { color: var(--dorado); font-weight: 600; }
.acordeon-content ul { list-style: none; padding-left: 0; }

.acordeon-content ul li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
}

.acordeon-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--dorado);
    font-size: 0.85rem;
}

.docente-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(232, 212, 160, 0.1);
}

.docente-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.docente-nombre { margin-bottom: 4px !important; }
.docente-nombre strong { color: var(--dorado) !important; font-size: 1rem; }

.faq-item { margin-bottom: 18px; }
.faq-question { color: var(--dorado) !important; margin-bottom: 6px !important; font-weight: 600; }
.faq-answer { color: rgba(248,250,248,0.8) !important; padding-left: 0 !important; }

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

.curso-carousel {
    position: sticky;
    top: 90px;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active { opacity: 1; }

/* Modo "una sola imagen": no hay flechas ni indicadores, así que el
   slide no necesita esperar la clase .active para mostrarse — evita
   que la imagen quede invisible si el HTML no la tiene marcada. */
.curso-carousel--single .carousel-slide {
    position: static;
    opacity: 1;
}

.curso-carousel--single .carousel-container {
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Los flyers vienen editados a mano por vos con la proporción y el
   recorte ya resueltos del lado del diseño — así que acá NO se
   fuerza ningún aspect-ratio ni se vuelve a recortar. Se muestra
   la imagen tal cual, solo se limita el ancho máximo. */
.curso-carousel--single .carousel-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.curso-carousel--single .carousel-images {
    height: auto;
    background: transparent;
}

.curso-carousel--single .carousel-slide {
    width: 100%;
    height: auto;
    display: block;
}

.curso-carousel--single .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(8, 64, 32, 0.7);
    color: var(--blanco);
    border: 1px solid rgba(232, 212, 160, 0.3);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background-color: var(--dorado);
    color: var(--verde-oscuro);
    border-color: var(--dorado);
}

.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-btn i { font-size: 1rem; }

.carousel-indicators {
    text-align: center;
    margin-top: 14px;
    font-family: var(--font-texto);
    color: rgba(248,250,248,0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.current-slide { color: var(--dorado); font-weight: 600; }

/* ========================================
   OLA — curso-content (verde oscuro) → curso-cta-btns (claro)
   Mismo criterio que las olas del index: un solo divisor SVG,
   con el color de fondo de DESTINO (el primer stop del gradiente
   de curso-cta-btns), para que la transición se sienta continua
   en vez de un corte duro de color.
   ======================================== */

.curso-content-wave {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: var(--verde-oscuro);
    position: relative;
    z-index: 2;
    margin: -1px 0;
    padding: 0;
}

.curso-content-wave svg {
    display: block;
    width: 100%;
}

/* ========================================
   PRECIO DENTRO DEL ACORDEÓN DE MODALIDAD
   ======================================== */

.precio-en-modalidad {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(232, 212, 160, 0.2);
}

.pem-fila {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}

.pem-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pem-item:last-child { text-align: right; }

.pem-divider {
    width: 1px;
    height: 52px;
    background: rgba(232, 212, 160, 0.2);
    flex-shrink: 0;
    margin: 0 24px;
}

.pem-label {
    font-family: var(--font-texto);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #4d8c67;
    display: block;
}

.pem-valor {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    color: #e8d4a0;
    line-height: 1;
    display: block;
    margin: 2px 0;
}

.pem-valor--chico {
    font-size: 1.4rem;
    color: rgba(232, 212, 160, 0.75);
}

.pem-mes {
    font-family: var(--font-texto);
    font-size: 0.75rem;
    color: rgba(232, 212, 160, 0.5);
    font-weight: 400;
    margin-left: 4px;
}

.pem-nota {
    font-family: var(--font-texto);
    font-size: 0.72rem;
    color: rgba(248, 250, 248, 0.35);
    display: block;
}

.pem-btns {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.pem-btn-inscribite {
    flex: 1;
    height: 52px;
    background: transparent;
    color: #e8d4a0;
    font-family: var(--font-texto);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid rgba(232, 212, 160, 0.5);
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.pem-btn-inscribite:hover {
    background: #e8d4a0;
    color: #084020;
    border-color: #e8d4a0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pem-btn-wsp {
    flex: 1;
    height: 52px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-texto);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid #25D366;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.pem-btn-wsp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.pem-btn-wsp i { font-size: 1.1rem; }

@media (max-width: 480px) {
    .pem-fila { gap: 0; }
    .pem-btns { flex-direction: column; }
}

/* ========================================
   GRUPOS Y HORARIOS
   ======================================== */

.grupos-list {
    list-style: none !important;
    padding-left: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.grupo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(232, 212, 160, 0.08);
}

.grupo-item::before { display: none !important; }
.grupo-item:last-child { border-bottom: none; }

.grupo-badge {
    font-family: var(--font-texto);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(232, 212, 160, 0.15);
    color: var(--dorado);
    border: 1px solid rgba(232, 212, 160, 0.3);
    border-radius: 6px;
    padding: 3px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.grupo-horario {
    font-family: var(--font-texto);
    font-size: 0.9rem;
    color: rgba(248, 250, 248, 0.8);
}

/* ========================================
   CTA — botones fuera de los acordeones
   ======================================== */

.curso-cta-btns {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f6faf6 0%, #eef4ef 50%, #ddeade 100%);
    padding: 70px 24px 76px;
}

.curso-cta-btns__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.curso-cta-btns__bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Card que enmarca todo el bloque de CTA (título + bajada + botones),
   para que la sección tenga más peso y jerarquía en vez de dos
   botones sueltos flotando sobre el fondo. */
.cta-card {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 44px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(8, 64, 32, 0.08);
    border-radius: 28px;
    box-shadow: 0 30px 70px -32px rgba(8, 64, 32, 0.35);
    backdrop-filter: blur(3px);
}

.cta-eyebrow {
    display: inline-block;
    font-family: var(--font-texto);
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--verde-claro);
    margin-bottom: 14px;
}

.cta-title {
    font-family: var(--font-titulos);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--verde-oscuro);
    margin: 0 0 10px;
    line-height: 1.25;
}

.cta-desc {
    font-family: var(--font-texto);
    font-size: 0.92rem;
    color: var(--texto-secundario);
    max-width: 42ch;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.cta-btns-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botón Inscribite: antes plano y sin ícono, ahora con más presencia
   (ícono, tipografía un poco más grande, hover con leve escala además
   de elevación) para que compita en jerarquía visual con el de WhatsApp. */
.btn-inscribite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 16px 38px;
    background: var(--verde-claro);
    color: var(--crema);
    font-family: var(--font-texto);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border: 2px solid var(--verde-claro);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 26px -8px rgba(8, 64, 32, 0.45);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-inscribite i { font-size: 0.95rem; }

.btn-inscribite:hover {
    background: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
    color: var(--crema);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px -8px rgba(8, 64, 32, 0.5);
}

.btn-wsp-precio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 9px;
    padding: 16px 32px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-texto);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 2px solid #25D366;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.45);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-wsp-precio:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px -8px rgba(37, 211, 102, 0.5);
}

.btn-wsp-precio i { font-size: 1.05rem; }

/* Variante para las páginas de Clases Particulares, que solo tienen
   este botón (sin Inscribite ni modal) — le da más ancho y presencia
   propia en vez de verse "solo" al lado de un espacio vacío. */
.cta-btns-inner--single .btn-wsp-precio {
    padding: 17px 44px;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .cta-card { padding: 40px 28px; }
}

@media (max-width: 480px) {
    .cta-btns-inner { flex-direction: column; align-items: center; }
    .cta-btns-inner .btn-inscribite,
    .cta-btns-inner .btn-wsp-precio { width: 100%; max-width: 280px; }
}

/* ========================================
   MODAL DE INSCRIPCIÓN
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 20, 10, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeOverlay 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    background: var(--blanco);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-wave {
    display: block;
    margin: 0 auto 20px;
    width: 60px;
    color: var(--verde-claro);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(8, 64, 32, 0.15);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--texto-secundario);
    font-size: 1rem;
}

.modal-close:hover {
    background: var(--fondo-secundario);
    border-color: var(--verde-oscuro);
    color: var(--verde-oscuro);
}

.modal-title {
    font-family: var(--font-titulos);
    font-size: 1.9rem;
    color: var(--verde-oscuro);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-family: var(--font-texto);
    font-size: 0.9rem;
    color: var(--texto-secundario);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-chip {
    background: var(--fondo-secundario);
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
}

.modal-chip-label {
    font-family: var(--font-texto);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--verde-claro);
    display: block;
    margin-bottom: 6px;
}

/* Números del modal: Libre Baskerville, la misma serif institucional
   del hero, para que el arancel/reserva tengan consistencia con el resto
   del sitio. IMPORTANTE: agregar en el <head> el link de Google Fonts
   family=Libre+Baskerville:ital,wght@0,400;0,700;1,400 junto a los que
   ya tenés (o cae a font-titulos si no está disponible). */
.modal-chip-valor {
    font-family: 'Libre Baskerville', var(--font-titulos), serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--verde-oscuro);
    display: block;
}

.modal-tabla {
    border: 1.5px dashed rgba(8, 64, 32, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(8, 64, 32, 0.08);
    gap: 12px;
}

.modal-fila:last-child { border-bottom: none; }

.modal-fila-label {
    font-family: var(--font-texto);
    font-size: 0.85rem;
    color: var(--texto-secundario);
    flex-shrink: 0;
}

.modal-fila-valor {
    font-family: var(--font-texto);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    text-align: right;
    word-break: break-all;
}

.modal-instrucciones {
    font-family: var(--font-texto);
    font-size: 0.85rem;
    color: var(--texto-secundario);
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-wsp-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: #25D366;
    color: var(--blanco);
    font-family: var(--font-texto);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid #25D366;
}

.btn-wsp-modal:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wsp-modal i { font-size: 1.2rem; }

/* ========================================
   FIX HEADER LOGO
   ======================================== */

.header .logo a {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.header .logo img {
    width: 50px !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

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

@media (max-width: 1024px) {
    .curso-layout { gap: 40px; }
}

@media (max-width: 768px) {
    .curso-hero { min-height: auto; }
    .curso-layout { grid-template-columns: 1fr; gap: 40px; }
    .curso-carousel { position: static; }
    .carousel-images { height: 280px; }
    .acordeon-header span { font-size: 1.3rem; }
    .modal-card { padding: 28px 22px; }
    .modal-chips { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .carousel-images { height: 240px; }
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .modal-chips { grid-template-columns: 1fr; }

    /* Modal compacto: en pantallas chicas el contenido (título +
       bajada + 2 chips + tabla de 5 filas + instrucciones + botón)
       no entraba en el alto visible y había que scrollear para ver
       el botón de WhatsApp. Se reduce cada espaciado/tamaño para que
       el modal completo entre en la pantalla sin scroll. */
    .modal-overlay { padding: 12px; align-items: flex-start; padding-top: 5vh; }
    .modal-card { padding: 22px 18px; max-height: 90vh; border-radius: 20px; }
    .modal-wave { width: 40px; margin-bottom: 10px; }
    .modal-title { font-size: 1.35rem; margin-bottom: 4px; }
    .modal-subtitle { font-size: 0.8rem; margin-bottom: 14px; line-height: 1.4; }
    .modal-chips { gap: 8px; margin-bottom: 14px; }
    .modal-chip { padding: 10px 12px; border-radius: 10px; }
    .modal-chip-label { font-size: 0.6rem; margin-bottom: 3px; }
    .modal-chip-valor { font-size: 1.1rem; }
    .modal-tabla { margin-bottom: 12px; }
    .modal-fila { padding: 8px 12px; gap: 8px; }
    .modal-fila-label,
    .modal-fila-valor { font-size: 0.74rem; }
    .modal-instrucciones { font-size: 0.76rem; line-height: 1.45; margin-bottom: 14px; }
    .btn-wsp-modal { padding: 13px; font-size: 0.9rem; }
    .modal-close { top: 10px; right: 10px; width: 30px; height: 30px; }
}