/* ESTILOS DE LA WEB
   Hoja de estilos propia: no usa MudBlazor ni Bootstrap, para que la página pueda
   servirse como HTML estático. Todas las clases empiezan por "exd-". */

/* Tipografías alojadas en el propio servidor (wwwroot/fonts): no se pide nada a Google.
   Son fuentes variables: un solo archivo cubre todos los grosores. Licencia libre (SIL OFL). */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/spacegrotesk-latin.woff2") format("woff2");
}

.exd {
    --exd-azul: #0C0B72;
    --exd-azul-oscuro: #07073F;
    --exd-rojo: #B00408;
    --exd-texto: #14163A;
    --exd-texto-suave: #3D4260;
    --exd-fondo-suave: #F4F6FB;
    --exd-linea: #E4E7F0;
    --exd-azul-claro: #ECEEFB;
    --exd-sobre-azul: #D6DAF5;
    --exd-titulos: "Space Grotesk", Inter, system-ui, sans-serif;
    background: #fff;
    color: var(--exd-texto);
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.exd *, .exd *::before, .exd *::after { box-sizing: border-box; }
/* :where() deja el reinicio sin peso, para que cualquier clase de más abajo pueda cambiar márgenes y rellenos */
.exd :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.exd :where(ul) { list-style: none; }
.exd img { max-width: 100%; }
.exd a { text-decoration: none; }
.exd a:focus-visible { outline: 3px solid var(--exd-rojo); outline-offset: 3px; border-radius: 6px; }

.exd-contenedor { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.exd-seccion { padding: 88px 0; }
.exd-suave { background: var(--exd-fondo-suave); }

.exd-antetitulo { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--exd-rojo); }
.exd-titulo { font-family: var(--exd-titulos); font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--exd-azul); }
.exd-enlace { display: inline-block; padding: 12px 0; font-size: 16px; font-weight: 700; color: var(--exd-azul); border-bottom: 2px solid var(--exd-rojo); }
.exd-enlace:hover { color: var(--exd-rojo); }

.exd-boton { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-size: 16px; font-weight: 700; border-radius: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.exd-boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 7, 63, 0.22); }
.exd-boton-rojo { color: #fff; background: var(--exd-rojo); }
.exd-boton-rojo:hover { color: #fff; background: #8E0306; }
.exd-boton-azul { color: #fff; background: var(--exd-azul); }
.exd-boton-azul:hover { color: #fff; background: var(--exd-azul-oscuro); }

/* ---------- Portada: foto a todo el ancho con el menú flotando encima ---------- */
.exd-hero {
    min-height: min(820px, 100vh);
    display: flex;
    flex-direction: column;
    background-color: #C9D6E6;
    background-image: url("/images/Exides-Inicio.png");
    background-image: image-set(url("/images/Exides-Inicio.avif") type("image/avif"), url("/images/Exides-Inicio.png") type("image/png"));
    background-size: cover;
    background-position: center;
}

.exd-hero-ancho { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.exd-menu {
    margin-top: 20px;
    padding: 10px 12px 10px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 10px 34px rgba(7, 7, 63, 0.18);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
}

.exd-menu-logo { display: flex; align-items: center; min-height: 44px; }
.exd-menu-logo img { height: 42px; width: auto; display: block; }
.exd-menu { position: relative; }
.exd-menu nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }

/* Menú de móvil: oculto en escritorio; se activa en la media query de más abajo */
.exd-menu-movil { display: none; }
.exd-menu-movil summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--exd-azul); }
.exd-menu-movil summary::-webkit-details-marker { display: none; }
.exd-menu-movil summary:hover { background: var(--exd-azul-claro); }
.exd-menu-movil summary:focus-visible { outline: 3px solid var(--exd-rojo); outline-offset: 2px; }
.exd-menu-movil summary svg { width: 26px; height: 26px; }
.exd-menu-movil .exd-menu-cerrar, .exd-menu-movil[open] .exd-menu-abrir { display: none; }
.exd-menu-movil[open] .exd-menu-cerrar { display: block; }
.exd-menu nav a { padding: 12px 13px; font-size: 15px; font-weight: 600; color: var(--exd-texto); border-radius: 8px; }
.exd-menu nav a:hover { color: var(--exd-rojo); }
.exd-menu nav a.exd-menu-contacto { margin-left: 8px; padding: 12px 22px; font-weight: 700; color: #fff; background: var(--exd-azul); border-radius: 10px; }
.exd-menu nav a.exd-menu-contacto:hover { color: #fff; background: var(--exd-rojo); }

.exd-hero-cuerpo { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding-top: 56px; padding-bottom: 28px; }

.exd-hero h1 {
    text-align: center;
    font-family: var(--exd-titulos);
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0B1C3C;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9);
}

.exd-hero h1 span { color: var(--exd-rojo); }

.exd-hero-barra {
    margin-top: auto;
    width: 100%;
    padding: 8px;
    background: rgba(7, 7, 63, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.exd-hero-barra li { flex: 1 1 190px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; }
.exd-hero-barra svg { flex: 0 0 30px; width: 30px; height: 30px; }

/* ---------- Cifras ---------- */
.exd-cifras { background: var(--exd-azul); color: #fff; padding: 44px 0; }
.exd-cifras ul { display: flex; flex-wrap: wrap; gap: 28px 24px; }
.exd-cifras li { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.exd-cifras strong { font-family: var(--exd-titulos); font-size: 48px; line-height: 1.05; font-weight: 700; }
.exd-cifras span { font-size: 15px; color: var(--exd-sobre-azul); }

/* ---------- Servicios ---------- */
.exd-cabecera { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 44px; }
.exd-tarjetas { display: flex; flex-wrap: wrap; gap: 24px; }

.exd-tarjeta {
    flex: 1 1 250px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--exd-linea);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(20, 22, 58, 0.06);
    color: var(--exd-texto);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.exd-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20, 22, 58, 0.14); border-color: var(--exd-azul); color: var(--exd-texto); }
.exd-tarjeta-icono { width: 52px; height: 52px; border-radius: 12px; background: var(--exd-azul-claro); display: flex; align-items: center; justify-content: center; color: var(--exd-azul); }
.exd-tarjeta-icono svg { width: 26px; height: 26px; }
.exd-tarjeta h3 { font-family: var(--exd-titulos); font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--exd-azul); }
.exd-tarjeta p { font-size: 15px; color: var(--exd-texto-suave); }
.exd-tarjeta-mas { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 700; color: var(--exd-rojo); }

/* ---------- Por qué EXIDES ---------- */
.exd-porque { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.exd-porque-foto { flex: 1 1 420px; min-width: 0; }
.exd-porque-foto img { width: 100%; height: 460px; object-fit: cover; object-position: 60% 50%; display: block; border-radius: 20px; box-shadow: 0 18px 44px rgba(20, 22, 58, 0.16); }
.exd-porque-texto { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.exd-porque-texto > p { font-size: 17px; line-height: 1.65; color: var(--exd-texto-suave); margin-bottom: 8px; }
.exd-razones { display: flex; flex-direction: column; gap: 16px; }
.exd-razones li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 14px; }
.exd-razones-icono { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--exd-azul); color: #fff; display: flex; align-items: center; justify-content: center; }
.exd-razones-icono svg { width: 24px; height: 24px; }
.exd-razones strong { display: block; font-size: 18px; }
.exd-razones span span { font-size: 15px; color: var(--exd-texto-suave); }

/* ---------- Clientes ---------- */
.exd-clientes { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.exd-clientes-cabecera { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.exd-clientes-cabecera p { color: var(--exd-texto-suave); max-width: 560px; }
.exd-clientes-rejilla { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.exd-clientes-rejilla li { flex: 0 1 176px; height: 96px; padding: 18px; border: 1px solid var(--exd-linea); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.exd-clientes-rejilla img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 0.45s ease, transform 0.45s ease; }
.exd-clientes-rejilla img.exd-oculto { opacity: 0; transform: scale(0.92); }

/* ---------- Noticias ---------- */
.exd-noticias-cabecera { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.exd-noticias-cabecera > div { display: flex; flex-direction: column; gap: 12px; }
.exd-noticias { display: flex; flex-wrap: wrap; gap: 24px; }

.exd-noticia-grande {
    flex: 3 1 520px;
    min-width: 0;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--exd-azul-oscuro);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.exd-noticia-grande:hover { color: #fff; }
.exd-noticia-grande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: transform 0.5s ease, opacity 0.3s ease; }
.exd-noticia-grande:hover img { transform: scale(1.04); opacity: 0.55; }
.exd-noticia-grande-texto { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 36px; }
.exd-noticia-fecha { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.exd-noticia-grande h3 { font-family: var(--exd-titulos); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; max-width: 560px; }
.exd-noticia-grande p { color: #E4E7F8; max-width: 520px; }

.exd-noticias-lado { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.exd-noticia-chica { flex: 1 1 auto; padding: 28px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 24px; color: var(--exd-texto); display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.exd-noticia-chica:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 22, 58, 0.12); border-color: var(--exd-azul); color: var(--exd-texto); }
.exd-noticia-chica .exd-noticia-fecha { color: var(--exd-rojo); }
.exd-noticia-chica h3 { font-family: var(--exd-titulos); font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--exd-azul); }
.exd-noticia-chica .exd-tarjeta-mas { margin-top: auto; }
.exd-noticias-vacio { padding: 32px; background: #fff; border: 1px dashed var(--exd-linea); border-radius: 16px; color: var(--exd-texto-suave); }

/* ---------- Contacto y pie ---------- */
.exd-contacto { background: var(--exd-azul); color: #fff; padding: 80px 0; }
.exd-contacto .exd-contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.exd-contacto-texto { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.exd-contacto h2 { font-family: var(--exd-titulos); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.exd-contacto p { font-size: 18px; color: var(--exd-sobre-azul); max-width: 520px; }
.exd-contacto-acciones { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.exd-contacto-telefono { display: inline-flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 17px; font-weight: 600; color: #fff; }
.exd-contacto-telefono:hover { color: var(--exd-sobre-azul); }
.exd-contacto-telefono svg { width: 20px; height: 20px; }

.exd-pie { background: var(--exd-azul-oscuro); color: var(--exd-sobre-azul); padding: 56px 0 28px; }
.exd-pie-columnas { display: flex; flex-wrap: wrap; gap: 36px 56px; margin-bottom: 36px; }
.exd-pie-marca { flex: 2 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.exd-pie-marca strong { font-family: var(--exd-titulos); font-size: 24px; color: #fff; letter-spacing: 0.02em; }
.exd-pie-marca p { font-size: 15px; max-width: 340px; }
.exd-pie-columna { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.exd-pie-columna h3 { line-height: 1.2; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.exd-pie a, .exd-pie-columna span { padding: 8px 0; font-size: 15px; color: var(--exd-sobre-azul); }
.exd-pie a:hover { color: #fff; }
.exd-pie-final { padding-top: 24px; border-top: 1px solid #2A2A6E; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; }
.exd-pie-final nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.exd-menu nav a.exd-menu-activo { color: var(--exd-azul); box-shadow: inset 0 -2px 0 var(--exd-rojo); border-radius: 0; }

/* ---------- Desplegables del menú (escritorio) ---------- */
.exd-menu-lista { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.exd-menu-lista > li { position: relative; }
.exd-menu-lista > li > a { display: inline-flex; align-items: center; gap: 6px; }
.exd-menu-flecha { width: 14px; height: 14px; transition: transform 0.2s ease; }
.exd-menu-con-sub:hover .exd-menu-flecha, .exd-menu-con-sub:focus-within .exd-menu-flecha { transform: rotate(180deg); }

/* El desplegable empieza pegado al enlace (el hueco es relleno transparente) para que
   el ratón no lo pierda al bajar hacia él. Se abre con el ratón o con el teclado. */
.exd-submenu { display: none; position: absolute; top: 100%; left: -8px; z-index: 40; padding-top: 14px; min-width: 290px; }
.exd-menu-con-sub:hover > .exd-submenu, .exd-menu-con-sub:focus-within > .exd-submenu { display: block; }
.exd-submenu ul { padding: 8px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 14px; box-shadow: 0 18px 44px rgba(7, 7, 63, 0.2); display: flex; flex-direction: column; gap: 2px; animation: exd-menu-aparece 0.16s ease-out; }
.exd-menu nav .exd-submenu a { display: block; padding: 11px 14px; font-size: 15px; font-weight: 500; border-radius: 8px; }
.exd-menu nav .exd-submenu a:hover { background: var(--exd-azul-claro); color: var(--exd-azul); }
.exd-menu nav .exd-submenu a.exd-submenu-activo { font-weight: 700; color: var(--exd-azul); background: var(--exd-fondo-suave); }

/* ---------- Ruta «Inicio › Sección › Página» ---------- */
.exd-migas { background: transparent; padding: 4px 0 0; }
.exd-migas ol { margin: 0; padding: 0 6px; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; }
.exd-migas li { display: inline-flex; align-items: center; color: var(--exd-texto-suave); }
.exd-migas li + li::before { content: "›"; margin: 0 10px; color: #8A90AB; font-size: 16px; }
.exd-migas a { padding: 6px 0; font-weight: 600; color: var(--exd-azul); }
.exd-migas a:hover { color: var(--exd-rojo); text-decoration: underline; }
.exd-migas span[aria-current] { padding: 6px 0; font-weight: 600; color: var(--exd-texto); }
/* El distintivo flotante de reCAPTCHA se oculta: el aviso legal equivalente va escrito bajo cada formulario */
.grecaptcha-badge { visibility: hidden !important; }

.exd-pie-salir { display: inline; }
.exd-pie-salir button { padding: 8px 0; font: inherit; color: var(--exd-sobre-azul); background: none; border: 0; cursor: pointer; }
.exd-pie-salir button:hover { color: #fff; }

/* =====================================================================================
   PÁGINAS INTERIORES
   Los formularios y la administración están hechos con MudBlazor; aquí se les da la
   tipografía, los radios y las sombras de la web.
   ===================================================================================== */
body {
    background: #fff;
    --mud-default-borderradius: 12px;
    --mud-typography-default-family: Inter, system-ui, sans-serif;
    --mud-typography-body1-family: Inter, system-ui, sans-serif;
    --mud-typography-body2-family: Inter, system-ui, sans-serif;
    --mud-typography-subtitle1-family: Inter, system-ui, sans-serif;
    --mud-typography-subtitle2-family: Inter, system-ui, sans-serif;
    --mud-typography-caption-family: Inter, system-ui, sans-serif;
    --mud-typography-overline-family: Inter, system-ui, sans-serif;
    --mud-typography-button-family: Inter, system-ui, sans-serif;
    --mud-typography-button-text-transform: none;
    --mud-typography-button-weight: 600;
    --mud-typography-h1-family: "Space Grotesk", Inter, system-ui, sans-serif;
    --mud-typography-h2-family: "Space Grotesk", Inter, system-ui, sans-serif;
    --mud-typography-h3-family: "Space Grotesk", Inter, system-ui, sans-serif;
    --mud-typography-h4-family: "Space Grotesk", Inter, system-ui, sans-serif;
    --mud-typography-h5-family: "Space Grotesk", Inter, system-ui, sans-serif;
    --mud-typography-h6-family: "Space Grotesk", Inter, system-ui, sans-serif;
}

.exd-interior {
    --exd-azul: #0C0B72;
    --exd-rojo: #B00408;
    --exd-texto: #14163A;
    --exd-texto-suave: #3D4260;
    --exd-fondo-suave: #F4F6FB;
    --exd-linea: #E4E7F0;
    --exd-azul-claro: #ECEEFB;
    min-height: 60vh;
    color: var(--exd-texto);
    font-family: Inter, system-ui, sans-serif;
}

/* Por si alguna variable de MudBlazor cambia de nombre en una versión futura */
.exd-interior .mud-typography, .exd-interior .mud-button-root, .exd-interior .mud-input, .exd-interior .mud-input-label { font-family: Inter, system-ui, sans-serif; }
.exd-interior :is(.mud-typography-h1, .mud-typography-h2, .mud-typography-h3, .mud-typography-h4, .mud-typography-h5, .mud-typography-h6) { font-family: "Space Grotesk", Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.exd-interior .mud-button-root { text-transform: none; font-weight: 600; letter-spacing: 0; }
.exd-interior .mud-button-filled { box-shadow: none; }
.exd-interior .mud-button-filled:hover { box-shadow: 0 8px 20px rgba(7, 7, 63, 0.2); }

/* Tarjetas y paneles: borde fino y sombra suave en lugar de la sombra marcada de Material */
.exd-interior :is(.mud-card, .mud-paper):is(.mud-elevation-1, .mud-elevation-2, .mud-elevation-3, .mud-elevation-4) {
    border: 1px solid var(--exd-linea);
    box-shadow: 0 6px 20px rgba(20, 22, 58, 0.06);
}

.exd-interior .mud-alert { border-radius: 14px; }

/* ---------- Administración y acceso (clase exd-admin, la pone Marco) ----------
   Los formularios siguen siendo los de MudBlazor. Aquí se unifican los botones, que usaban
   un color distinto según la pantalla (celeste, rojo), y se redondea el editor de texto.
   El rojo queda solo para las acciones de borrar (Color.Error), que no se tocan. */
.exd-admin :is(.mud-button-filled-info, .mud-button-filled-secondary) { background-color: var(--exd-azul); color: #fff; }
.exd-admin :is(.mud-button-filled-info, .mud-button-filled-secondary):hover { background-color: #07073F; }
.exd-admin :is(.mud-button-outlined-info, .mud-button-outlined-secondary) { color: var(--exd-azul); border-color: var(--exd-azul); }
.exd-admin :is(.mud-button-outlined-info, .mud-button-outlined-secondary):hover { background-color: var(--exd-azul-claro); }
.exd-admin :is(.mud-button-text-info, .mud-button-text-secondary) { color: var(--exd-azul); }
.exd-admin .mud-paper { border-radius: 16px; }
.exd-admin .rz-html-editor { border-radius: 12px; overflow: hidden; font-family: Inter, system-ui, sans-serif; }
.exd-admin .verification-input { border-radius: 12px; }

/* Barra del menú en páginas interiores: fija arriba mientras se baja por la página */
.exd-barra-interior { position: sticky; top: 0; z-index: 1100; padding: 12px 0; background: rgba(255, 255, 255, 0.94); }
.exd-barra-interior .exd-menu { margin-top: 0; border: 1px solid var(--exd-linea); box-shadow: 0 6px 22px rgba(7, 7, 63, 0.1); }

/* Cabecera con el título de cada página (BunnerMaster) */
.exd-titulo-pagina {
    margin: 16px 0 8px;
    padding: 36px 40px;
    background: var(--exd-fondo-suave);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.exd-titulo-pagina-icono { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 16px; background: var(--exd-azul); color: #fff; display: flex; align-items: center; justify-content: center; }
.exd-titulo-pagina-icono .mud-icon-root { font-size: 2rem; }
.exd-titulo-pagina h1 { margin: 0; font-family: "Space Grotesk", Inter, system-ui, sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--exd-azul); }

/* ---------- Contenido rediseñado de las páginas interiores (Components/Contenido) ---------- */
.exd-pagina { display: flex; flex-direction: column; gap: 48px; padding: 28px 0 40px; background: transparent; }
.exd-entrada { font-size: 19px; line-height: 1.65; color: var(--exd-texto-suave); }
.exd-entrada strong { color: var(--exd-texto); }

/* 460 px de mínimo: en escritorio caben dos columnas, así cuatro bloques quedan en 2 × 2 y no en 3 + 1 */
.exd-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.exd-rejilla-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

.exd-bloque { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 20px; box-shadow: 0 6px 20px rgba(20, 22, 58, 0.05); }
.exd-bloque-cabecera { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.exd-bloque-icono { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: var(--exd-azul-claro); color: var(--exd-azul); display: flex; align-items: center; justify-content: center; }
.exd-bloque-icono .mud-icon-root { font-size: 1.7rem; }
.exd-bloque h2 { font-family: var(--exd-titulos); font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--exd-azul); }
.exd-bloque p { color: var(--exd-texto-suave); }
.exd-bloque p strong { color: var(--exd-texto); }
.exd-bloque .exd-nota { margin-top: auto; }
.exd-bloque-enlace { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--exd-rojo); }
.exd-bloque-enlace:hover { color: var(--exd-azul); }

.exd-nota { padding: 16px 18px; background: var(--exd-fondo-suave); border-radius: 12px; font-size: 15px; line-height: 1.55; color: var(--exd-texto); }
.exd .exd-nota strong { display: block; margin-bottom: 2px; color: var(--exd-azul); }

/* Lista de servicios numerada (página Servicios) */
.exd-filas { display: flex; flex-direction: column; gap: 16px; }
.exd-fila { display: grid; grid-template-columns: 72px minmax(0, 1fr) 48px; align-items: center; gap: 28px; padding: 30px 32px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 20px; color: var(--exd-texto); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.exd-fila:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 22, 58, 0.12); border-color: var(--exd-azul); color: var(--exd-texto); }
.exd-fila-numero { font-family: var(--exd-titulos); font-size: 44px; line-height: 1; font-weight: 700; color: var(--exd-rojo); }
.exd-fila h2 { font-family: var(--exd-titulos); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--exd-azul); margin-bottom: 6px; }
.exd-fila p { color: var(--exd-texto-suave); }
.exd-fila-flecha { width: 48px; height: 48px; border-radius: 50%; background: var(--exd-azul-claro); color: var(--exd-azul); display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease, color 0.2s ease; }
.exd-fila:hover .exd-fila-flecha { background: var(--exd-azul); color: #fff; }
.exd-fila-flecha svg { width: 22px; height: 22px; }

/* Panel destacado, etiquetas e imágenes */
.exd-panel { padding: 40px; background: var(--exd-fondo-suave); border-radius: 20px; display: flex; flex-direction: column; gap: 18px; }
.exd-panel h2 { font-family: var(--exd-titulos); font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; color: var(--exd-azul); }
.exd-panel > p:not(.exd-antetitulo) { color: var(--exd-texto-suave); }
.exd-etiquetas { display: flex; flex-wrap: wrap; gap: 10px; }
.exd-etiquetas li { padding: 10px 18px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--exd-azul); }
.exd-imagen-panel { padding: 28px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 20px; }
.exd-imagen-panel img { display: block; width: 100%; height: auto; }

@media (max-width: 600px) {
    .exd-pagina { gap: 36px; }
    .exd-entrada { font-size: 17px; }
    .exd-bloque, .exd-panel { padding: 24px; }
    .exd-fila { grid-template-columns: minmax(0, 1fr) 44px; gap: 16px; padding: 24px; }
    .exd-fila-numero { grid-column: 1 / -1; font-size: 32px; }
    .exd-titulo-pagina { padding: 24px 20px; gap: 16px; }
    .exd-titulo-pagina-icono { flex-basis: 52px; width: 52px; height: 52px; border-radius: 14px; }
}

/* Por debajo de 960 px los enlaces ya no caben en una línea: pasa al menú desplegable */
@media (max-width: 960px) {
    .exd-menu { padding: 8px 10px 8px 16px; }
    .exd-menu .exd-menu-escritorio { display: none; }
    .exd-menu-movil { display: block; }

    /* Los enlaces se abren en un panel que flota bajo la barra, por encima de la foto:
       no ocupa sitio en la página, así que al abrirlo no se desplaza nada. */
    .exd-menu-movil nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 30;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 18px 44px rgba(7, 7, 63, 0.28);
        animation: exd-menu-aparece 0.18s ease-out;
    }

    /* Si no cabe en pantalla, el panel se desplaza por dentro en vez de salirse */
    .exd-menu-movil nav { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
    .exd-menu-movil .exd-menu-lista { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; }
    .exd-menu-movil nav a { display: block; padding: 11px 12px; font-size: 16px; }
    .exd-menu-movil nav a:hover { background: var(--exd-azul-claro); }
    .exd-menu-movil nav a.exd-menu-activo { box-shadow: none; background: var(--exd-fondo-suave); border-radius: 8px; }
    .exd-menu-movil nav a.exd-menu-contacto { margin: 8px 0 0; text-align: center; padding: 14px; }

    /* Subpáginas sangradas bajo su sección, siempre a la vista */
    .exd-menu-sublista { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px 14px; padding-left: 10px; border-left: 2px solid var(--exd-linea); }
    .exd-menu-movil nav .exd-menu-sublista a { padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--exd-texto-suave); }

    /* Capa invisible que cubre la pantalla mientras el menú está abierto: forma parte del botón,
       así que tocar fuera del panel lo cierra, sin JavaScript. */
    .exd-menu-movil[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 20; cursor: default; }
    .exd-menu-movil[open] summary svg { position: relative; z-index: 21; }
}

@media (max-width: 720px) {
    .exd-seccion { padding: 64px 0; }
    .exd-hero-barra li { flex-basis: 45%; padding: 12px; font-size: 12px; }
    .exd-porque-foto img { height: 300px; }
}

@keyframes exd-menu-aparece {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .exd-menu-movil nav { animation: none; }
    .exd *, .exd *::before, .exd *::after { transition: none !important; }
}


/* ---------- Casos de éxito ---------- */
.exd-caso { display: flex; flex-direction: column; gap: 26px; padding: 40px; background: #fff; border: 1px solid var(--exd-linea); border-radius: 20px; box-shadow: 0 6px 20px rgba(20, 22, 58, 0.05); scroll-margin-top: 110px; }
.exd-caso-cabecera { display: flex; flex-direction: column; gap: 10px; }
.exd-caso-cifras { display: flex; flex-wrap: wrap; gap: 20px 24px; padding: 28px 32px; background: var(--exd-azul); border-radius: 16px; color: #fff; }
.exd-caso-cifras li { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.exd-caso-cifras strong { font-family: var(--exd-titulos); font-size: 40px; line-height: 1.05; font-weight: 700; }
.exd-caso-cifras span { font-size: 15px; color: var(--exd-sobre-azul); }

/* Captura a un lado y los tres pasos al otro; sin captura, los pasos van en columnas */
.exd-caso-cuerpo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.exd-caso:nth-of-type(even) .exd-caso-foto { order: 2; }
.exd-caso-foto { display: block; padding: 10px; background: var(--exd-fondo-suave); border: 1px solid var(--exd-linea); border-radius: 18px; box-shadow: 0 16px 40px rgba(20, 22, 58, 0.12); }
.exd-caso-foto img { display: block; width: 100%; height: auto; border-radius: 10px; }
.exd-caso-pasos { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.exd-caso-sin-foto { grid-template-columns: minmax(0, 1fr); }
.exd-caso-sin-foto .exd-caso-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; }
.exd-caso-pasos section { display: flex; flex-direction: column; gap: 10px; }
.exd-caso-pasos h3 { display: flex; align-items: center; gap: 12px; font-family: var(--exd-titulos); font-size: 20px; font-weight: 700; color: var(--exd-azul); }
.exd-caso-pasos h3 span { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--exd-azul-claro); color: var(--exd-azul); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.exd-caso-pasos p { font-size: 16px; color: var(--exd-texto-suave); }

@media (max-width: 900px) {
    .exd-caso-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .exd-caso:nth-of-type(even) .exd-caso-foto { order: 0; }
}
@media (max-width: 600px) {
    .exd-caso { padding: 24px; }
    .exd-caso-cifras { padding: 22px; }
}
