/* ==========================================================================
   Edumy Child · Escuela Baby Plutón · Identidad en todo el sitio
   Medidas en px: Edumy fija la base del documento en 10px (los rem de la landing no sirven acá).
   Solo usa las variables de tokens.css / tema.css (colores y tipografías de la landing activa).
   Los !important son para pisar la tipografía y los colores que Elementor fija bloque por bloque.
   ========================================================================== */

/* ---------- Tipografía y texto ---------- */
body[class*="elementor-kit-"] {
    /* Tipografías y colores globales de Elementor (el kit trae Roboto y los colores de fábrica) */
    --e-global-typography-primary-font-family: var(--ff-subtitle);
    --e-global-typography-primary-font-weight: var(--fw-subtitle);
    --e-global-typography-secondary-font-family: var(--ff-highlight);
    --e-global-typography-secondary-font-weight: var(--fw-highlight);
    --e-global-typography-text-font-family: var(--ff-body);
    --e-global-typography-text-font-weight: var(--fw-body);
    --e-global-typography-accent-font-family: var(--ff-body);
    --e-global-typography-accent-font-weight: 600;
    --e-global-color-primary: var(--bp-acento);
    --e-global-color-secondary: var(--bp-titulo);
    --e-global-color-text: var(--bp-texto);
    --e-global-color-accent: var(--bp-primario);
}
body {
    font-family: var(--ff-body);
    font-weight: var(--fw-body);
    color: var(--bp-texto);
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body p, body li, body td, body dd, body label, body input, body select, body textarea, body button {
    font-family: var(--ff-body);
}
h1, h2, h3, h4, h5, h6,
.title, .widget-title, .entry-title, .page-title {
    font-family: var(--ff-subtitle);
    font-weight: var(--fw-subtitle);
    color: var(--bp-titulo);
    letter-spacing: -.01em;
    line-height: 1.15;
}
/* Títulos de Elementor y de Edumy: la tipografía fina (Roboto 200/300) era el «lavado» del sitio */
.elementor-widget-edumy_heading .title,
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--ff-subtitle) !important;
    font-weight: var(--fw-subtitle) !important;
    letter-spacing: -.01em !important;
}
.elementor-widget-edumy_heading .sub-title,
.elementor-widget-edumy_heading .des,
.elementor-widget-edumy_heading .description {
    font-family: var(--ff-highlight) !important;
    font-style: italic;
}
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
    font-family: var(--ff-body) !important;
    font-weight: var(--fw-body) !important;
    line-height: 1.7;
}
.elementor-widget-text-editor strong, .elementor-widget-text-editor b { font-weight: 600 !important; color: var(--bp-titulo); }
.elementor-widget-text-editor em { font-family: var(--ff-highlight) !important; }

a { color: var(--bp-destacado); transition: color .2s; }
a:hover, a:focus { color: var(--bp-primario-texto); }
::selection { background: color-mix(in srgb, var(--c-primary) 35%, transparent); color: inherit; }
:focus-visible { outline: 2px solid var(--bp-acento); outline-offset: 3px; }

/* ---------- Botones ---------- */
.elementor-button,
.elementor-widget-button .elementor-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .7em;
    min-height: 50px;
    padding: .85em 1.7em !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--bp-acento) !important;
    color: var(--bp-acento-texto) !important;
    font-family: var(--ff-body) !important;
    font-size: 13.4px !important;
    font-weight: 600 !important;
    letter-spacing: .16em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--bp-acento) 85%, transparent);
    transition: transform .3s var(--bp-ease), box-shadow .3s var(--bp-ease) !important;
}
.elementor-button:hover, .elementor-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--bp-acento) 95%, transparent);
}
.elementor-button .elementor-button-text::after { content: " →"; } /* la flecha de la landing */
.btn-theme, .btn-theme-second, .btn.btn-theme, .button, .woocommerce .button, .woocommerce button.button,
.woocommerce a.button, .lp-button, input[type="submit"], button[type="submit"]:not(.btn-search-icon):not(.btn-search),
.wpcf7-submit, .wpforms-submit {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--bp-acento) !important;
    color: var(--bp-acento-texto) !important;
    font-family: var(--ff-body) !important;
    font-weight: 600 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .85em 1.7em;
    transition: transform .25s var(--bp-ease), opacity .25s;
}
.btn-theme:hover, .button:hover, .lp-button:hover, input[type="submit"]:hover, .wpcf7-submit:hover, .wpforms-submit:hover {
    transform: translateY(-1px);
    opacity: .94;
}

/* ---------- Campos de formularios ---------- */
.elementor-widget-container input[type="text"], .elementor-widget-container input[type="email"],
.elementor-widget-container input[type="tel"], .elementor-widget-container textarea, .elementor-widget-container select,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea,
.wpforms-form input[type="text"], .wpforms-form input[type="email"], .wpforms-form input[type="tel"], .wpforms-form textarea {
    border: 1px solid var(--bp-linea) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--bp-texto) !important;
    font-family: var(--ff-body) !important;
    box-shadow: none !important;
}

/* ---------- Barra de aviso (inc/barra-aviso.php) ---------- */
.bp-wrap { width: 100%; max-width: calc(var(--bp-wrap) + 2 * var(--bp-gutter)); margin-inline: auto; padding-inline: var(--bp-gutter); }
.bp-topbar {
    position: relative;
    z-index: 60;
    background: var(--bp-fondo-oscuro-2);
    color: var(--bp-sobre-oscuro);
    border-bottom: 1px solid color-mix(in srgb, var(--bp-sobre-oscuro) 16%, transparent);
}
.bp-topbar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6.4px 22.4px; min-height: 52px; padding-block: 8px; }
.bp-topbar__text {
    margin: 0;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: center;
    color: color-mix(in srgb, var(--bp-sobre-oscuro) 80%, transparent);
}
.bp-topbar__cta {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .55em 1.15em;
    border-radius: 999px;
    background: var(--c-cta);
    color: var(--c-cta-ink) !important;
    font-size: 11.2px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .25s var(--bp-ease);
}
.bp-topbar__cta:hover { transform: translateY(-1px); }
@media (max-width: 599px) {
    .bp-topbar__text { font-size: 9.9px; letter-spacing: .14em; }
}

/* ---------- Encabezado (escritorio: plantilla de Elementor de Edumy; celular: header-mobile) ---------- */
.apus-header, #apus-header-mobile {
    position: relative;
    z-index: 40;
    background: var(--hero-c1);
}
.apus-header .elementor-section, .apus-header .elementor-column, .apus-header .elementor-widget-wrap {
    background: transparent !important;
}
.apus-header > .elementor > .elementor-section > .elementor-container { min-height: 104px; align-items: center; }
/* Logo: la versión clara de la landing (la del sitio es para fondo blanco) */
.apus-header .logo a, #apus-header-mobile .logo a, .apus-footer .logo a {
    display: block;
    background: url("../img/logo-negativo.svg") left center / contain no-repeat;
}
.apus-header .logo img, #apus-header-mobile .logo img, .apus-footer .logo img { opacity: 0; }
.apus-header .logo img { height: 62px; width: auto; }
#apus-header-mobile .logo img { height: 48px; width: auto; }

/* Menú */
.apus-header #primary-menu > li { margin: 0 clamp(8px, 1vw, 16px); }
.apus-header #primary-menu > li > a {
    position: relative;
    padding: 14px 0 !important;
    font-family: var(--ff-body) !important;
    font-size: 11.8px !important;
    font-weight: 500 !important;
    letter-spacing: .2em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    color: var(--c-accent) !important;
    background: none !important;
}
.apus-header #primary-menu > li > a::before { display: none !important; } /* subrayado propio de Edumy */
.apus-header #primary-menu > li.active > a::after,
.apus-header #primary-menu > li > a:hover::after {
    content: "";
    position: absolute;
    left: 0; right: .2em; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-accent);
}
.apus-header #primary-menu .caret { border-top-color: currentColor; }
.apus-header #primary-menu .dropdown-menu {
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: var(--bp-fondo-claro);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.apus-header #primary-menu .dropdown-menu a {
    padding: 10px 14px !important;
    border-radius: 10px;
    font-family: var(--ff-body) !important;
    font-size: 15.2px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--bp-texto) !important;
}
.apus-header #primary-menu .dropdown-menu a:hover { background: var(--bp-fondo-tinte); color: var(--bp-titulo) !important; }
/* «Ver tienda online» como botón contorneado */
.apus-header #primary-menu > li > a[href*="tienda."] {
    padding: 13px 20px !important;
    border: 1.5px solid var(--c-accent);
    border-radius: 999px;
}
.apus-header #primary-menu > li > a[href*="tienda."]::after { display: none; }
.apus-header #primary-menu > li > a[href*="tienda."] .fa { display: none; }
/* Ingreso y carrito */
.apus-header .login-account a, .apus-header .login-account i,
.apus-header .apus-topcart a, .apus-header .apus-topcart i {
    font-family: var(--ff-body) !important;
    font-size: 11.8px !important;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-accent) !important;
    white-space: nowrap;
}
.apus-header .login-account i, .apus-header .apus-topcart i { font-size: 18px !important; }
.apus-header .apus-topcart .count {
    background: var(--c-cta) !important;
    color: var(--c-cta-ink) !important;
}
.apus-header .border-left-right { border-color: color-mix(in srgb, var(--c-accent) 25%, transparent) !important; }
#apus-header-mobile .btn-showmenu, #apus-header-mobile .btn-showsearch, #apus-header-mobile .login-account a,
#apus-header-mobile .login-account i { color: var(--c-accent) !important; }
#apus-header-mobile .btn-showmenu .inner-left, #apus-header-mobile .btn-showmenu span,
#apus-header-mobile .btn-showmenu::before, #apus-header-mobile .btn-showmenu::after { background-color: var(--c-accent) !important; }
#apus-header-mobile { display: flow-root; } /* contiene sus columnas flotantes (Bootstrap) */
#apus-header-mobile .header-bottom-mobile { background: transparent; border-color: color-mix(in srgb, var(--c-accent) 18%, transparent); }

/* Páginas con hero propio (la portada): el encabezado va transparente sobre el degradé */
body:has(.bp-hero) .apus-header,
body:has(.bp-hero) #apus-header-mobile { background: transparent; }

/* Menú lateral del celular (Edumy) */
.apus-offcanvas .offcanvas-head { background: var(--bp-fondo-oscuro-2) !important; color: var(--bp-sobre-oscuro); }
.apus-offcanvas a { font-family: var(--ff-body); }

/* ---------- Bandas de título (Edumy en archivos, tienda y cursos; bp-mailings en el blog) ----------
   Iguales a las bandas de Elementor de las páginas, que con el reemplazo de colores quedan en el fondo oscuro */
.apus-breadscrumb,
html body.sac-mailing-listado .sacm-hero {
    position: relative;
    overflow: hidden;
    background: var(--bp-fondo-oscuro) !important;
    color: var(--bp-sobre-oscuro);
}
/* Edumy le pone una imagen de fondo (Opciones del tema) y un degradé encima: se sacan los dos */
html body .apus-breadscrumb, html body #apus-breadscrumb { background-image: none !important; } /* el plugin de CSS la fija por id */
html body .apus-breadscrumb::before, html body #apus-breadscrumb::before { background-image: none !important; opacity: 1 !important; }
.apus-breadscrumb::before,
html body.sac-mailing-listado .sacm-hero::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--bp-sobre-oscuro) 18%, transparent) !important;
    opacity: 1 !important;
    -webkit-mask: url("../img/deco/pattern-estrellas.svg") 0 0 / 260px 260px repeat;
    mask: url("../img/deco/pattern-estrellas.svg") 0 0 / 260px 260px repeat;
    pointer-events: none;
}
.apus-breadscrumb > *, html body.sac-mailing-listado .sacm-hero > * { position: relative; }
html body .apus-breadscrumb .bread-title, .apus-breadscrumb h1, .apus-breadscrumb h2,
html body.sac-mailing-listado .sacm-hero-titulo {
    font-family: var(--ff-subtitle) !important;
    font-weight: var(--fw-subtitle) !important;
    letter-spacing: .02em !important;
    color: var(--bp-sobre-oscuro) !important;
}
.apus-breadscrumb .breadcrumb, .apus-breadscrumb .breadcrumb a, .apus-breadscrumb .breadcrumb li {
    color: color-mix(in srgb, var(--bp-sobre-oscuro) 78%, transparent) !important;
}
/* Blog (bp-mailings): sus variables pasan a las de la landing */
html body.sac-mailing-listado {
    --sacm-fondo: var(--bp-fondo-tinte);
    --sacm-papel: var(--bp-fondo-claro);
    --sacm-agua: var(--bp-fondo-oscuro);
    --sacm-agua-osc: var(--bp-titulo);
    --sacm-ambar: var(--bp-primario);
    --sacm-tinta: var(--bp-texto);
    --sacm-suave: var(--bp-texto-suave);
    --sacm-linea: var(--bp-linea);
}

/* ---------- Bloques de Elementor del sitio ---------- */
/* Las imágenes con bordes, tarjetas y recuadros de los bloques claros toman el radio de la landing */
.elementor-widget-image img { border-radius: 0; }
.elementor-widget-image-carousel .swiper-slide-image { border-radius: var(--bp-radius); }
.elementor-widget-image-carousel .elementor-swiper-button { color: var(--bp-acento) !important; }
.elementor-widget-image-carousel .swiper-pagination-bullet-active { background: var(--bp-primario) !important; }

/* Testimonios de Edumy (plantilla «bloque-testimonios»): tarjetas como las de la landing */
.widget-testimonials .testimonials-item .info {
    position: relative;
    margin: 10px 12px 28px;
    padding: clamp(28px, 3vw, 38px) clamp(24px, 2.6vw, 34px) clamp(26px, 2.6vw, 32px);
    border: 1px solid color-mix(in srgb, var(--c-card-text) 16%, transparent);
    border-radius: 26px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--c-card-text) 7%, transparent), transparent 55%), var(--c-card);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7);
    text-align: left;
    color: var(--c-card-text);
}
.widget-testimonials .testimonials-item .info::before {
    content: "\201C";
    display: block;
    height: .42em;
    margin-bottom: 22px;
    font-family: var(--ff-subtitle);
    font-weight: 700;
    font-size: 83.2px;
    line-height: .9;
    color: var(--c-accent);
}
.widget-testimonials .testimonials-item .description {
    font-family: var(--ff-highlight) !important;
    font-weight: var(--fw-highlight) !important;
    font-size: clamp(16.3px, 1.3vw, 17.9px) !important;
    line-height: 1.6 !important;
    color: var(--c-card-strong) !important;
}
.widget-testimonials .testimonials-item .name-client,
.widget-testimonials .testimonials-item .name-client a {
    margin-top: 22px;
    font-family: var(--ff-body) !important;
    font-size: 12.2px !important;
    font-weight: 600 !important;
    letter-spacing: .2em !important;
    text-transform: uppercase !important;
    color: var(--c-card-strong) !important;
}
.widget-testimonials .testimonials-item .name-client::before {
    content: "";
    display: block;
    width: 28px; height: 1px;
    margin-bottom: 10px;
    background: var(--c-accent-soft);
}
.widget-testimonials .slick-dots li button { background: color-mix(in srgb, currentColor 36%, transparent) !important; }
.widget-testimonials .slick-dots li.slick-active button { width: 26px; background: var(--c-deep-accent) !important; }

/* ---------- Pie ---------- */
.apus-footer {
    position: relative;
    background: var(--bp-fondo-oscuro-2) !important;
    color: var(--bp-sobre-oscuro);
}
.apus-footer .elementor-top-section { background-color: transparent !important; }
.apus-footer .elementor-top-section:last-child {
    background-color: var(--bp-fondo-oscuro) !important;
    border-top: 1px solid color-mix(in srgb, var(--bp-sobre-oscuro) 14%, transparent);
}
.apus-footer .logo img { height: 64px; width: auto; }
.apus-footer a, .apus-footer .menu li a, .apus-footer .widget-nav-menu a {
    font-family: var(--ff-body) !important;
    font-size: 11.8px !important;
    font-weight: 500 !important;
    letter-spacing: .2em !important;
    text-transform: uppercase;
    color: var(--bp-sobre-oscuro) !important;
}
.apus-footer a:hover { color: var(--c-deep-accent) !important; }
.apus-footer p, .apus-footer .elementor-widget-text-editor {
    color: color-mix(in srgb, var(--bp-sobre-oscuro) 78%, transparent) !important;
    font-size: 13.6px !important;
}
.apus-footer .elementor-widget-text-editor a { text-transform: none; letter-spacing: 0 !important; font-size: inherit !important; text-decoration: underline; }
.apus-footer [class*="border"], .apus-footer .elementor-divider-separator { border-color: color-mix(in srgb, var(--bp-sobre-oscuro) 18%, transparent) !important; }

/* Volver arriba */
#back-to-top, .add-fix-top { background: var(--bp-acento) !important; color: var(--bp-acento-texto) !important; border-radius: 50% !important; }

/* ---------- Reglas del plugin «Simple Custom CSS and JS» con la paleta anterior ----------
   Tienen !important: se pisan con selectores más fuertes (html body …). Si se editan ahí, conviene usar
   las variables de la landing (var(--bp-…)) en lugar de colores fijos. */
html body .slick-carousel .slick-dots li.slick-active button { background: var(--c-deep-accent) !important; }
html body .apus-offcanvas .offcanvas-head,
html body .apus-offcanvas .offcanvas-head:active,
html body .apus-offcanvas .offcanvas-head:hover { background: var(--bp-fondo-oscuro-2) !important; }
html body .widget-copyright { color: color-mix(in srgb, var(--bp-sobre-oscuro) 78%, transparent) !important; }
html body .apus-footer .elementor-element:not(.elementor-motion-effects-element-type-background) { background-color: transparent !important; }
html body .apus-footer .elementor-top-section:last-of-type:not(.elementor-motion-effects-element-type-background) {
    background-color: var(--bp-fondo-oscuro) !important;
}
html body #apus-footer .widget-content a, html body #apus-footer .menu a { color: var(--bp-sobre-oscuro) !important; }
html body #apus-footer .widget-content a:hover { color: var(--c-deep-accent) !important; }
html body .apus-footer .logo.custom-logo.footer-logo::after { display: none !important; } /* separador vertical: los links van debajo */
html body .add-fix-top { background-color: var(--bp-acento) !important; color: var(--bp-acento-texto) !important; }
html body .widget-testimonials.style2 .slick-carousel .slick-slide.slick-active .description,
html body .widget-testimonials.style2 .slick-carousel .slick-slide .description { background-color: transparent !important; color: var(--c-card-strong) !important; }
html body .megamenu .dropdown-menu li.current-menu-item > a,
html body .megamenu .dropdown-menu li > a:hover { color: var(--bp-titulo) !important; }
html body .elementor-accordion-item > div:first-child.elementor-active { background-color: var(--bp-fondo-oscuro) !important; }
html body .apus-mfp-zoom-in .mfp-content .apus_login_register_form .form-login-register-inner,
html body .apus-mfp-zoom-in .mfp-content .apus_login_register_form .mfp-close,
html body .sidebar .close-sidebar-btn { background-color: var(--bp-fondo-oscuro-2) !important; }
html body .elementor-widget-text-editor .wpcf7-form .wpcf7-submit {
    border: 0 !important;
    background: var(--bp-acento) !important;
    color: var(--bp-acento-texto) !important;
}
html body .page-404 .title-big { color: var(--bp-primario) !important; }
html body .course-entry:hover .course-cover .course-cover-thumb a::before { background-color: color-mix(in srgb, var(--bp-fondo-oscuro) 70%, transparent) !important; }
/* Perfil del alumno (LearnPress) */
html body .learn-press-profile-course__progress .lp_profile_course_progress__header,
html body .lp-user-profile #profile-nav .lp-profile-nav-tabs > li.active,
html body .lp-user-profile #profile-nav .lp-profile-nav-tabs > li:hover { background: var(--bp-fondo-tinte) !important; }
html body .lp-user-profile #profile-nav .lp-profile-nav-tabs > li > a > i,
html body .lp-user-profile .wrapper-profile-header,
html body .learn-press-course-tab-filters .learn-press-filters a.active,
html body .statistic-box .statistic-box__number { color: var(--bp-titulo) !important; }
html body .lp-user-profile .lp-profile-username { font-family: var(--ff-title) !important; color: var(--bp-titulo) !important; letter-spacing: .14em; }
html body .apus-breadscrumb .bread-title { font-weight: var(--fw-subtitle) !important; }

/* Testimonios de Edumy (estilo 2): sin la comilla gigante ni su sangría; la tarjeta ya trae la suya */
html body .widget-testimonials.style2 .description,
html body .widget-testimonials.style2 .slick-carousel .slick-slide .description {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    text-align: left !important;
}
html body .widget-testimonials.style2 .description::before { display: none !important; content: none !important; }
html body .widget-testimonials.style2 .testimonials-item .info { text-align: left !important; }
