/* ===================================================================
   CORAZÓN DE LOBA — Booking landing
   ===================================================================

   IDENTIDAD VISUAL
   Tomada del formulario real de Tally: fondo negro, rojo de marca,
   tipografía blackletter. Todo lo que depende de la marca está en el
   bloque :root de abajo — son las únicas líneas a tocar si algo cambia.

   DECISIÓN DE DISEÑO A REVISAR (ver nota al final del archivo):
   la blackletter se usa solo en el logotipo y el título. Los tres
   idiomas van en tipografía limpia, a propósito. Razón en el comentario
   de la sección "SELECTOR DE IDIOMA".
   =================================================================== */


/* ---- Tipografía blackletter --------------------------------------
   Candidata que más se acerca a la del formulario de Tally.
   Si el nombre exacto de la fuente de Tally es otro, cambiar aquí
   la URL y el nombre en --fuente-display. Es lo único a tocar.

   Alternativa más robusta a largo plazo: descargar el .woff2 y
   servirlo desde el propio dominio con @font-face, para no depender
   de Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Pirata+One&display=swap');


:root{

  /* ---- COLOR (idéntico al de los formularios de Tally) ---- */
  --fondo:        #000000;   /* negro */
  --display:      #B3142C;   /* rojo de marca (paleta Loba): logotipo y título */
  --texto:        #E0D3A6;   /* hueso cálido (paleta Loba): texto legible */
  --texto-tenue:  #8f8880;   /* texto secundario y pie */
  --linea:        #2a2422;   /* separadores */
  --acento:       #B3142C;   /* estado hover / activo */

  /* ---- TIPOGRAFÍA ---- */
  --fuente-display: 'Pirata One', 'UnifrakturCook', serif;
  --fuente-ui:      'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* ---- ESCALA ---- */
  --logo-ancho:    200px;
  --ancho-max:     540px;

  /* ---- RITMO ---- */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;

  /* ---- MOVIMIENTO ---- */
  --transicion: 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* ===================================================================
   RESET MÍNIMO
   =================================================================== */

*,
*::before,
*::after{ box-sizing: border-box; }

html,
body{
  margin: 0;
  padding: 0;
  height: 100%;
}

body{
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* ===================================================================
   LAYOUT
   Una sola columna, centrada. El móvil es la prioridad.
   =================================================================== */

.page{
  min-height: 100%;
  min-height: 100dvh;            /* evita el salto de la barra del navegador móvil */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-3);
  max-width: var(--ancho-max);
  margin: 0 auto;
  text-align: center;
}


/* ===================================================================
   LOGO
   =================================================================== */

.logo__texto{
  font-family: var(--fuente-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--display);
  line-height: 1.1;
  display: block;
}

.logo__img{
  width: var(--logo-ancho);
  height: auto;
  display: block;
}


/* ===================================================================
   INTRO — título trilingüe + texto
   =================================================================== */

.intro{
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.intro__titulo{
  margin: 0;
  font-family: var(--fuente-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--display);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Las tres versiones pesan lo mismo: ninguna lengua es la principal. */
.intro__titulo span{ display: block; }

.intro__texto{
  margin: 0;
  font-family: var(--fuente-ui);
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--texto-tenue);
}


/* ===================================================================
   SELECTOR DE IDIOMA
   -------------------------------------------------------------------
   Los tres idiomas parten SIEMPRE en blanco y pasan a rojo solo al
   pasar el ratón por encima. Ninguno viene preseleccionado: la página
   no sugiere idioma, lo elige la persona.

   Estos tres van en tipografía limpia, NO en blackletter, a propósito:
   la página entera existe para que alguien decida en menos de tres
   segundos, y una blackletter a 14px en mayúsculas es difícil de leer
   de un vistazo — sobre todo para quien no lee el alfabeto latino a
   diario. La blackletter aporta identidad arriba; aquí estorbaría.

   Si aun así se quiere todo en blackletter, es un cambio de una línea:
   sustituir var(--fuente-ui) por var(--fuente-display) en .idioma
   y subir el tamaño a ~18px.

   Móvil: apilados a ancho completo. Desktop: en fila.
   =================================================================== */

.idiomas{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  border-top: 1px solid var(--linea);
}

.idioma{
  /* área de toque de 64px, muy por encima del mínimo de 44px */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 var(--sp-2);

  border-bottom: 1px solid var(--linea);

  color: var(--texto);
  text-decoration: none;

  font-family: var(--fuente-ui);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  transition:
    color var(--transicion),
    background-color var(--transicion),
    letter-spacing var(--transicion);
}

/* Al pasar por encima el texto pasa al rojo de marca y respira.
   Sin subrayados, sin cajas, sin desplazamientos. */
.idioma:hover,
.idioma:focus-visible{
  color: var(--acento);
  letter-spacing: 0.22em;
}

.idioma:focus-visible{
  outline: 1px solid var(--acento);
  outline-offset: -1px;
}

.idioma:active{
  background-color: rgba(255, 45, 45, 0.06);
}


/* ===================================================================
   PIE
   =================================================================== */

.pie__texto{
  font-family: var(--fuente-ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--texto-tenue);
  text-indent: 0.22em;
}


/* ===================================================================
   TABLET / DESKTOP
   =================================================================== */

@media (min-width: 700px){

  :root{ --ancho-max: 620px; }

  .page{
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-4);
  }

  .logo__texto{ font-size: 36px; }

  .intro__titulo{ font-size: 30px; }

  .intro__texto{ font-size: 14px; }

  /* Los idiomas pasan a fila, separados por líneas verticales */
  .idiomas{
    flex-direction: row;
    justify-content: center;
    border-top: none;
    border-left: 1px solid var(--linea);
  }

  .idioma{
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--linea);
    min-height: 72px;
  }
}


/* ===================================================================
   PREFERENCIAS DEL SISTEMA
   =================================================================== */

@media (prefers-reduced-motion: reduce){
  *{
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .idioma:hover,
  .idioma:focus-visible{ letter-spacing: 0.16em; }
}

@media print{
  body{ background: #fff; color: #000; }
  .logo__texto,
  .intro__titulo{ color: #000; }
  .idioma{ color: #000; }
}
