/* BASE · lo que comparten TODAS las páginas. Se carga primero.
   No lleva reglas de ningún componente: cada componente declara sus variables en componentes.css o paginas.css.
   ÍNDICE
     1. Fuentes ............ @font-face locales
     2. Variables globales, reinicio, contenedor, accesibilidad e iconos */

/* ==================================================================== 1. FUENTES */
/* Fuentes alojadas en local (DM Sans y DM Serif Display, licencia SIL OFL 1.1: ver assets/fonts/OFL-*.txt).
   Mismos archivos WOFF2 y mismo unicode-range que sirve Google Fonts. */

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-serif-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-serif-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================================================================== 2. VARIABLES GLOBALES, REINICIO Y CONTENEDOR */
/* BASE · lo que comparten TODAS las páginas: colores, fuentes, títulos, anchos y márgenes, reinicio, contenedor, accesibilidad e iconos.
   Aquí solo hay variables que de verdad se comparten. Cada componente tiene las suyas en su archivo
   (altura de la cabecera y tamaño del menú en cabecera.css, alto y letra de los botones en botones.css, etc.),
   de modo que cambiar un componente no mueve a los demás.

   ÍNDICE
     1. Colores        --verde, --tinta, --gris, --marfil, --linea, --blanco…
     2. Tipografía     fuentes y --titulo-* (H1, H2 y H3 comparten la escala en todas las páginas)
     3. Medidas        --ancho-contenedor, --margen-pagina, --separacion-columnas, --separacion-filas
     4. Tarjetas       --borde-tarjeta (grosor del contorno de todas las tarjetas)
   Puntos de corte comunes: 1100, 960, 760, 600 y 480 px. */

:root {
  /* ---------- 1. Colores ---------- */
  /* Tema del hotel: lo que cambia de un hotel a otro */
  --verde: #073e38;
  --verde-oscuro: #042e2b;
  --tinta: #153635;
  --gris: #647371;
  --marfil: #faf9f6;
  --linea: #e1e7e3;
  --blanco: #fff;
  /* Colores de apoyo que se repiten */
  --verde-acento: #0b6155;
  --color-enlace-hover: #087468;
  --color-fondo-hover: #eef4f1;
  --color-foto-fondo: #e6e9e3;
  --color-portada-fondo: #263d3d;
  --sombra-tarjeta: 0 8px 24px #052c2512;

  /* ---------- 2. Tipografía ---------- */
  --fuente-texto: 'DM Sans', Arial, sans-serif;
  --fuente-titulo: 'DM Serif Display', Georgia, serif;
  /* Títulos (se adaptan al ancho con clamp: mínimo, escala, máximo) */
  --titulo-portada: clamp(44px, 4.5vw, 60px);     /* H1 de la portada */
  --titulo-pagina: clamp(36px, 4.4vw, 44px);      /* H1 de los banners interiores */
  --titulo-seccion: clamp(30px, 2.8vw, 40px);     /* H2 de sección */
  --titulo-subseccion: clamp(22px, 1.8vw, 26px);  /* H3 / título de ficha */

  /* ---------- 3. Medidas ---------- */
  --ancho-contenedor: 1200px;
  --margen-pagina: 32px;
  --separacion-columnas: clamp(28px, 4vw, 48px);
  --separacion-filas: 28px;        /* separación vertical cuando las columnas se apilan (.dos-columnas) */

  /* ---------- 4. Tarjetas ---------- */
  /* Grosor del borde de todas las tarjetas (crece hacia dentro: box-sizing es border-box) */
  --borde-tarjeta: 1.5px
}

/* ---------- Márgenes de página por tamaño de pantalla ---------- */
@media (max-width: 1100px) {
  :root {
    --margen-pagina: 24px
  }
}

@media (max-width: 760px) {
  :root {
    --margen-pagina: 20px
  }
}

@media (max-width: 480px) {
  :root {
    --margen-pagina: 16px
  }
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px
}

body {
  margin: 0;
  background: var(--marfil);
  font-family: var(--fuente-texto);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select {
  font: inherit
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

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

h1,
h2 {
  font-family: var(--fuente-titulo);
  font-weight: 400;
  letter-spacing: -.025em
}

:focus-visible {
  outline: 3px solid #b28647;
  outline-offset: 4px
}

/* calc() necesario: ancho máximo del contenedor menos el margen de página a cada lado */
.contenedor {
  width: min(calc(100% - var(--margen-pagina) * 2), var(--ancho-contenedor));
  margin-inline: auto
}

.saltar-contenido {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--verde);
  color: var(--blanco);
  font-size: 13px
}

.saltar-contenido:focus {
  top: 12px
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    transition: none !important /* anula todas las transiciones para quien pide menos movimiento */
  }
}

/* ---------- Iconos ----------
   Un solo componente: <svg class="icono" aria-hidden="true"><use href="…/assets/icons/sprite.svg#nombre"/></svg>
   El nombre del icono va en el href; no hay una clase por icono. Color = color del texto (currentColor).
   Tamaño: 16px por defecto. Un componente lo cambia con `--icono: …` en su propia regla. Los iconos de la portada (portada-*) tienen su tamaño en la tabla de más abajo
   (una línea por icono, en px) y no usan --icono.
   Decorativos: aria-hidden="true". Informativos: role="img" y aria-label. Logotipos: <img>, nunca el sprite. */
:where(.icono) {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  width: var(--icono, 16px);
  height: var(--icono, 16px)
}

/* ---------- Colores propios de la portada y de las páginas interiores ---------- */
.inicio,
.marco-inicio {
  --verde-inicio: #015452;
  --verde-medio: #006160
}

.inicio {
  --tinta: #003d37;
  background: var(--blanco)
}

/* Iconos de la portada: tamaño en px (ancho × alto). Para cambiar uno, su línea. */
:where(.icono:has([href*="#portada-"])) {
  display: block;
  width: var(--ancho);
  height: var(--alto)
}

:where(.icono:has([href$="#portada-flecha"])) { --ancho: 13px; --alto: 13px }
:where(.icono:has([href$="#portada-calendario"])) { --ancho: 18px; --alto: 21px }
:where(.icono:has([href$="#portada-huespedes"])) { --ancho: 25px; --alto: 23px }
:where(.icono:has([href$="#portada-ninos"])) { --ancho: 26px; --alto: 23px }
:where(.icono:has([href$="#portada-usuario"])) { --ancho: 12px; --alto: 13px }
:where(.icono:has([href$="#portada-cama"])) { --ancho: 14px; --alto: 9px }
:where(.icono:has([href$="#portada-cafe"])) { --ancho: 22px; --alto: 23px }
:where(.icono:has([href$="#portada-ubicacion"])) { --ancho: 18px; --alto: 23px }
:where(.icono:has([href$="#portada-wifi"])) { --ancho: 23px; --alto: 17px }
:where(.icono:has([href$="#portada-cama-grande"])) { --ancho: 21px; --alto: 13px }
:where(.icono:has([href$="#portada-brujula"])) { --ancho: 23px; --alto: 23px }
:where(.icono:has([href$="#portada-usuario-check"])) { --ancho: 27px; --alto: 25px }
:where(.icono:has([href$="#portada-ubicacion-solida"])) { --ancho: 24px; --alto: 38px }
:where(.icono:has([href$="#portada-facebook"])) { --ancho: 12px; --alto: 22px }
:where(.icono:has([href$="#portada-whatsapp"])) { --ancho: 22px; --alto: 22px }
:where(.icono:has([href$="#portada-instagram"])) { --ancho: 23px; --alto: 23px }
