/* ============================================================
   MAIN. Base, estructura, cabecera, pie y botones.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--grafito); color: var(--texto);
    font-family: var(--f-texto); font-size: var(--t-m); line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-titulo); color: var(--blanco); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: var(--t-3xl); } h2 { font-size: var(--t-2xl); } h3 { font-size: var(--t-xl); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rojo); color: #fff; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.contenedor { width: min(100% - 2*var(--e-5), var(--ancho)); margin-inline: auto; }
.seccion { padding-block: var(--e-8); }
.seccion--tight { padding-block: var(--e-7); }
.dato { font-family: var(--f-dato); letter-spacing: 0.02em; }

/* Rotulo tecnico sobre los titulos: "// 01 ESCAPES" */
.rotulo {
    display: inline-flex; align-items: center; gap: var(--e-2);
    font-family: var(--f-dato); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase;
    color: var(--rojo); margin-bottom: var(--e-3);
}
.rotulo::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.cabecera-seccion { display: flex; align-items: end; justify-content: space-between; gap: var(--e-5); margin-bottom: var(--e-6); }
.cabecera-seccion h2 { margin: 0; font-size: var(--t-3xl); }
.cabecera-seccion p { color: var(--texto-suave); max-width: 52ch; margin: var(--e-2) 0 0; }

/* ---------- BOTONES ---------- */
.btn {
    --c: var(--rojo-boton);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2);
    min-height: 48px; padding: 0 var(--e-5); border-radius: var(--radio-s); border: 1px solid var(--c);
    background: var(--c); color: #fff; font-family: var(--f-titulo); font-weight: 700; font-size: var(--t-s);
    letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
    transition: transform .2s var(--curva), box-shadow .2s var(--curva), background .2s;
}
.btn:hover { box-shadow: 0 10px 30px -8px var(--rojo-halo); transform: translateY(-1px); background: var(--rojo-boton-2); }
.btn--hueco { background: transparent; color: var(--blanco); border-color: var(--linea); }
.btn--hueco:hover { border-color: var(--rojo); background: var(--rojo-fondo); }
.btn--whatsapp { --c: #1fbf5b; color: #04170b; }   /* texto oscuro: el blanco sobre este verde da 2,4:1 */
.btn--whatsapp:hover { background: #25d366; color: #04170b; box-shadow: 0 10px 30px -8px rgba(37,211,102,.4); }
.btn svg { width: 18px; height: 18px; }
.enlace-flecha { display: inline-flex; align-items: center; gap: 6px; color: var(--blanco); font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-s); }
.enlace-flecha::after { content: "→"; color: var(--rojo); transition: transform .2s var(--curva); }
.enlace-flecha:hover::after { transform: translateX(4px); }

/* ---------- CABECERA ---------- */
.cabecera {
    position: sticky; top: 0; z-index: 50; height: var(--cabecera);
    background: var(--cristal); backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--linea-suave);
}
.cabecera__in { height: 100%; display: flex; align-items: center; gap: var(--e-6); }
.logo { flex: none; } .logo img { height: 30px; width: auto; max-width: none; }
.menu { display: flex; gap: var(--e-1); margin: 0; padding: 0; list-style: none; }
.menu a {
    display: block; padding: 10px 14px; border-radius: var(--radio-s);
    font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-s); letter-spacing: .04em; color: var(--texto);
    transition: color .15s, background .15s;
}
.menu a:hover, .menu .activo > a { color: var(--blanco); background: var(--panel-2); }
.cabecera__acciones { margin-left: auto; display: flex; align-items: center; gap: var(--e-2); }
.icono-btn {
    position: relative; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: var(--radio-s); border: 1px solid var(--linea); color: var(--blanco); background: transparent; cursor: pointer;
}
.icono-btn:hover { border-color: var(--rojo); }
.icono-btn svg { width: 20px; height: 20px; }
.icono-btn .contador {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--rojo-boton); color: #fff; font-family: var(--f-dato); font-size: 11px; display: grid; place-items: center;
}
.cabecera__coche {
    display: inline-flex; align-items: center; gap: var(--e-2); height: 44px; padding: 0 var(--e-4);
    border-radius: var(--radio-s); border: 1px solid var(--linea); color: var(--blanco); background: var(--panel);
    font-family: var(--f-titulo); font-weight: 600; font-size: var(--t-s); cursor: pointer; white-space: nowrap;
}
.cabecera__coche:hover { border-color: var(--rojo); }
.cabecera__coche svg { width: 20px; height: 20px; flex: none; }
.menu-btn { display: none; }
.cabecera__coche .led { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 10px var(--rojo); }

/* ---------- MIGAS ---------- */
.migas { font-family: var(--f-dato); font-size: var(--t-xs); color: var(--texto-tenue); letter-spacing: .04em; padding-block: var(--e-5) 0;
    /* siempre una linea: si la fuente llega despues y es mas ancha, saltaba a dos y movia toda la pagina (CLS) */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.migas a { color: var(--texto-suave); text-decoration: underline; text-decoration-color: var(--linea); text-underline-offset: 3px; } .migas a:hover { color: var(--blanco); }
.migas span[aria-hidden] { margin-inline: 8px; color: var(--rojo); }

/* ---------- PIE ---------- */
.pie { background: var(--negro); border-top: 1px solid var(--linea-suave); margin-top: var(--e-9); }
.pie__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--e-7); padding-block: var(--e-8) var(--e-7); }
.pie__titulo { font-family: var(--f-dato); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--texto-tenue); margin-bottom: var(--e-4); }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie a { color: var(--texto-suave); font-size: var(--t-s); } .pie a:hover { color: var(--blanco); }
.pie__marca p { color: var(--texto-suave); font-size: var(--t-s); max-width: 36ch; margin-top: var(--e-4); }
.pie__contacto { font-size: var(--t-s); color: var(--texto-suave); display: grid; gap: 6px; margin-top: var(--e-4); }
.pie__contacto b { color: var(--blanco); font-weight: 600; }
.pie__base { border-top: 1px solid var(--linea-suave); padding-block: var(--e-5); display: flex; justify-content: space-between; gap: var(--e-4); font-family: var(--f-dato); font-size: var(--t-xs); color: var(--texto-tenue); }
/* selector de idioma (ES / EN) */
.idioma { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--linea); border-radius: var(--radio-s); font-family: var(--f-dato); font-size: var(--t-xs); letter-spacing: .08em; color: var(--texto-suave); }
.idioma:hover { color: var(--blanco); border-color: var(--rojo); }
.menu__idioma { display: none; }
@media (max-width: 980px) { .menu__idioma { display: block; } .menu__idioma a { color: var(--texto-suave); } }
.nota-traduccion { margin-top: var(--e-5); color: var(--texto-tenue); font-size: var(--t-s); font-style: italic; }
.pie__legal { display: flex; flex-wrap: wrap; gap: 6px var(--e-4); } .pie__legal a { color: var(--texto-tenue); } .pie__legal a:hover { color: var(--blanco); }
