/* =============================================================
   megaprofe-home.css  –  estilos propios de la home
   ============================================================= */

/* ---------- BACKGROUND ---------- */
.mp-home {
    background: var(--mp-bg);
}

/* ---------- HERO ---------- */
.mp-home .mp-hero {
    /* Reducir padding superior 75px para dejar espacio al menú de WordPress */
    padding-top: clamp(0px, calc(9vw - 75px), 53px);
    padding-bottom: 50px;
    overflow: hidden;
    /*
     * Mismo esquema que LeeunPoco:
     *   base: gradiente diagonal 135° con paradas bien visibles
     *   overlay ellipse arriba-derecha (lila)
     *   overlay ellipse abajo-izquierda (lila oscuro)
     */
    background:
        radial-gradient(ellipse 80% 150% at 115%  -5%, rgba(182, 102, 201, 0.28) 0%, transparent 65%),
        radial-gradient(ellipse 65% 110% at -15% 110%, rgba(142,  59, 161, 0.18) 0%, transparent 60%),
        linear-gradient(135deg, #0d1235 0%, #1a2470 45%, #4a4e88 100%);
}

/* Sin separador ni efecto inferior: borde recto */
.mp-home .mp-hero::after {
    display: none;
}

.mp-home .mp-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
}

.mp-home .mp-hero .mp-title {
    max-width: 740px;
}

.mp-home .mp-hero-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: flex-end;
}

.mp-home .mp-hero-card .mp-media {
    width: 408px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.mp-home .mp-hero-card .mp-image-placeholder {
    min-height: 330px;
    color: rgba(255, 255, 255, 0.84);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(182, 102, 201, 0.20)),
        rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
}

/* ---------- INTRO ---------- */
.mp-home .mp-intro {
    background: #FFFFFF;
}

.mp-home .mp-intro .mp-split > div:first-child {
    text-align: center;
}

/* Vídeo YouTube: 80% del div izquierdo, centrado, debajo del h2 */
.mp-home .mp-intro-video {
    margin-top: 28px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.mp-home .mp-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(17, 24, 73, 0.18);
}

.mp-home .mp-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.mp-home .mp-split {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(30px, 6vw, 78px);
    align-items: center;
}

.mp-home .mp-lead-panel {
    padding: clamp(26px, 4vw, 42px);
    border-left: 4px solid var(--mp-primary);
    border-radius: 0 var(--mp-radius-md) var(--mp-radius-md) 0;
}

.mp-home .mp-lead-panel p {
    margin: 0;
    color: var(--mp-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.mp-home .mp-lead-panel p + p {
    margin-top: 18px;
}

/* Tarjetas sobre fondo pizarra: borde sutil y sin sombra fuerte */
.mp-home .mp-highlight-section .mp-showcase-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.mp-home .mp-highlight-section .mp-showcase-card h3 {
    color: #FFFFFF;
}

.mp-home .mp-highlight-section .mp-showcase-card p {
    color: rgba(255, 255, 255, 0.78);
}

.mp-home .mp-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.mp-home .mp-showcase-card {
    padding: clamp(26px, 3.5vw, 40px);
    border-top: 3px solid var(--mp-primary);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.mp-home .mp-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 54px rgba(17, 24, 73, 0.16);
}

.mp-home .mp-showcase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-primary-light) 100%);
    border-radius: 14px;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(142, 59, 161, 0.32);
}

.mp-home .mp-showcase-card h3 {
    margin: 0;
    color: var(--mp-text);
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.25;
}

.mp-home .mp-showcase-card p {
    margin: 12px 0 0;
    color: var(--mp-muted);
    font-size: 1rem;
    line-height: 1.72;
}

/* ---------- VERSIÓN GRATUITA ---------- */
.mp-home .mp-free-band {
    background: #FFFFFF;
}

.mp-home .mp-free-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(36px, 5vw, 60px);
    background:
        radial-gradient(circle at 94% 18%, rgba(182, 102, 201, 0.22), transparent 32%),
        radial-gradient(circle at 6% 84%, rgba(142, 59, 161, 0.12), transparent 28%),
        var(--mp-dark);
    border-radius: var(--mp-radius-lg);
    color: #FFFFFF;
}

.mp-home .mp-free-card .mp-section-title,
.mp-home .mp-free-card .mp-text {
    color: #FFFFFF;
}

.mp-home .mp-free-card .mp-eyebrow {
    color: rgba(255, 255, 255, 0.80);
}

.mp-home .mp-free-card .mp-section-title strong {
    color: var(--mp-primary-light);
}

/* ---------- MP STUDENTS ---------- */
.mp-home .mp-students {
    background: var(--mp-dark);
}

.mp-home .mp-students .mp-split {
    gap: clamp(16px, 3vw, 32px);
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.mp-home .mp-students .mp-split > div:last-child {
    display: flex;
    justify-content: flex-end;
}

.mp-home .mp-students .mp-split .mp-media {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.mp-home .mp-students .mp-image-placeholder {
    min-height: 360px;
    color: rgba(255, 255, 255, 0.84);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(182, 102, 201, 0.18)),
        rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.26);
}

.mp-home .mp-check-list {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.mp-home .mp-check-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.55;
}

/* ---------- TECH SECTION ---------- */
.mp-home .mp-tech-section {
    background: var(--mp-bg);
}

.mp-home .mp-tech-grid {
    display: grid;
    /* columna imagen estrecha, columna texto ancha */
    grid-template-columns: 239px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.mp-home .mp-tech-image {
    display: flex;
    justify-content: flex-start;
}

.mp-home .mp-tech-image .mp-media {
    width: 239px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

@media (max-width: 900px) {
    .mp-home .mp-tech-grid {
        grid-template-columns: 1fr;
    }

    .mp-home .mp-tech-image {
        justify-content: center;
    }

    .mp-home .mp-tech-image .mp-media {
        width: min(239px, 100%);
    }
}

/* ---------- TESTIMONIOS – CARRUSEL ---------- */
.mp-home .mp-testimonials {
    background: var(--mp-bg);
}

/* ---------- PARA QUIÉN ES ---------- */
.mp-home .mp-audience {
    background: #FFFFFF;
}

.mp-home .mp-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.mp-home .mp-audience-card {
    padding: clamp(26px, 3.5vw, 38px);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.mp-home .mp-audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 44px rgba(17, 24, 73, 0.14);
}

.mp-home .mp-audience-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-primary-light) 100%);
    border-radius: 14px;
    font-size: 1.35rem;
    box-shadow: 0 6px 16px rgba(142, 59, 161, 0.32);
}

.mp-home .mp-audience-card h3 {
    margin: 0;
    color: var(--mp-text);
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.25;
}

.mp-home .mp-audience-card p {
    margin: 12px 0 0;
    color: var(--mp-muted);
    font-size: 1rem;
    line-height: 1.72;
}

/* ---------- FINAL CTA ---------- */
.mp-home .mp-final-cta {
    text-align: center;
}

.mp-home .mp-final-cta .mp-container {
    max-width: 820px;
}

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

@media (max-width: 1020px) {
    .mp-home .mp-showcase-grid {
        grid-template-columns: 1fr;
    }

    .mp-home .mp-audience-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .mp-home .mp-hero .mp-eyebrow.mp-hide-mobile {
        visibility: hidden;
    }

    .mp-home .mp-hero-grid,
    .mp-home .mp-split,
    .mp-home .mp-students .mp-split,
    .mp-home .mp-free-card {
        grid-template-columns: 1fr;
    }

    .mp-home .mp-free-card {
        text-align: center;
    }

    .mp-home .mp-free-card .mp-actions {
        justify-content: center;
    }

    /* Centrar imagen del hero y de Students cuando el grid pasa a 1 columna */
    .mp-home .mp-hero-card,
    .mp-home .mp-students .mp-split > div:last-child {
        justify-content: center;
    }

    .mp-home .mp-hero .mp-title {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .mp-home .mp-hero-card .mp-image-placeholder,
    .mp-home .mp-students .mp-image-placeholder {
        min-height: 280px;
    }
}

@media (max-width: 680px) {
    .mp-home .mp-hero {
        padding: 34px 22px 52px;
    }

    .mp-home .mp-section,
    .mp-home .mp-card,
    .mp-home .mp-tech-copy,
    .mp-home .mp-lead-panel,
    .mp-home .mp-showcase-card,
    .mp-home .mp-audience-card,
    .mp-home .mp-testimonial-card {
        text-align: center;
    }

    .mp-home .mp-actions,
    .mp-home .mp-check-list,
    .mp-home .mp-tech-image,
    .mp-home .mp-hero-card,
    .mp-home .mp-students .mp-split > div:last-child {
        justify-content: center;
    }

    .mp-home .mp-actions,
    .mp-home .mp-btn {
        width: 100%;
    }

    .mp-home .mp-showcase-icon,
    .mp-home .mp-audience-icon,
    .mp-home .mp-testimonial-photo {
        margin-left: auto;
        margin-right: auto;
    }

    .mp-home .mp-stars {
        justify-content: center;
    }

    .mp-home .mp-check-list li {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mp-home .mp-lead-panel {
        border-left: 0;
        border-top: 4px solid var(--mp-primary);
        border-radius: var(--mp-radius-md);
    }

    .mp-home .mp-audience-grid {
        grid-template-columns: 1fr;
    }

    .mp-home .mp-lead-panel,
    .mp-home .mp-showcase-card,
    .mp-home .mp-audience-card {
        padding: 22px;
    }

    /* Vídeo de la intro a ancho completo en smartphone */
    .mp-home .mp-intro-video {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .mp-home .mp-hero-card {
        padding: 18px;
    }

    .mp-home .mp-free-card {
        padding: 26px 20px;
    }

}
