/* Home (debajo del carrusel) y página de Funciones: secciones nuevas, barras "Anúnciate aquí" siempre visibles. */

:root {
    --ml-cream: #fbf7ef;
    --ml-line: #ece4d2;
    --ml-muted: #5f5a52;
    /* Hueco que se deja a cada lado para las barras fijas de publicidad (0 en celular: ahí la barra va abajo). */
    --ml-ad-gutter: 0px;
    --ml-ad-bar-h: 0px;
}

#cobertura,
#faq {
    scroll-margin-top: 96px;
}

/* ====================== Barras de publicidad siempre visibles ====================== */
/* Fijas a los lados; el carrusel (z-index en landing-modern.css) las tapa a propósito mientras está a la vista, y el
   resto del contenido deja su hueco para que no lo tapen. */
@media (min-width: 769px) {
    :root {
        --ml-ad-gutter: 84px;
    }

    .ml-ad.fixed-left,
    .ml-ad.fixed-right {
        width: 64px;
        padding: 14px 6px;
        border-radius: 14px;
    }

    .ml-ad.fixed-left { left: 10px; }
    .ml-ad.fixed-right { right: 10px; }

    .ml-ad.fixed-left img,
    .ml-ad.fixed-right img {
        width: 50px;
    }

    .ml-ad.fixed-left .ml-ad__text,
    .ml-ad.fixed-right .ml-ad__text {
        font-size: clamp(13px, 2.2vh, 19px);
    }
}

@media (min-width: 1280px) {
    :root {
        --ml-ad-gutter: 128px;
    }

    .ml-ad.fixed-left,
    .ml-ad.fixed-right {
        width: 88px;
        padding: 18px 8px;
    }

    .ml-ad.fixed-left { left: 24px; }
    .ml-ad.fixed-right { right: 24px; }

    .ml-ad.fixed-left img,
    .ml-ad.fixed-right img {
        width: 70px;
    }
}

.ml-main,
.ml-page {
    padding-left: var(--ml-ad-gutter);
    padding-right: var(--ml-ad-gutter);
}

/* Celular: la barra izquierda se vuelve una franja fija abajo; la derecha sobra. */
@media only screen and (max-width: 768px) {
    :root {
        --ml-ad-bar-h: 52px;
    }

    .ml-ad.fixed-left {
        display: flex;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: auto;
        height: var(--ml-ad-bar-h);
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        padding: 6px 16px;
        border-radius: 14px 14px 0 0;
        border-bottom: 0;
        /* Debajo del carrusel, igual que en escritorio: aparece al bajar. */
        z-index: 999990 !important;
        box-shadow: 0 -6px 20px rgba(31, 29, 28, .16);
    }

    .ml-ad.fixed-left img {
        width: 44px;
    }

    .ml-ad.fixed-left .ml-ad__text {
        flex: 0 0 auto;
        writing-mode: horizontal-tb;
        font-size: 17px;
        padding: 0;
    }

    .ml-ad.fixed-right {
        display: none;
    }

    body:has(.ml-ad.fixed-left) {
        padding-bottom: var(--ml-ad-bar-h);
    }

    #scroll-top {
        bottom: calc(var(--ml-ad-bar-h) + 12px) !important;
    }
}


/* ====================== Secciones ====================== */
.ml-main,
.ml-page {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ml-ink);
}

.ml-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 24px;
}

.ml-section--tight {
    padding-top: 0;
}

.ml-section__head {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.ml-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--ml-gold-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ml-section__title {
    margin: 0 0 12px;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.ml-section__lead {
    margin: 0;
    color: var(--ml-muted);
    font-size: 17px;
    line-height: 1.6;
}

.ml-section__more {
    margin-top: 32px;
    text-align: center;
}

.ml-btn--dark {
    background: var(--ml-ink);
    color: #fff !important;
    padding: 16px 28px;
    font-size: 16px;
}

.ml-btn--dark:hover {
    background: #000;
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .ml-section .ml-btn {
        width: auto;
    }
}

/* ====================== Funciones (6 tarjetas con ícono) ====================== */
.ml-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ml-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--ml-line);
    border-radius: 18px;
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(31, 29, 28, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ml-feature:hover,
.ml-feature:focus-visible {
    transform: translateY(-3px);
    border-color: var(--ml-gold);
    box-shadow: 0 14px 30px rgba(31, 29, 28, .12);
}

.ml-feature__icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #d9bd6a, #a8872a);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(168, 135, 42, .3);
}

.ml-feature__body {
    display: block;
}

.ml-feature__title {
    margin: 2px 0 6px;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.ml-feature__text {
    display: block;
    color: var(--ml-muted);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1199px) {
    .ml-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ml-section {
        padding: 52px 16px;
    }

    .ml-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ml-feature {
        padding: 16px;
    }
}

/* ====================== Video ====================== */
.ml-video {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 20px 44px rgba(31, 29, 28, .18);
}

.ml-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====================== Cobertura ====================== */
.ml-coverage {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
}

.ml-coverage__text p {
    color: var(--ml-muted);
    font-size: 16px;
    line-height: 1.7;
}

.ml-coverage__text b {
    color: var(--ml-ink);
}

/* Cada estado enlaza a su página del boletín judicial. */
.ml-coverage__text a.ml-coverage__state {
    color: var(--ml-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ml-gold);
    text-underline-offset: 3px;
}

.ml-coverage__text a.ml-coverage__state:hover {
    color: var(--ml-gold-dark);
}

.ml-coverage__text .ml-btn {
    margin-top: 8px;
    padding: 16px 28px;
    font-size: 16px;
}

.ml-coverage__map.map {
    width: 100%;
    min-height: 440px;
    margin: 0;
}

@media (max-width: 991px) {
    .ml-coverage {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ml-coverage__map.map {
        min-height: 320px;
    }
}

/* ====================== Nuestro objetivo ====================== */
.ml-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.ml-about__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(31, 29, 28, .16);
}

.ml-about__text p {
    color: var(--ml-muted);
    font-size: 16px;
    line-height: 1.7;
}

.ml-about__text blockquote {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-left: 4px solid var(--ml-gold);
    border-radius: 0 12px 12px 0;
    background: var(--ml-cream);
    color: var(--ml-ink);
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .ml-about {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ====================== Soporte ====================== */
.ml-support__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ml-support__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    border: 1px solid var(--ml-line);
    border-radius: 16px;
    background: var(--ml-cream);
    color: inherit !important;
    text-decoration: none !important;
}

a.ml-support__item:hover {
    border-color: var(--ml-gold);
}

.ml-support__item i {
    color: var(--ml-gold-dark);
    font-size: 26px;
    margin-bottom: 4px;
}

.ml-support__item strong {
    color: var(--ml-ink);
    font-size: 16px;
}

.ml-support__item span {
    color: var(--ml-muted);
    font-size: 14.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 991px) {
    .ml-support__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ml-support__grid {
        grid-template-columns: 1fr;
    }
}

/* ====================== Preguntas frecuentes ====================== */
.ml-faq__list {
    max-width: 860px;
    margin: 0 auto;
}

.ml-faq__item {
    border-bottom: 1px solid var(--ml-line);
}

.ml-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    cursor: pointer;
    list-style: none;
}

.ml-faq__item summary::-webkit-details-marker {
    display: none;
}

.ml-faq__item summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--ml-gold-dark);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}

.ml-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.ml-faq__item summary h3 {
    margin: 0;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.ml-faq__item p {
    margin: 0 4px 20px;
    color: var(--ml-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* ====================== Contacto ====================== */
/* De lado a lado de la pantalla, como "Cómo funciona" (las barras de publicidad quedan encima). */
.ml-main .case-evaluation {
    margin-left: calc(-1 * var(--ml-ad-gutter));
    margin-right: calc(-1 * var(--ml-ad-gutter));
}



/* ====================== Carrusel: iPhone de _IPhone.cshtml en lugar del teléfono anterior ====================== */
/* El alto lo da cada composición y el ancho sale de la proporción del iPhone. */
.ml-slide__media .ml-phone.ml-iphone {
    display: block;
    width: auto;
    max-height: none;
    box-sizing: border-box;
    aspect-ratio: 476 / 930;
    overflow: visible;
    border: 0;
    border-radius: 15% / 7.68%;
    background: #1c1c1e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .5);
}

.ml-slide__media.ml-slide__media--phone .ml-phone.ml-iphone {
    height: 66%;
}

.ml-slide__media.ml-slide__media--trio .ml-phone.ml-iphone {
    height: 84%;
}

.ml-slide__media--alerts .ml-phone.ml-iphone {
    width: calc(var(--u) * 34);
    height: auto;
}

/* ====================== Página de Funciones (/funciones) ====================== */
.ml-fpage__head {
    padding-bottom: 24px;
    text-align: center;
}

.ml-fpage__head .ml-section__lead {
    max-width: 760px;
    margin: 0 auto;
}

.ml-crumbs {
    margin-bottom: 18px;
    color: var(--ml-muted);
    font-size: 14px;
}

.ml-crumbs a {
    color: var(--ml-gold-dark);
}

.ml-fpage__title {
    max-width: 900px;
    margin: 0 auto 14px;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.ml-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ml-chips a {
    padding: 8px 16px;
    border: 1px solid var(--ml-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ml-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.ml-chips a:hover {
    border-color: var(--ml-gold);
    background: var(--ml-cream);
}

.ml-fblock {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
    scroll-margin-top: 96px;
}

.ml-fblock--flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.ml-fblock--flip .ml-fblock__text {
    order: 2;
}

.ml-fblock__text p {
    color: var(--ml-muted);
    font-size: 17px;
    line-height: 1.7;
}

.ml-fblock__points {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ml-fblock__points li {
    position: relative;
    padding: 6px 0 6px 30px;
    color: var(--ml-ink);
    font-size: 16px;
    line-height: 1.5;
}

.ml-fblock__points li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ml-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Solo la captura directa: la imagen dentro del iPhone no lleva borde ni esquinas propias. */
.ml-fblock__media > img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--ml-line);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(31, 29, 28, .14);
}

/* Capturas de la app: iPhone sobre un círculo dorado. */
.ml-fblock__media--phone {
    display: flex;
    justify-content: center;
    padding: 28px 0;
    border-radius: 28px;
    background: radial-gradient(circle at 50% 55%, #e3cb83 0, #c9a83e 55%, #a8872a 100%);
}

.ml-fblock__media--phone .ml-iphone {
    width: min(260px, 52%);
}

.ml-fcta {
    padding: 48px 24px;
    border-radius: 28px;
    background: var(--ml-ink);
    color: #fff;
    text-align: center;
}

.ml-fcta .ml-section__title {
    color: #fff;
}

.ml-fcta p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
}

.ml-fcta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ml-fcta .ml-btn {
    padding: 16px 28px;
    font-size: 16px;
}

@media (max-width: 991px) {
    .ml-fblock,
    .ml-fblock--flip {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .ml-fblock--flip .ml-fblock__text {
        order: 0;
    }
}

/* El formulario ya no sube por encima de la sección (la sección tiene esquinas redondeadas). */
.ml-main .case-evaluation .go-up {
    transform: none;
    padding: 32px 0;
}


/* Contacto (derecha): texto oscuro legible sobre el beige y botones claros para escribirnos. */
.ml-contact {
    position: relative;
    padding: 72px 0 72px 40px;
    font-family: 'Inter', system-ui, sans-serif;
}

.ml-contact__title {
    margin: 0 0 12px;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.ml-contact__lead {
    max-width: 520px;
    margin: 0 0 28px;
    color: #3d3934;
    font-size: 17px;
    line-height: 1.6;
}

.ml-contact__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 560px;
    margin-bottom: 24px;
}

.ml-contact__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    color: var(--ml-ink) !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(90, 70, 40, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ml-contact__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(90, 70, 40, .2);
}

.ml-contact__btn i {
    flex: 0 0 auto;
    color: var(--ml-gold-dark);
    font-size: 28px;
}

.ml-contact__btn--whatsapp i {
    color: #25d366;
}

.ml-contact__btn span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ml-contact__btn strong {
    font-size: 16px;
}

.ml-contact__btn small {
    overflow: hidden;
    color: var(--ml-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-contact .ml-contact__cta {
    padding: 16px 28px;
    font-size: 16px;
}

@media (max-width: 991px) {
    .ml-contact {
        padding: 8px 0 56px;
    }

    .ml-contact .ml-contact__cta {
        width: auto;
    }
}

@media (max-width: 540px) {
    .ml-contact__actions {
        grid-template-columns: 1fr;
    }
}

/* Planes en celular: la plantilla les quita la sombra y quedaban planas, con borde gris sobre blanco (se veían grises).
   Fondo crema en la sección y tarjetas blancas con sombra, como en escritorio. */
@media (max-width: 991px) {
    #section-plan {
        background: var(--ml-cream);
        margin-left: calc(-1 * var(--ml-ad-gutter));
        margin-right: calc(-1 * var(--ml-ad-gutter));
        padding-bottom: 48px;
    }

    #section-plan .iconbox-features.type2 .iconbox {
        border: 0;
        border-bottom: 3px solid #cca776;
        border-radius: 18px;
        background-color: #fff;
        box-shadow: 0 10px 30px rgba(144, 109, 63, .18);
        margin-bottom: 28px;
    }
}

/* Cobertura (mapa): la misma franja de lado a lado que "Cómo funciona" (fondo crema con filos dorados). */
.ml-coverage {
    position: relative;
    isolation: isolate;
}

.ml-coverage::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    margin-left: -50vw;
    background-color: #faf8f5;
    border-top: 1px solid rgba(204, 167, 118, .15);
    border-bottom: 1px solid rgba(204, 167, 118, .15);
}

/* El mapa de Highcharts trae fondo blanco: transparente para que se vea la franja. */
.ml-coverage__map .highcharts-background {
    fill: transparent;
}

/* Banners horizontales "Anúnciate aquí": se ajustan al ancho de su propio banner (antes la letra se calculaba con el
   ancho de la pantalla y en laptop los logos se salían). */
.ml-main .attorneys-style1 .top-wrap {
    padding: 0;
}

.ml-ad.ml-ad--wide {
    container-type: inline-size;
    justify-content: center;
    gap: 4%;
    overflow: hidden;
}

.ml-ad--wide img {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 22%;
    object-fit: contain;
}

.ml-ad--wide .ml-ad__text {
    flex: 0 1 auto;
    min-width: 0;
    /* Cabe entre los dos logos (cada uno hasta 22 % del ancho). */
    font-size: clamp(15px, 5.4cqw, 34px);
}

/* Banner angosto: un solo logo y la letra ocupa ese espacio. */
@container (max-width: 380px) {
    .ml-ad--wide img + .ml-ad__text + img {
        display: none;
    }

    .ml-ad--wide .ml-ad__text {
        font-size: clamp(15px, 7.4cqw, 30px);
    }
}

/* Planes: la tarjeta destacada crece 10 % y su etiqueta "Más popular" sobresale; el encabezado deja ese espacio. */
#section-plan .ml-section__head {
    margin-bottom: 76px;
    padding: 0 16px;
}

@media (max-width: 991px) {
    #section-plan .ml-section__head {
        margin-bottom: 36px;
    }
}

/* ====================== Footer ====================== */
/* Marca con botones de las tiendas, Contacto y soporte (antes dos columnas repetidas), Explora y Boletín judicial;
   menos relleno abajo para que no quede tanto vacío. */
.ml-footer-grid {
    grid-template-columns: 1.4fr 1.3fr .9fr .9fr;
    gap: 32px 48px;
}

#footer .footer-top {
    padding: 56px 0 32px;
}

.ml-foot-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Mismo ancho y alto en los dos botones; el ícono ocupa una columna fija para que los textos queden alineados. */
.ml-foot-stores a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 172px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none !important;
    transition: border-color .2s ease, background .2s ease;
}

.ml-foot-stores a:hover {
    border-color: #c9a83e;
    background: rgba(201, 168, 62, .08);
}

.ml-foot-stores i {
    flex: 0 0 24px;
    font-size: 22px;
    text-align: center;
}

.ml-foot-stores span {
    display: flex;
    flex-direction: column;
}

.ml-foot-stores small {
    color: #bdbab5;
    font-size: 11px;
    font-weight: 400;
}

@media (max-width: 991px) {
    .ml-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    #footer .footer-top {
        padding: 28px 0 8px;
    }
}

/* El contenido del footer también deja el hueco de las barras laterales (en laptop las barras lo tapaban). */
@media (min-width: 769px) {
    #footer .footer-widgets > .container,
    #footer .bottom > .container {
        max-width: min(1080px, calc(100% - 2 * var(--ml-ad-gutter)));
    }
}

/* Menú: barrita dorada bajo la opción activa (la marca landing-modern.js según la página o la sección a la vista). */
.ml-nav__links a {
    position: relative;
}

.ml-nav__links a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #a8872a, #d9bd6a);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.ml-nav__links a.is-active {
    color: #000;
    font-weight: 600;
}

.ml-nav__links a.is-active::after {
    transform: scaleX(1);
}

/* Menú de celular (lista vertical): la barrita va a la izquierda. */
@media (max-width: 991px) {
    .ml-nav__links a::after {
        left: 4px;
        right: auto;
        top: 50%;
        bottom: auto;
        width: 4px;
        height: 22px;
        transform: translateY(-50%) scaleY(0);
    }

    .ml-nav__links a.is-active::after {
        transform: translateY(-50%) scaleY(1);
    }
}

/* ====================== Pruébalo (/pruebalo) ====================== */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Opción del menú destacada para invitar a probar. */
.ml-nav__links a.ml-nav__try {
    color: var(--ml-gold-dark);
    font-weight: 700;
}

.ml-nav__links a.ml-nav__try i {
    margin-right: 6px;
}

.ml-try__form {
    max-width: 720px;
    margin: 0 auto;
}

.ml-try__field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 20px;
    border: 2px solid var(--ml-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 29, 28, .1);
    transition: border-color .2s ease;
}

.ml-try__field:focus-within {
    border-color: var(--ml-gold);
}

.ml-try__field > i {
    color: var(--ml-gold-dark);
    font-size: 18px;
}

.ml-try__field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ml-ink);
    font-size: 17px;
    outline: none;
}

.ml-try__field .ml-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 14px 26px;
    font-size: 16px;
}

.ml-try__field .ml-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ml-try__captcha {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.ml-try__error {
    margin: 14px 0 0;
    color: #b3261e;
    font-weight: 600;
    text-align: center;
}

.ml-try__result,
.ml-try__empty {
    max-width: 960px;
    margin: 48px auto 0;
}

.ml-try__summary {
    margin-bottom: 16px;
    color: var(--ml-muted);
    text-align: center;
}

.ml-try__counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ml-try__counter {
    padding: 24px 16px;
    border: 1px solid var(--ml-line);
    border-radius: 18px;
    background: var(--ml-cream);
    text-align: center;
}

.ml-try__counter strong {
    display: block;
    color: var(--ml-gold-dark);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.ml-try__counter span {
    color: var(--ml-ink);
    font-size: 15px;
    font-weight: 600;
}

.ml-try__note {
    margin: 10px 0 0;
    color: var(--ml-muted);
    font-size: 13px;
    text-align: center;
}

/* Filas borrosas de relleno con el aviso para registrarse encima. */
.ml-try__preview {
    position: relative;
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid var(--ml-line);
    border-radius: 20px;
    background: #fff;
}

.ml-try__rows {
    margin: 0;
    padding: 8px 24px;
    list-style: none;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.ml-try__rows li {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ml-line);
}

.ml-try__rows li:last-child {
    border-bottom: 0;
}

.ml-try__rows em {
    color: var(--ml-gold-dark);
    font-style: normal;
}

.ml-try__gate {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

.ml-try__gate > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9bd6a, #a8872a);
    color: #fff;
    font-size: 20px;
}

.ml-try__gate h2,
.ml-try__empty h2 {
    margin: 0 0 8px;
    color: var(--ml-ink);
    font-family: inherit;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
}

.ml-try__gate p,
.ml-try__empty p {
    max-width: 520px;
    margin: 0 auto 18px;
    color: var(--ml-ink);
    font-size: 16px;
    line-height: 1.6;
}

.ml-try__gate-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.ml-try__gate .ml-btn,
.ml-try__empty .ml-btn {
    width: auto;
    padding: 16px 28px;
    font-size: 16px;
}

.ml-try__login {
    color: var(--ml-ink) !important;
    font-weight: 600;
    text-decoration: underline !important;
}

.ml-try__empty {
    padding: 36px 24px;
    border: 1px dashed var(--ml-line);
    border-radius: 20px;
    text-align: center;
}

.ml-try__empty > i {
    margin-bottom: 12px;
    color: var(--ml-gold-dark);
    font-size: 36px;
}

@media (max-width: 640px) {
    .ml-try__field {
        flex-wrap: wrap;
        padding: 10px;
        border-radius: 20px;
    }

    .ml-try__field input {
        flex-basis: calc(100% - 40px);
    }

    .ml-try__field .ml-btn {
        width: 100%;
    }

    .ml-try__counters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ml-try__rows li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ml-try__preview {
        min-height: 420px;
    }
}

/* ====================== Búho animado de los planes (plan-owl.js) ====================== */
.ml-owl-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.iconbox-icon2[data-owl] {
    position: relative;
}

/* Mismo lugar y tamaño que el PNG (img.planes); el PNG se oculta cuando la animación ya está lista. */
.ml-owl {
    display: none;
    width: 180px;
    height: 150px;
    margin: 30px auto 0;
}

.iconbox-icon2.has-owl .ml-owl {
    display: block;
}

.iconbox-icon2.has-owl img {
    display: none;
}

.ml-owl--bronze { filter: url(#ml-owl-bronze); }
.ml-owl--silver { filter: url(#ml-owl-silver); }
.ml-owl--gold { filter: url(#ml-owl-gold); }
.ml-owl--diamond { filter: url(#ml-owl-diamond); }

/* Barras laterales (y franja de celular) ocultas mientras se ven los planes o el contacto (landing-modern.js). */
.ml-ad.fixed-left,
.ml-ad.fixed-right {
    transition: opacity .3s ease, visibility .3s ease;
}

.ml-ads-hidden .ml-ad.fixed-left,
.ml-ads-hidden .ml-ad.fixed-right {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Tarjetas de planes clicables (landing-modern.js las manda al registro). */
#section-plan .iconbox.is-clickable {
    cursor: pointer;
}

/* ====================== Oferta en /pruebalo (código de promoción configurable en la Suite) ====================== */
.ml-offer-wrap {
    padding-top: 8px;
    padding-bottom: 8px;
}

.ml-offer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 32px;
    border: 2px dashed #d9bd6a;
    border-radius: 24px;
    background: linear-gradient(135deg, #1f1d1c 0%, #3a2f1a 100%);
    color: #fff;
    box-shadow: 0 20px 44px rgba(31, 29, 28, .2);
}

.ml-offer__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #d9bd6a, #a8872a);
    color: #1f1d1c;
    font-size: 28px;
}

.ml-offer .ml-eyebrow {
    color: #d9bd6a;
    margin-bottom: 4px;
}

.ml-offer__title {
    margin: 0 0 6px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.2;
}

.ml-offer__text p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    line-height: 1.55;
}

.ml-offer__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ml-offer__code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px dashed rgba(217, 189, 106, .8);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
}

.ml-offer__code i {
    color: #d9bd6a;
    font-size: 16px;
}

.ml-offer__code.is-copied i::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
}

.ml-offer__action .ml-btn {
    width: auto;
    padding: 14px 26px;
    font-size: 16px;
}

.ml-offer__action small {
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

@media (max-width: 860px) {
    .ml-offer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 26px 20px;
    }
}
