/* Restaurante Topolino — hoja de estilos única. Sin dependencias externas. */
:root {
  --tinta: #13212b;      /* azul noche del Cantábrico */
  --tinta-2: #1d3140;
  --crema: #f7f2e8;
  --papel: #fffdf8;
  --ambar: #d4862a;      /* atardecer en San Lorenzo */
  --ambar-osc: #a9651a;
  --texto: #26323a;
  --suave: #5d6a72;
  --linea: #e4dccb;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ancho: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ambar-osc); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--tinta); margin: 0 0 .6em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.antetitulo {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ambar-osc); font-weight: 700; margin-bottom: .9rem; display: block;
}
.saltar { position: absolute; left: -999px; }
.saltar:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 100; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primario { background: var(--ambar); color: #1a1206; }
.btn-primario:hover { background: #e39a40; }
.btn-claro { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-claro:hover { background: #fff; color: var(--tinta); }
.btn-oscuro { border-color: var(--tinta); color: var(--tinta); }
.btn-oscuro:hover { background: var(--tinta); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,33,43,.96); backdrop-filter: blur(8px);
  color: #fff;
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { font-family: var(--serif); font-size: 1.45rem; color: #fff; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.marca small { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ambar); margin-left: .6rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: #e9eef1; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ambar); }
.nav .tel { font-weight: 700; color: #fff; border: 1.5px solid var(--ambar); padding: .4rem 1rem; border-radius: 999px; white-space: nowrap; }
.nav .tel:hover { background: var(--ambar); color: #1a1206; }

/* Portada */
.portada {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(88vh, 760px); display: grid; align-items: end;
  background: linear-gradient(160deg, #1d3140, #13212b 60%, #3a2a17);
}
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("img/hero.jpg") center / cover no-repeat;
}
.portada::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,33,43,.55) 0%, rgba(19,33,43,.35) 35%, rgba(19,33,43,.9) 100%);
}
.portada .contenedor { padding-block: 5rem 4rem; }
.portada h1 { color: #fff; font-size: clamp(2.6rem, 8vw, 5.2rem); margin-bottom: .35em; letter-spacing: -.01em; }
.portada h1 em { font-style: italic; color: #f2c078; font-weight: 500; }
.portada .antetitulo { color: #f2c078; }
.portada p { max-width: 36rem; font-size: 1.15rem; color: #eef2f4; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Franja de datos */
.franja { background: var(--tinta); color: #dfe6ea; border-top: 1px solid rgba(255,255,255,.08); }
.franja ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .95rem; }
.franja strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-right: .35rem; }

/* Secciones */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.foto { border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #c9d3d8, #e9dcc4); aspect-ratio: 4 / 3; box-shadow: 0 24px 50px -28px rgba(19,33,43,.55); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.alta { aspect-ratio: 4 / 5; }
.casa { background: var(--papel); }
.casa p { color: var(--suave); }
.casa .firma { font-family: var(--serif); font-style: italic; color: var(--tinta); font-size: 1.2rem; }

/* Tarjetas */
.oferta header { max-width: 40rem; margin-bottom: 2.5rem; }
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tarjeta { background: var(--papel); border: 1px solid var(--linea); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.tarjeta .foto { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
.tarjeta .cuerpo { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.tarjeta p { color: var(--suave); font-size: 1rem; flex: 1; }
.tarjeta a { font-weight: 700; text-decoration: none; }
.tarjeta a:hover { text-decoration: underline; }
.tarjeta.sin-foto { background: var(--tinta); border-color: var(--tinta); }
.tarjeta.sin-foto h3 { color: #fff; }
.tarjeta.sin-foto p { color: #c9d3d8; }
.tarjeta.sin-foto a { color: #f2c078; }
.tarjeta.sin-foto .cuerpo { padding-top: 2rem; justify-content: flex-end; }
.tarjeta.sin-foto .numero { font-family: var(--serif); font-size: 3.2rem; color: var(--ambar); line-height: 1; margin-bottom: auto; padding-bottom: 2rem; }

/* Ubicación */
.ubicacion { background: var(--tinta); color: #dfe6ea; }
.ubicacion h2 { color: #fff; }
.ubicacion .antetitulo { color: #f2c078; }
.ubicacion address { font-style: normal; font-size: 1.15rem; color: #fff; margin-bottom: 1.2rem; }
.ubicacion a:not(.btn) { color: #f2c078; }
.datos { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.datos li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.datos span { color: #9fb0ba; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.mapa { margin-top: 3rem; border-radius: 6px; overflow: hidden; background: var(--tinta-2); min-height: 120px; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.mapa.cargado { padding: 0; }
.mapa iframe { width: 100%; height: 380px; border: 0; display: block; }
.mapa button { font: inherit; cursor: pointer; background: none; }
.mapa small { display: block; color: #9fb0ba; margin-top: .7rem; font-size: .82rem; }

/* Reserva */
.reserva { text-align: center; background: var(--crema); }
.reserva .telefono { font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 4.5rem); color: var(--tinta); text-decoration: none; display: inline-block; margin: .2em 0 .3em; letter-spacing: .01em; }
.reserva .telefono:hover { color: var(--ambar-osc); }
.reserva p { color: var(--suave); max-width: 34rem; margin-inline: auto; }
.redes { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.redes a { font-weight: 650; text-decoration: none; }
.redes a:hover { text-decoration: underline; }

/* Pie */
.pie { background: #0d171e; color: #9fb0ba; font-size: .9rem; padding: 2rem 0 5.5rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.pie a { color: #dfe6ea; text-decoration: none; margin-left: 1.2rem; }
.pie a:first-child { margin-left: 0; }
.pie a:hover { color: var(--ambar); }

/* Barra fija en móvil */
.barra-movil { display: none; }

/* Páginas legales */
.legal { background: var(--papel); }
.legal .contenedor { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal .pendiente { background: #fff3cd; padding: 0 .3em; border-radius: 3px; }

@media (max-width: 860px) {
  .nav a:not(.tel) { display: none; }
  .dos-col { grid-template-columns: 1fr; }
  .tarjetas { grid-template-columns: 1fr; }
  .tarjeta.sin-foto .numero { padding-bottom: 1rem; }
  .ubicacion .foto { order: -1; aspect-ratio: 16 / 10; }
  .marca small { display: none; }
  .barra-movil {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--tinta); border-top: 1px solid rgba(255,255,255,.12);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .barra-movil a { color: #fff; text-decoration: none; text-align: center; padding: .95rem .5rem; font-weight: 700; }
  .barra-movil a:first-child { background: var(--ambar); color: #1a1206; }
}
@media (min-width: 861px) { .pie { padding-bottom: 2rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
