/* Sitio institucional de CONSULTCORP. Colores de la marca: negro y naranja. */
:root {
    --naranja: #f26b21;
    --naranja-claro: #ff8f45;
    --naranja-oscuro: #c9510f;
    --negro: #0f0f11;
    --carbon: #17171b;
    --carbon-2: #212127;
    --gris: #cfcfcf;
    --gris-texto: #a4a4ad;
    --crema: #f7f4f0;
    --texto-oscuro: #1c1c21;
    --texto-medio: #55555f;
    --borde: rgba(255, 255, 255, .09);
    --radio: 18px;
    --sombra: 0 18px 40px rgba(0, 0, 0, .18);
    --fuente: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --alto-cabecera: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-cabecera) + 16px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--negro);
    color: #fff;
    font-family: var(--fuente);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--naranja); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.saltar:focus { left: 8px; }

.etiqueta {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--naranja); font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px;
}
.etiqueta::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.etiqueta--oscura { color: var(--negro); }

/* ---------- Cabecera ---------- */
.cabecera {
    position: fixed; inset: 0 0 auto; z-index: 50;
    background: rgba(15, 15, 17, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.cabecera--solida { background: rgba(15, 15, 17, .94); border-bottom-color: var(--borde); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.cabecera__fila {
    width: min(1240px, 100% - 32px); margin-inline: auto; min-height: var(--alto-cabecera);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.marca { text-decoration: none; display: inline-flex; flex-direction: column; justify-self: start; }
.marca__logo { height: 48px; width: auto; }
.pie__logo { height: 32px; width: auto; }

.menu { justify-self: end; display: flex; gap: 6px; }
.menu a {
    position: relative; text-decoration: none; color: var(--gris); font-size: 15px; padding: 8px 12px; border-radius: 8px;
    transition: color .2s;
}
.menu a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--naranja);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.menu a:hover, .menu a:focus-visible { color: #fff; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu-boton { display: none; }

/* ---------- Botón "Consulte su Trámite" ---------- */
.boton-consulta {
    --brillo-x: 50%;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; border-radius: 999px; border: 0;
    background: linear-gradient(120deg, var(--naranja-oscuro), var(--naranja) 45%, var(--naranja-claro));
    background-size: 200% 100%; background-position: 0% 50%;
    color: #fff; font: 600 15px/1.2 var(--fuente); letter-spacing: .03em; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(242, 107, 33, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-position .5s ease;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.boton-consulta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.boton-consulta__flecha { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
/* Destello que cruza el botón al pasar el mouse. */
.boton-consulta::before {
    content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); transition: left .7s ease;
}
/* Halo que respira alrededor del botón. */
.boton-consulta::after {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -2;
    box-shadow: 0 0 0 0 rgba(242, 107, 33, .55); opacity: 0; transition: opacity .3s;
}
.boton-consulta:hover, .boton-consulta:focus-visible {
    transform: translateY(-3px) scale(1.03);
    background-position: 100% 50%;
    box-shadow: 0 14px 34px rgba(242, 107, 33, .55), 0 0 0 4px rgba(242, 107, 33, .18), inset 0 1px 0 rgba(255, 255, 255, .3);
    outline: none;
}
.boton-consulta:hover::before, .boton-consulta:focus-visible::before { left: 120%; }
.boton-consulta:hover::after { opacity: 1; animation: halo 1.6s ease-out infinite; }
.boton-consulta:hover .boton-consulta__flecha, .boton-consulta:focus-visible .boton-consulta__flecha { transform: translateX(5px); }
.boton-consulta:hover .boton-consulta__icono { animation: lupa .6s ease; }
/* Al pulsar: se hunde, y js/sitio.js dibuja la onda desde el punto del clic. */
.boton-consulta:active, .boton-consulta.pulsado {
    transform: translateY(1px) scale(.95);
    box-shadow: 0 3px 10px rgba(242, 107, 33, .45), inset 0 3px 8px rgba(0, 0, 0, .25);
    transition-duration: .08s;
}
.onda {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    background: rgba(255, 255, 255, .65);
    animation: onda .6s ease-out forwards;
}
.boton-consulta--grande { padding: 16px 30px; font-size: 17px; }
.boton-consulta--oscuro { background: linear-gradient(120deg, #000, var(--carbon-2) 50%, #34343d); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.boton-consulta--oscuro:hover, .boton-consulta--oscuro:focus-visible { box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 4px rgba(0, 0, 0, .15); }

@keyframes halo {
    0% { box-shadow: 0 0 0 0 rgba(242, 107, 33, .55); }
    100% { box-shadow: 0 0 0 14px rgba(242, 107, 33, 0); }
}
@keyframes onda { to { transform: scale(40); opacity: 0; } }
@keyframes lupa { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-18deg) scale(1.15); } 70% { transform: rotate(10deg); } }

.boton-secundario {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none; font: 600 15px/1.2 var(--fuente);
    background: transparent; cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.boton-secundario svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boton-secundario svg:has(use) { fill: currentColor; stroke: none; }
.boton-secundario:hover, .boton-secundario:focus-visible { border-color: #25d366; background: rgba(37, 211, 102, .1); transform: translateY(-2px); outline: none; }
.boton-secundario--claro:hover, .boton-secundario--claro:focus-visible { border-color: var(--naranja); background: rgba(242, 107, 33, .12); }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--alto-cabecera) + 56px) 0 72px; overflow: hidden; }
.portada__fondo {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(242, 107, 33, .22), transparent 60%),
        radial-gradient(700px 500px at 5% 90%, rgba(242, 107, 33, .10), transparent 60%),
        linear-gradient(180deg, #0f0f11, #141418);
}
/* Líneas diagonales sutiles, como la flecha de la marca. */
.portada__fondo::after {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 90px);
    mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.portada__contenido { max-width: 860px; }
.portada h1 { font-size: clamp(36px, 6.4vw, 68px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 22px; }
.resalte { background: linear-gradient(90deg, var(--naranja), var(--naranja-claro)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada__texto { color: var(--gris); font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin-bottom: 34px; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.garantias { list-style: none; padding: 0; margin: 46px 0 0; display: flex; flex-wrap: wrap; gap: 14px 30px; color: var(--gris); font-size: 15px; }
.garantias li { display: flex; align-items: center; gap: 10px; }
.garantias svg { width: 22px; height: 22px; fill: none; stroke: var(--naranja); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.seccion--clara { background: var(--crema); color: var(--texto-oscuro); }
.seccion--clara p { color: var(--texto-medio); }
.seccion--naranja { background: linear-gradient(120deg, var(--naranja), var(--naranja-claro)); color: var(--negro); }
.titulo-seccion { max-width: 720px; margin-bottom: 52px; }
.titulo-seccion p:last-child { font-size: 18px; color: var(--gris-texto); }
.seccion--clara .titulo-seccion p:last-child { color: var(--texto-medio); }

.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.tarjeta {
    background: #fff; border-radius: var(--radio); padding: 30px 28px; border: 1px solid #ece7e1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.tarjeta:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: rgba(242, 107, 33, .35); }
.tarjeta p { margin: 0; font-size: 16px; }
.tarjeta__icono {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
    background: rgba(242, 107, 33, .1); color: var(--naranja); transition: background .3s, color .3s;
}
.tarjeta:hover .tarjeta__icono { background: var(--naranja); color: #fff; }
.tarjeta__icono svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: paso; position: relative; }
.pasos::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--naranja), rgba(242, 107, 33, .15)); }
.pasos li { position: relative; text-align: center; padding: 0 6px; }
.pasos__numero {
    position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--carbon-2); border: 2px solid var(--naranja); color: var(--naranja); font-weight: 700; font-size: 20px;
    transition: background .3s, color .3s, transform .3s;
}
.pasos li:hover .pasos__numero { background: var(--naranja); color: #fff; transform: scale(1.08); }
.pasos p { color: var(--gris-texto); font-size: 15px; }

.portal { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.portal h2 { color: var(--negro); }
.lista-check { list-style: none; padding: 0; margin: 0 0 30px; }
.lista-check li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 18px; }
.lista-check li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--negro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f26b21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.maqueta { background: var(--negro); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); transform: rotate(-2deg); }
.maqueta__barra { display: flex; gap: 7px; margin-bottom: 22px; }
.maqueta__barra span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a42; }
.maqueta__linea { height: 12px; border-radius: 6px; background: #2a2a31; margin-bottom: 14px; }
.maqueta__linea--titulo { width: 60%; height: 18px; background: #3a3a42; }
.maqueta__linea--corta { width: 70%; }
.maqueta__etapas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 26px; }
.maqueta__etapas span { height: 10px; border-radius: 5px; background: #2a2a31; }
.maqueta__etapas .hecho { background: var(--naranja); }
.maqueta__etapas .actual { background: linear-gradient(90deg, var(--naranja), #2a2a31); animation: carga 2.4s ease-in-out infinite; background-size: 200% 100%; }
@keyframes carga { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.nosotros { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.valores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.valores li { background: #fff; border-radius: var(--radio); padding: 24px; border-top: 3px solid var(--naranja); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.valores p { margin: 0; font-size: 15px; }

.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: stretch; }
.dato { display: flex; gap: 16px; margin-bottom: 24px; color: var(--gris); }
.dato strong { display: block; color: #fff; margin-bottom: 2px; }
.dato svg { width: 26px; height: 26px; flex: none; margin-top: 3px; fill: none; stroke: var(--naranja); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dato svg:has(use) { fill: var(--naranja); stroke: none; }
.dato a { color: #fff; text-decoration-color: var(--naranja); text-underline-offset: 4px; }
.mapa {
    position: relative; min-height: 380px; border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde);
    background: radial-gradient(400px 260px at 70% 30%, rgba(242, 107, 33, .15), transparent), var(--carbon);
}
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.mapa__aviso { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; gap: 8px; }
.mapa__aviso svg { width: 44px; height: 44px; fill: none; stroke: var(--naranja); stroke-width: 1.6; margin-bottom: 6px; }
.mapa__aviso p { color: var(--gris); margin: 0 0 8px; }
.mapa__nota { font-size: 13px; color: var(--gris-texto) !important; margin-top: 10px !important; }
.mapa__nota a { color: var(--naranja); }

/* ---------- Pie ---------- */
.pie { background: #09090a; border-top: 1px solid var(--borde); padding: 44px 0 28px; color: var(--gris-texto); font-size: 14px; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.pie__fila p { margin: 8px 0 0; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pie__enlaces a, .enlace { color: var(--gris); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pie__enlaces a:hover, .enlace:hover { color: var(--naranja); }
.pie__derechos { margin-top: 28px; font-size: 13px; }

/* ---------- WhatsApp: botón, etiqueta que se desliza y ventana de chat ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: bottom .3s; }
body.con-aviso-cookies .wa { bottom: var(--alto-aviso, 20px); }
.wa__fila { display: flex; align-items: center; gap: 12px; }
.wa__boton {
    position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    display: grid; place-items: center; color: #fff; background: #25d366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s, background .3s;
    -webkit-tap-highlight-color: transparent;
}
.wa__boton svg { width: 34px; height: 34px; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.wa__boton::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
    animation: latido 2.4s ease-out infinite; pointer-events: none;
}
.wa__insignia {
    position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: #ff3b30; color: #fff; font: 700 12px/20px var(--fuente); text-align: center;
    box-shadow: 0 0 0 2px #fff; transform: scale(0); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1);
}
.wa--insignia .wa__insignia { transform: scale(1); }
/* Etiqueta que aparece deslizándose desde el botón. */
.wa__etiqueta {
    background: #fff; color: #1c1c21; padding: 10px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.3;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .22); white-space: nowrap; pointer-events: none;
    opacity: 0; transform: translateX(24px) scale(.96); transform-origin: right center;
    transition: opacity .3s ease, transform .4s cubic-bezier(.2, 1.3, .4, 1);
}
.wa__etiqueta b { color: #128c4b; }
/* Al pasar el mouse: el botón se desplaza hacia arriba, el ícono gira un poco y la etiqueta se desliza. */
.wa__fila:hover .wa__boton, .wa__boton:focus-visible { transform: translateY(-6px) scale(1.06); box-shadow: 0 14px 30px rgba(37, 211, 102, .55), 0 4px 10px rgba(0, 0, 0, .25); outline: none; }
.wa__fila:hover .wa__boton svg, .wa__boton:focus-visible svg { transform: rotate(-12deg) scale(1.05); }
.wa__fila:hover .wa__etiqueta, .wa__boton:focus-visible + .wa__etiqueta, .wa--aviso:not(.wa--abierto) .wa__etiqueta { opacity: 1; transform: translateY(-6px); }
.wa--abierto .wa__etiqueta { opacity: 0 !important; }
.wa--abierto .wa__boton { background: #128c4b; }
.wa--abierto .wa__boton::before, .wa--abierto .wa__insignia { display: none; }

.wa__tarjeta {
    width: min(360px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; background: #fff; color: #1c1c21;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform-origin: bottom right;
    animation: abrirChat .35s cubic-bezier(.2, 1.2, .4, 1);
}
.wa__cabecera { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #075e54; color: #fff; position: relative; }
.wa__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; background: #111; display: grid; place-items: center; overflow: hidden; position: relative; }
.wa__avatar img { width: 100%; height: 100%; }
.wa__avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 2px #075e54; }
.wa__cabecera strong { display: block; font-size: 16px; }
.wa__cabecera span { font-size: 13px; opacity: .85; }
.wa__cerrar { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.wa__cerrar:hover, .wa__cerrar:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.wa__cuerpo {
    padding: 22px 18px 26px; min-height: 130px;
    background: #efeae2 radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px) 0 0 / 14px 14px;
}
.wa__mensaje {
    position: relative; max-width: 88%; background: #fff; padding: 10px 14px 20px; border-radius: 0 12px 12px 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .12); font-size: 14.5px; line-height: 1.45; animation: aparecerMensaje .4s .15s both;
}
.wa__mensaje::before { content: ""; position: absolute; top: 0; left: -8px; border-top: 10px solid #fff; border-left: 8px solid transparent; }
.wa__mensaje strong { display: block; color: #075e54; font-size: 13px; margin-bottom: 2px; }
.wa__mensaje time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: #8696a0; }
.wa__pie { padding: 14px 18px 18px; background: #fff; }
.wa__abrir {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 18px; border-radius: 999px;
    background: #25d366; color: #fff; font: 600 15px/1 var(--fuente); text-decoration: none;
    transition: background .2s, transform .2s;
}
.wa__abrir svg { width: 22px; height: 22px; }
.wa__abrir:hover, .wa__abrir:focus-visible { background: #1ebe5b; transform: translateY(-2px); outline: none; }
.wa__nota { margin: 10px 0 0; font-size: 12px; color: #6b7680; text-align: center; }
@keyframes abrirChat { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes aparecerMensaje { from { opacity: 0; transform: translateY(8px); } }
@keyframes latido { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Aviso de cookies ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.cookies[hidden] { display: none; }
.cookies__caja {
    pointer-events: auto; width: min(920px, 100%); background: rgba(23, 23, 27, .97); color: #fff;
    border: 1px solid var(--borde); border-radius: 20px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    animation: subir .45s cubic-bezier(.2, .8, .2, 1);
}
.cookies h2 { font-size: 18px; margin-bottom: 8px; }
.cookies p { color: var(--gris); font-size: 14.5px; margin-bottom: 16px; }
.cookies a { color: var(--naranja); }
.cookies__opciones { display: grid; gap: 12px; margin-bottom: 18px; font-size: 14.5px; color: var(--gris); }
.cookies__botones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.boton-cookies {
    border: 1.5px solid var(--naranja); background: var(--naranja); color: #fff; border-radius: 999px; padding: 10px 20px;
    font: 600 14px/1.2 var(--fuente); cursor: pointer; transition: background .2s, transform .15s;
}
.boton-cookies:hover, .boton-cookies:focus-visible { background: var(--naranja-claro); outline: none; }
.boton-cookies:active { transform: scale(.96); }
.boton-cookies--linea { background: transparent; border-color: rgba(255, 255, 255, .3); }
.boton-cookies--linea:hover, .boton-cookies--linea:focus-visible { background: rgba(255, 255, 255, .08); border-color: #fff; }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } }

.interruptor { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor__control { flex: none; width: 44px; height: 24px; border-radius: 999px; background: #3a3a42; position: relative; transition: background .2s; }
.interruptor__control::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.interruptor input:checked + .interruptor__control { background: var(--naranja); }
.interruptor input:checked + .interruptor__control::after { transform: translateX(20px); }
.interruptor input:disabled + .interruptor__control { opacity: .6; }
.interruptor input:focus-visible + .interruptor__control { outline: 2px solid var(--naranja); outline-offset: 2px; }

/* ---------- Aparición al desplazarse ---------- */
.js .aparecer { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .aparecer.visible { opacity: 1; transform: none; }

/* ---------- Página de privacidad ---------- */
.legal { padding: calc(var(--alto-cabecera) + 48px) 0 80px; background: var(--crema); color: var(--texto-oscuro); }
.legal .contenedor { max-width: 860px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 44px); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal h3 { margin-top: 22px; }
.legal p, .legal li { color: var(--texto-medio); }
.legal .etiqueta { color: var(--naranja-oscuro); }
/* Sobre fondo claro la cabecera translúcida se vería gris. */
.pagina-legal .cabecera { background: var(--negro); }
.legal a { color: var(--naranja-oscuro); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; background: #fff; border-radius: 12px; overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #ece7e1; vertical-align: top; }
.legal th { background: #f0ebe5; color: var(--texto-oscuro); }
.legal .actualizado { font-size: 14px; }
.tabla-desplazable { overflow-x: auto; }

/* ---------- Tabletas y teléfonos ---------- */
@media (max-width: 960px) {
    .portal, .nosotros, .contacto { grid-template-columns: 1fr; }
    .portal__ilustracion { max-width: 440px; }
    .pasos { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
    .pasos::before { top: 10px; bottom: 10px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--naranja), rgba(242, 107, 33, .15)); }
    .pasos li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0 0 26px; }
    .pasos__numero { margin: 0; grid-row: span 2; }
    .pasos h3 { margin: 12px 0 4px; }
}

@media (max-width: 860px) {
    :root { --alto-cabecera: 118px; }
    .cabecera__fila { grid-template-columns: 1fr auto; row-gap: 10px; padding: 10px 0 12px; }
    .boton-consulta:not(.boton-consulta--grande):not(.boton-consulta--oscuro) { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
    .menu-boton {
        display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border-radius: 12px; justify-self: end;
        background: rgba(255, 255, 255, .06); border: 1px solid var(--borde); cursor: pointer;
    }
    .menu-boton span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
    .menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .menu {
        position: absolute; top: 100%; left: 0; right: 0; justify-self: stretch; flex-direction: column; gap: 0; padding: 8px 16px 16px;
        background: rgba(15, 15, 17, .98); border-bottom: 1px solid var(--borde);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    }
    .menu.abierto { transform: none; opacity: 1; visibility: visible; }
    .menu a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--borde); border-radius: 0; }
    .menu a::after { display: none; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .marca__logo { height: 36px; }
    .portada { padding-top: calc(var(--alto-cabecera) + 36px); }
    .portada__acciones > * { width: 100%; justify-content: center; }
    .valores { grid-template-columns: 1fr; }
    .mapa { min-height: 300px; }
    .cookies { left: 10px; right: 10px; bottom: 10px; }
    .cookies__caja { padding: 18px; }
    .cookies__botones { justify-content: stretch; }
    .cookies__botones .boton-cookies { flex: 1 1 45%; }
    .wa { right: 14px; bottom: 14px; }
    .wa__boton { width: 56px; height: 56px; }
    .wa__etiqueta { font-size: 13.5px; padding: 9px 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .js .aparecer { opacity: 1; transform: none; }
}
