/* Sendalia · hoja de estilos de la web. Paleta y tipografía según files/guia_marca.md */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

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

:root {
  --azul: #1B4965;
  --niebla: #62929E;
  --ambar: #E09F3E;
  --ambar-texto: #9a5f0c;
  --arena: #F4E9D8;
  --gris: #4f5b66;
  --linea: #dfe5e9;
  --oscuro: #0d1f2d;
  --lado: 1.15rem;
  --ancho: 1040px;
}

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.7; color: var(--azul); background: #fff;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--lado); }

/* Cabecera */
.cab {
  position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--linea);
}
.cab .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.logo svg { height: 34px; width: auto; }
.menu { display: flex; gap: 1.2rem; align-items: center; list-style: none; }
.menu a { font-size: .85rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.menu a:hover { color: var(--ambar-texto); }
.idioma { font-size: .8rem; font-weight: 600; text-decoration: none; padding: .35rem .55rem; border: 1px solid var(--linea); border-radius: 6px; }

/* Portada */
.inicio {
  position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: #3a4a52; overflow: hidden;
}
.inicio picture, .inicio picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.inicio picture img { object-fit: cover; }
.inicio::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,.25) 0%, rgba(8,16,28,.55) 60%, rgba(8,16,28,.85) 100%);
}
.inicio .wrap { position: relative; z-index: 2; padding-bottom: 2.5rem; width: 100%; }
.eyebrow {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: #ffd591; margin-bottom: .8rem;
}
h1 { font-size: clamp(2.2rem, 7vw, 3.9rem); font-weight: 300; line-height: 1.08; max-width: 14em; margin-bottom: 1rem; }
.hero-logo { margin-bottom: 1.2rem; font-size: inherit; font-weight: inherit; line-height: 0; max-width: none; }
.hero-logo img { width: clamp(280px, 60vw, 640px); height: auto; }
.hero-claim { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 300; line-height: 1.2; max-width: 16em; margin-bottom: .9rem; }
.hero-claim strong { font-weight: 700; }
h1 strong { font-weight: 700; }
.inicio p.lead { font-size: 1.05rem; max-width: 34em; color: rgba(255,255,255,.92); margin-bottom: 1.6rem; }

.botones { display: flex; flex-wrap: wrap; gap: .7rem; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.2rem;
  border-radius: 8px; font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  background: var(--ambar); color: var(--oscuro);
}
.boton.secundario { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.boton:disabled { opacity: .55; cursor: default; }

/* Secciones */
section { padding: 3.2rem 0; }
section + section { border-top: 1px solid var(--linea); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 600; line-height: 1.2; margin-bottom: .8rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.intro { color: var(--gris); max-width: 42em; margin-bottom: 1.8rem; }
.etiqueta {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ambar-texto); margin-bottom: .6rem;
}

/* Tipos de salida */
.tarjetas { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tarjeta { background: var(--arena); border-radius: 12px; padding: 1.3rem; }
.tarjeta p { color: var(--gris); font-size: .97rem; }

/* Rutas */
.rutas { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ruta { border-left: 3px solid var(--niebla); padding: .2rem 0 .2rem 1rem; }
.ruta p { color: var(--gris); font-size: .97rem; }
.foto-banda { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.foto-banda img { width: 100%; height: 300px; object-fit: cover; object-position: center 40%; border-radius: 12px; }

/* Salidas */
.salidas { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.salida { border: 1px solid var(--linea); border-radius: 12px; padding: 1.1rem; background: #fff; }
.salida-foto { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: .9rem; }
.salida header { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: baseline; }
.salida .fechas { font-weight: 600; }
.salida .estado { font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: #e7f3ee; color: #1d6b4f; }
.salida .estado.completa { background: #f1f1f1; color: var(--gris); }
.salida .precio { font-size: .9rem; color: var(--gris); margin-top: .3rem; }
.salida .acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.salida .boton { min-height: 42px; font-size: .9rem; }
.salida .boton.linea { background: #fff; color: var(--azul); border: 1px solid var(--azul); }
.vacio { color: var(--gris); padding: 1rem; border: 1px dashed var(--linea); border-radius: 10px; }

/* Formulario */
.formulario { display: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.formulario.abierto { display: block; }
.formulario .campos { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.formulario label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 500; }
.formulario input, .formulario textarea, .formulario select {
  font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid #c9d3d9; border-radius: 8px; color: var(--oscuro); background: #fff;
}
.formulario textarea { min-height: 96px; resize: vertical; }
.formulario .casilla { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.formulario .casilla input { margin-top: .3rem; }
.formulario .error { color: #a12d1c; font-size: .88rem; }
.formulario .ok { color: #1d6b4f; font-weight: 600; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulario .nota { font-size: .8rem; color: var(--gris); }

/* Contacto */
.contacto-datos { display: grid; gap: .9rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
.contacto-datos a { font-weight: 600; }
.contacto-datos span { display: block; font-size: .8rem; color: var(--gris); font-weight: 500; }

/* Pie */
.pie { background: var(--oscuro); color: rgba(255,255,255,.85); padding: 2.2rem 0 1.4rem; font-size: .9rem; }
.pie a { color: #ffd591; }
.pie .datos { display: grid; gap: .3rem; margin-bottom: 1.2rem; }
.pie .enlaces { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.pie .pruebas {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.65);
}

/* Páginas legales */
.legal { padding: 2.5rem 0 3rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--azul); max-width: none; font-weight: 600; }
.legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--gris); margin-bottom: .6rem; }
.legal ul { padding-left: 1.2rem; }

@media (min-width: 640px) {
  .tarjetas { grid-template-columns: repeat(3, 1fr); }
  .rutas { grid-template-columns: repeat(2, 1fr); }
  .foto-banda { grid-template-columns: 1fr 1fr; }
  .foto-banda img { height: 360px; }
  .salidas { grid-template-columns: repeat(2, 1fr); }
  .contacto-datos { grid-template-columns: repeat(3, 1fr); }
  .formulario .campos { grid-template-columns: 1fr 1fr; }
  .formulario .campos .completo { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .menu .oculto-movil { display: none; }
}
