/*
Theme Name:   Mlajara-2026
Theme URI:    https://marlinlajara.com
Description:  Theme hijo de Elementor para Marlin Lajara Psicóloga Clínica — Madrid.
Author:       Jenny Toribio YVAO
Author URI:   https://ekonight.com
Template:     hello-elementor
Version:      1.0.46
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  mlajara-2026
Tags:         child-theme, elementor, psychology, minimal, editorial
*/

/* ============================================================
   1. FUENTES LOCALES — Zodiak & Satoshi
   ============================================================ */

/* --- ZODIAK --- */
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-ThinItalic.woff2') format('woff2');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Extrabold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-ExtraboldItalic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Zodiak';
    src: url('fonts/Zodiak/Zodiak-VariableItalic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* --- SATOSHI --- */
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-BlackItalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-Variable.woff2') format('woff2');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('fonts/Satoshi/Satoshi-VariableItalic.woff2') format('woff2');
    font-weight: 300 900;
    font-style: italic;
    font-display: swap;
}

/* ============================================================
   2. VARIABLES CSS DE MARCA
   ============================================================ */
:root {
    /* Colores principales */
    --ml-beige:       #e7d9c9;
    --ml-azul:        #0a5670;
    --ml-crema:       #fff5ed;
    --ml-blanco:      #ffffff;
    --ml-negro:       #1a1a1a;

    /* Tipografías */
    --ml-font-heading: 'Zodiak', Georgia, serif;
    --ml-font-body:    'Satoshi', system-ui, sans-serif;

    /* Efecto linea-animada — controlado desde Customizer */
    --ml-linea-color-1: #F8D4CB;
    --ml-linea-color-2: #FAC2B4;
}

/* ── Selección de texto ── */
::selection {
    background-color: #0a5670;
    color: #ffffff;
}
::-moz-selection {
    background-color: #0a5670;
    color: #ffffff;
}

/* ============================================================
   3. RESET BASE LIMPIO (compatible con Hello Elementor)
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--ml-font-body);
    font-weight: 400;
    color: var(--ml-negro);
    background-color: var(--ml-crema);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ml-font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p, li, blockquote, label, input, textarea {
    font-family: var(--ml-font-body);
    line-height: 1.65;
}
a:where(:not(.enlace-linea-desaparece):not(.ml-enlaces-desktop a):not(#mlajara-barra a)) {
  color: var(--ml-azul);
  text-decoration: none;
}
/* a:not(.enlace-linea-desaparece):not(.ml-enlaces-desktop a):not(#mlajara-barra a) {
    color: var(--ml-azul);
    text-decoration: none;
   transition: opacity 0.2s ease; }*/
 /*  a:not(.enlace-linea-desaparece):not(#mlajara-barra a):hover {
  opacity: 0.75; } */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   4. ESTILOS TIPOGRÁFICOS — clases utilitarias
   ============================================================ */

/* Headline editorial grande — Zodiak Bold Italic */
.ml-headline-editorial {
    font-family: var(--ml-font-heading);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ml-azul);
}

/* Headline serifa mixta — como en la imagen (regular + bold combinado) */
.ml-headline-mix {
    font-family: var(--ml-font-heading);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.ml-headline-mix strong,
.ml-headline-mix b {
    font-weight: 700;
}

/* Subtítulo sans-serif — Satoshi Medium */
.ml-subtitulo {
    font-family: var(--ml-font-body);
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ml-azul);
    opacity: 0.65;
}

/* Body largo, lectura cómoda */
.ml-body-editorial {
    font-family: var(--ml-font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    max-width: 60ch;
}

/* Etiqueta pequeña — label navigation */
.ml-label {
    font-family: var(--ml-font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ml-azul);
}

/* Cita o frase destacada */
.ml-cita {
    font-family: var(--ml-font-heading);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.4;
    color: var(--ml-azul);
    border-left: 2px solid var(--ml-beige);
    padding-left: 1.5rem;
    margin: 0;
}

/* ============================================================
   5. EFECTO LINEA-ANIMADA
   ============================================================ */

/* Estado inicial */
.linea-animada {
    background-image: linear-gradient(
        120deg,
        var(--ml-linea-color-1) 0%,
        var(--ml-linea-color-2) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    display: inline-block;
}

/* Activación al hacer hover sobre el heading padre O sobre el span mismo */
h1:hover .linea-animada,
h2:hover .linea-animada,
h3:hover .linea-animada,
h4:hover .linea-animada,
h5:hover .linea-animada,
h6:hover .linea-animada,
p:hover .linea-animada,
.linea-animada:hover {
    background-size: 100% 100%;
}

/* ============================================================
   6. CURSOR PERSONALIZADO
   HTML requerido: <div class="cursor-personalizado"></div>
   Script: js/cursor.js (encolado automáticamente)
   Clase zona-click: aplicar a enlaces/áreas para activar el círculo grande.
   ============================================================ */

/* Bolita base */
.cursor-personalizado {
    width: var(--ml-cursor-size, 14px);
    height: var(--ml-cursor-size, 14px);
    background-color: var(--ml-cursor-color, #0E5E7A);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: transform, width, height, background-color;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

/* Texto oculto por defecto — el content se sobreescribe desde PHP via <style> */
.cursor-personalizado::after {
    /* content se inyecta dinámicamente desde functions.php */
    color: var(--ml-cursor-link-color, #ffffff);
    font-family: var(--ml-font-body, sans-serif);
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

/* Círculo agrandado al pasar sobre .zona-click */
.cursor-personalizado.agrandado {
    width: var(--ml-cursor-big-size, 130px);
    height: var(--ml-cursor-big-size, 130px);
    background-color: var(--ml-cursor-color, #0E5E7A);
    margin-top: var(--ml-cursor-big-margin, -20px);
}

/* Mostrar texto cuando está agrandado */
.cursor-personalizado.agrandado::after {
    opacity: 1;
}

/* ============================================================
   7. EFECTO LINEA-ANIMADA2 — versión oscura (para fondos claros)
   ============================================================ */

/* Estado inicial */
.linea-animada2 {
    background-image: linear-gradient(
        120deg,
        var(--ml-linea2-color-1) 0%,
        var(--ml-linea2-color-2) 100%
    );
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    display: inline-block;
}

/* Activación al hacer hover sobre el heading padre O sobre el span mismo */
h1:hover .linea-animada2,
h2:hover .linea-animada2,
h3:hover .linea-animada2,
h4:hover .linea-animada2,
h5:hover .linea-animada2,
h6:hover .linea-animada2,
p:hover .linea-animada2,
.linea-animada2:hover {
    background-size: 100% 100%;
}

/* ============================================================
   7. EFECTO ENLACE LÍNEA — .enlace-linea-desaparece
   La línea aparece debajo del texto y desaparece al hacer hover
   deslizándose hacia la derecha.
   Clase: enlace-linea-desaparece
   ============================================================ */

/* ============================================================
   7. EFECTO ENLACE LÍNEA — .enlace-linea-desaparece
   La línea aparece debajo del texto y desaparece al hacer hover
   deslizándose hacia la derecha.
   Clase: enlace-linea-desaparece
   Especificidad elevada para superar el reset.css de Elementor.
   ============================================================ */

/* ============================================================
   7. EFECTO ENLACE LÍNEA — .enlace-linea-desaparece
   Especificidad reforzada para superar reset.css y frontend.min
   de Elementor que sobreescriben color y background en a {}.
   Clase: enlace-linea-desaparece
   ============================================================ */

body a.enlace-linea-desaparece,
body .enlace-linea-desaparece,
.elementor-section a.enlace-linea-desaparece,
.elementor-widget-container a.enlace-linea-desaparece,
.elementor a.enlace-linea-desaparece {
    color: var(--ml-enlace-linea-color, #ffffff) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    display: inline-block;
    padding-bottom: var(--ml-enlace-linea-padding, 4px);
    font-size: var(--ml-enlace-linea-size, inherit) !important;
    background-color: transparent !important;
    background-image: linear-gradient(
        to right,
        var(--ml-enlace-linea-bg, #ffffff),
        var(--ml-enlace-linea-bg, #ffffff)
    ) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 1px !important;
    background-position: 0% 100% !important;
    transition: background-size 0.35s ease-out, color 0.35s ease-out !important;
}

/* Cuando .enlace-linea-desaparece se aplica a un botón de Elementor —
   neutraliza padding, border, border-radius y background del botón */
body .elementor-button.enlace-linea-desaparece,
body .elementor-widget-button .elementor-button.enlace-linea-desaparece,
.elementor .elementor-button.enlace-linea-desaparece {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: linear-gradient(
        to right,
        var(--ml-enlace-linea-bg, #ffffff),
        var(--ml-enlace-linea-bg, #ffffff)
    ) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 1px !important;
    background-position: 0% 100% !important;
    padding-bottom: var(--ml-enlace-linea-padding, 4px) !important;
    color: var(--ml-enlace-linea-color, #ffffff) !important;
    box-shadow: none !important;
    transition: background-size 0.35s ease-out, color 0.35s ease-out !important;
    display: inline-block;
    width: auto !important;
    letter-spacing: inherit;
    font-size: inherit;
}

body .elementor-button.enlace-linea-desaparece:hover,
body .elementor-widget-button .elementor-button.enlace-linea-desaparece:hover,
.elementor .elementor-button.enlace-linea-desaparece:hover {
    background-size: 0% 1px !important;
    background-position: 100% 100% !important;
    background-color: transparent !important;
    color: var(--ml-enlace-linea-color, #ffffff) !important;
    border: none !important;
}


body .enlace-linea-desaparece:hover,
.elementor-section a.enlace-linea-desaparece:hover,
.elementor-widget-container a.enlace-linea-desaparece:hover,
.elementor a.enlace-linea-desaparece:hover {
    background-size: 0% 1px !important;
    background-position: 100% 100% !important;
    color: var(--ml-enlace-linea-color, #ffffff) !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

/* ============================================================
   9. COLORES DE FONDO — clases utilitarias
   ============================================================ */
.bg-beige  { background-color: var(--ml-beige); }
.bg-azul   { background-color: var(--ml-azul);  }
.bg-crema  { background-color: var(--ml-crema); }
.bg-blanco { background-color: var(--ml-blanco);}

.text-crema { color: var(--ml-crema); }
.text-azul  { color: var(--ml-azul);  }
.text-negro { color: var(--ml-negro); }

/* ============================================================
   10. AJUSTES ELEMENTOR — neutralizar conflictos conocidos
   ============================================================ */

/* Evita que reset de Elementor rompa hovers con color magenta */
.elementor-button:hover,
[type=button]:hover,
button:hover {
    background-color: unset;
    color: unset;
}

/* Neutralizar elementor a{} para la clase enlace-linea-desaparece */
.elementor a.enlace-linea-desaparece {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Asegurar que las fuentes del theme se respeten en widgets */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--ml-font-heading);
}
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
    font-family: var(--ml-font-body);
}

/* ============================================================
   11. MENÚ PRINCIPAL — ml-barra
   ============================================================ */

/* ── Barra contenedor ── */
.ml-barra {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none !important;
    box-shadow: none !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

.ml-barra--oculta {
    transform: translateY(-150px);
    opacity: 0;
    pointer-events: none;
}

/* ── Logo — dentro de la barra, siempre izquierda ── */
.ml-logo {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.4s ease;
    z-index: 100000;
}

/* Logo con imagen personalizada */
.ml-logo img { height: 40px; width: auto; display: block; }

/* Logo fallback (nombre del sitio) */
.ml-logo__nombre {
    font-family: var(--ml-font-heading);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--ml-azul);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ml-logo__subtitulo {
    font-size: 9.5px;
    font-weight: 400;
    color: var(--ml-azul);
    letter-spacing: 0.06em;
    opacity: 0.65;
}

/* ── Pastilla ── */
.ml-pastilla {
    background-color: #ece0d2;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 5px 6px;
    box-shadow: 0 8px 32px rgba(10, 86, 112, 0.07);
    gap: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Menú desktop — lista de ítems ── */
.ml-enlaces-desktop {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Cada ítem */
.ml-enlaces-desktop li { display: block; }

/* Enlace base — especificidad alta para ganarle al reset de Elementor */
body .ml-enlaces-desktop li a,
body .ml-enlaces-desktop li a:visited,
.elementor .ml-enlaces-desktop li a,
.elementor .ml-enlaces-desktop li a:visited {
    font-family: var(--ml-font-body);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0a5670 !important;
    text-decoration: none !important;
    padding: 0 16px;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 38px;
    transition: background-color 0.3s ease;
    box-shadow: none !important;
    background-color: transparent !important;
}

body .ml-enlaces-desktop li a:hover,
.elementor .ml-enlaces-desktop li a:hover {
    background-color: rgba(210, 195, 178, 0.5) !important;
}

/* Efecto ruleta — ítems con clase "ruleta" via walker */
.ml-enlaces-desktop li.ruleta a .texto-original,
.ml-enlaces-desktop li a.enlace-ruleta .texto-original {
    display: block;
    line-height: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.ml-enlaces-desktop li.ruleta a::after,
.ml-enlaces-desktop li a.enlace-ruleta::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--ml-azul);
}

.ml-enlaces-desktop li.ruleta a:hover .texto-original,
.ml-enlaces-desktop li a.enlace-ruleta:hover .texto-original {
    transform: translateY(-200%);
    color: transparent;
}

.ml-enlaces-desktop li.ruleta a:hover::after,
.ml-enlaces-desktop li a.enlace-ruleta:hover::after {
    transform: translateY(-100%);
}

/* Ítem destacado — último botón CTA */
.ml-enlaces-desktop li.current-menu-item a,
.ml-enlaces-desktop li.menu-item-destacado a {
    background-color: var(--ml-azul);
    color: var(--ml-crema) !important;
    font-weight: 600;
    margin-left: 4px;
}
.ml-enlaces-desktop li.menu-item-destacado a:hover {
    background-color: #084357;
}
.ml-enlaces-desktop li.menu-item-destacado a::after {
    color: var(--ml-crema);
}

/* ── Botón hamburguesa — especificidad alta contra reset de Elementor ── */
button.ml-btn-menu,
body button.ml-btn-menu {
    display: none;
    flex-shrink: 0;
    background-color: #0a5670 !important;
    border: none !important;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: background-color 0.3s ease;
    padding: 0;
    outline: none;
}
button.ml-btn-menu:hover,
body button.ml-btn-menu:hover { background-color: #084357 !important; }

.ml-btn-menu span {
    display: block;
    width: 17px;
    height: 1.5px;
    background-color: var(--ml-crema);
    border-radius: 2px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.3s  ease,
                width     0.45s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.ml-btn-menu.ml-btn--abierto span:nth-child(1) {
    transform: translateY(6.5px);
    opacity: 0;
    width: 0;
}
.ml-btn-menu.ml-btn--abierto span:nth-child(2) { width: 17px; }
.ml-btn-menu.ml-btn--abierto span:nth-child(3) {
    transform: translateY(-6.5px);
    opacity: 0;
    width: 0;
}

/* ── Panel mobile ── */
.ml-panel-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 86, 112, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.ml-panel-mobile.ml-panel--abierto {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Caja redondeada contenedora */
.ml-panel-mobile__caja {
    background-color: #ece0d2;
    border-radius: 32px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: calc(100% - 48px);
    max-width: 400px;
}

.ml-panel-mobile__enlaces {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.ml-panel-mobile__enlaces li {
    width: 100%;
}

.ml-panel-mobile__enlaces li a {
    font-family: var(--ml-font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--ml-azul) !important;
    text-decoration: none !important;
    padding: 14px 24px;
    border-radius: 100px;
    background-color: rgba(10, 86, 112, 0.06);
    letter-spacing: -0.01em;
    display: block;
    text-align: center;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.ml-panel-mobile__enlaces li a:hover {
    background-color: rgba(10, 86, 112, 0.12);
}

/* Ítem destacado en mobile */
.ml-panel-mobile__enlaces li.menu-item-destacado a {
    background-color: var(--ml-azul);
    color: var(--ml-crema) !important;
    font-weight: 600;
}
.ml-panel-mobile__enlaces li.menu-item-destacado a:hover {
    background-color: #084357;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ml-pastilla {
        background: none;
        box-shadow: none;
        padding: 0;
    }
    .ml-enlaces-desktop { display: none !important; }
    button.ml-btn-menu  { display: inline-flex !important; }
    .ml-panel-mobile    { display: flex; }
}

@media (min-width: 1101px) {
    button.ml-btn-menu { display: none !important; }
    .ml-panel-mobile   { display: none !important; }
}

/* ============================================================
   12. FOOTER — ml-footer
   ============================================================ */

.ml-footer {
    background-color: var(--ml-footer-bg, #0a5670);
    color: var(--ml-crema);
    padding: 120px 64px 40px;
}

/* Grid de 4 columnas */
.ml-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 245, 237, 0.12);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Columna logo ── */
.ml-footer__col--logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ml-footer__logo-link {
    display: inline-block;
    text-decoration: none;
}

.ml-footer__logo-img {
    max-width: 160px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Logo fallback texto */
.ml-footer__logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ml-footer__logo-nombre {
    font-family: var(--ml-font-heading);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--ml-crema);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ml-footer__logo-subtitulo {
    font-size: 9px;
    color: var(--ml-crema);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.ml-footer__desc {
    font-family: var(--ml-font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--ml-crema);
    opacity: 0.55;
    line-height: 1.7;
    text-align: center;
    margin: 12px 0 0 0;
}

/* ── Columnas de menú ── */
.ml-footer__col--menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0px;
}

.ml-footer__menu-titulo {
    font-family: var(--ml-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ml-crema);
    opacity: 0.85;
    margin: 0;
}

/* Lista del menú */
.ml-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ml-footer__menu li {
    display: block;
}

/* Enlace base */
.ml-footer__menu li a {
    font-family: var(--ml-font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--ml-crema) !important;
    text-decoration: none !important;
    opacity: 0.75;
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 1.4em;
    line-height: 1.4em;
    cursor: pointer !important;
    vertical-align: middle;
}

.ml-footer__menu li a:hover {
    opacity: 1;
}

/* Efecto ruleta en footer */
.ml-footer__menu li a .texto-original {
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    transform: translateY(0);
    color: var(--ml-crema) !important;
}

.ml-footer__menu li a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    color: var(--ml-crema) !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ml-footer__menu li a:hover .texto-original {
    transform: translateY(-100%);
    color: transparent !important;
}

.ml-footer__menu li a:hover::after {
    transform: translateY(-100%);
}

/* ── Copyright ── */
.ml-footer__copyright {
    padding-top: 32px;
    text-align: center;
}

.ml-footer__copyright p {
    font-family: var(--ml-font-body);
    font-size: 13px;
    color: var(--ml-crema);
    opacity: 0.4;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ── Responsive footer ── */

/* Tablet: logo izquierda solo (span 2 filas), menús 2 cols arriba y tercero debajo del primero */
@media (max-width: 1100px) and (min-width: 801px) {
    .ml-footer {
        padding: 80px 40px 32px;
    }
    .ml-footer__inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 24px;
    }
    .ml-footer__col--logo {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    .ml-footer__col--menu:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    .ml-footer__col--menu:nth-child(3) {
        grid-column: 3;
        grid-row: 1;
    }
    .ml-footer__col--menu:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Mobile: desde 800px — 1 columna, todo centrado */
@media (max-width: 800px) {
    .ml-footer {
        padding: 64px 28px 28px;
    }
    .ml-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .ml-footer__col--logo {
        justify-content: center;
        align-items: center;
    }
    .ml-footer__menu-titulo {
        text-align: center;
    }
    .ml-footer__menu {
        align-items: center;
    }
    .ml-footer__menu li a {
        text-align: center;
    }
    .ml-footer__copyright {
        text-align: center;
    }
}

/* ── Redes sociales en footer ── */
.ml-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 32px 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.ml-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 245, 237, 0.08);
    color: var(--ml-crema);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.ml-footer__social-link:hover {
    opacity: 1;
    background: rgba(255, 245, 237, 0.18);
}

.ml-footer__social-link svg {
    display: block;
}

@media (max-width: 800px) {
    .ml-footer__social {
        gap: 10px;
        padding: 24px 0 12px;
    }
}
