/* ==========================================================================
   L'Aixeta Sitges
   Fondo oscuro CÁLIDO (madera/brasa), para que el turquesa
   de los azulejos y la luz ámbar de las lámparas se sientan como el local.
   ========================================================================== */

:root {
  /* Base cálida: negros con carga roja/amarilla, nunca grises azulados. */
  --ink: #16110d;
  --ink-2: #1e1813;
  --surface: #271f18;
  --surface-2: #332a21;

  --teal: #00867f;
  --teal-deep: #00655f;
  --teal-bright: #2ab3a9;
  --aqua: #7fd4cd;

  /* Ámbar de las lámparas: solo brillos y detalles, nunca fondo. */
  --ember: #d9a05b;

  --cream: #f4ebe0;
  --muted: #b0a294;
  --line: rgba(244, 235, 224, 0.11);
  --line-strong: rgba(244, 235, 224, 0.2);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --container-width: 1180px;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Grano de película sobre todo: es lo que quita el plano digital
   y da textura orgánica al fondo oscuro. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--cream);
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 1em;
}

/* Guiño al grifo dibujado a mano del logo. */
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal-bright);
  flex: none;
}

.section {
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-head .eyebrow { justify-content: center; }

.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

/* Luz de lámpara: halo cálido/turquesa que rompe el fondo plano.
   Con radial-gradient en vez de filter:blur() — mismo resultado, pero sin
   el coste brutal de rasterizar un blur de 90px en pantallas grandes. */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.glow--teal { background: radial-gradient(circle closest-side, rgba(0, 134, 127, 0.38), rgba(0, 134, 127, 0) 100%); }
.glow--ember { background: radial-gradient(circle closest-side, rgba(217, 160, 91, 0.22), rgba(217, 160, 91, 0) 100%); }

.intro .glow--ember { width: 460px; height: 460px; bottom: -200px; left: -160px; }
.favoritos .glow--teal { width: 560px; height: 560px; top: -200px; left: -160px; }
.favoritos .glow--ember { width: 460px; height: 460px; bottom: -180px; right: -140px; }
.ambiente .glow--teal { width: 520px; height: 520px; top: 25%; right: -220px; }
.carta .glow--ember { width: 520px; height: 520px; top: -160px; right: -180px; }
.reservas .glow--teal { width: 620px; height: 620px; top: -240px; left: 50%; margin-left: -310px; }

/* Botones -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 134, 127, 0.42);
}

.btn--primary:hover {
  background: var(--teal-bright);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(42, 179, 169, 0.5);
}

.btn--ghost {
  background: rgba(244, 235, 224, 0.07);
  border-color: rgba(244, 235, 224, 0.4);
  color: var(--cream);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(244, 235, 224, 0.16);
  border-color: var(--cream);
}

.btn--outline {
  background: transparent;
  border-color: var(--teal-bright);
  color: var(--aqua);
}

.btn--outline:hover {
  background: var(--teal-bright);
  color: var(--ink);
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled {
  background: rgba(22, 17, 13, 0.86);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
  backdrop-filter: blur(12px);
}

.logo { display: block; flex: none; }

.logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .logo img { height: 38px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  position: absolute;
  left: 9px;
  transition: all 0.25s ease;
}

.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--aqua);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 4px;
}

/* Enlaces reales a /ca/, /en/, /fr/ — ya no son botones inertes. */
.lang-switch__item {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.3;
  transition: all 0.25s ease;
}

.lang-switch__item:hover {
  border-color: var(--teal-bright);
  color: var(--aqua);
}

.lang-switch__item.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Es un <img> y no un background: así el hero (que es el LCP) puede llevar
   srcset y servir el ancho justo a cada pantalla. */
.hero__bg {
  position: absolute;
  inset: 0;
  transform: scale(1.05);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Cálido, no gris: deja respirar el sol de la terraza y funde
   con el marrón del fondo de la página. */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 17, 13, 0.55) 0%, rgba(22, 17, 13, 0.35) 40%, rgba(22, 17, 13, 0.97) 100%),
    linear-gradient(75deg, rgba(22, 17, 13, 0.8) 0%, rgba(22, 17, 13, 0.15) 65%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 90px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  margin-bottom: 0.4em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 em {
  font-style: italic;
  color: var(--aqua);
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 540px;
  color: rgba(244, 235, 224, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(244, 235, 224, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: rgba(244, 235, 224, 0.5);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: scaleY(0.3); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0.3); opacity: 0.3; transform-origin: bottom; }
}

/* Nosotros ---------------------------------------------------- */

.intro { background: var(--ink); }

.intro__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.intro__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__text h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 0.6em;
}

.intro__text p { color: var(--muted); }

.intro__facts {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.intro__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--aqua);
  line-height: 1.1;
}

.intro__facts span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Nuestros favoritos ------------------------------------------------------ */

.favoritos { background: var(--ink-2); }

.fav__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  /* Sin esto las tarjetas se estiran a la altura de la fila y dejan
     huecos muertos debajo del precio. */
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Escalonado: rompe la rejilla perfecta, que es lo que hacía
   que la página pareciese una hoja de cálculo. */
.fav__item:nth-child(3n + 2) { margin-top: 52px; }

.fav__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.fav__item:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 179, 169, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.fav__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.fav__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.fav__item:hover .fav__media img { transform: scale(1.07); }

.fav__body { padding: 26px 26px 28px; }

.fav__body h3 {
  font-size: 1.24rem;
  margin-bottom: 0.35em;
}

.fav__body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.fav__cta {
  text-align: center;
  margin-top: 64px;
  position: relative;
  z-index: 1;
}

/* Ambiente (mosaico de gente y local) ------------------------------------ */

.ambiente { background: var(--ink); }

.ambiente-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.ambiente-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.ambiente-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ambiente-grid figure:hover img { transform: scale(1.06); }

.ambiente-grid .tall { grid-row: span 2; }
.ambiente-grid .wide { grid-column: span 2; }

/* Carta --------------------------------------------------------- */

.carta { background: var(--ink-2); }

.carta__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.carta__nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.25s ease;
}

.carta__nav a:hover {
  border-color: var(--teal-bright);
  color: var(--aqua);
  background: rgba(0, 134, 127, 0.12);
}

.carta__cols {
  columns: 2;
  column-gap: 72px;
  position: relative;
  z-index: 1;
}

.carta__group {
  break-inside: avoid;
  margin-bottom: 52px;
}

.carta__group h3 {
  font-size: 1.4rem;
  color: var(--aqua);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.dish {
  margin-bottom: 18px;
  break-inside: avoid;
}

.dish__line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dish__name {
  font-weight: 600;
  color: var(--cream);
  font-size: 1rem;
}

/* Puntos de guía clásicos de carta: el precio ancla a la derecha. */
.dish__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(244, 235, 224, 0.25);
  transform: translateY(-4px);
  min-width: 18px;
}

.dish__price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ember);
  white-space: nowrap;
}

.dish__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 3px 0 0;
  max-width: 92%;
}

.carta__note {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.86rem;
  position: relative;
  z-index: 1;
}

/* Reservas ---------------------------------------------------------------- */

.reservas { background: var(--ink); }

/* El iframe de CoverManager es blanco fijo y no se puede tematizar,
   así que se asume: ficha de papel apoyada sobre el fondo oscuro. */
.reservas__wrap {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.reservas__header {
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: #fff;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reservas__header h2 { color: #fff; font-size: 1.5rem; margin: 0; }

.reservas__header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.reservas__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.reservas__phone:hover { background: rgba(255, 255, 255, 0.28); }

.reservas__iframe-wrap { padding: 8px; }

.reservas__iframe-wrap iframe {
  width: 100%;
  border: none;
  display: block;
}

/* Cita ---------------------------------------------------- */

/* La foto la inyecta la plantilla con image-set() en el style, porque un
   background de CSS no admite srcset y el nombre del fichero lo genera
   el build con hash. Aquí solo queda la colocación. */
.historia {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 150px 0;
}

.historia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 17, 13, 0.94), rgba(22, 17, 13, 0.8));
}

.historia__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.historia blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--cream);
}

.historia cite {
  font-style: normal;
  color: var(--aqua);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

/* Ubicación ------------------------------------------------------ */

.ubicacion { background: var(--ink-2); }

.ubicacion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}

.info-card h2 { font-size: 1.8rem; }

.info-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-list li { display: flex; gap: 14px; align-items: flex-start; }

.info-list .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 134, 127, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-list .icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--aqua);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-list strong { display: block; color: var(--cream); }
.info-list span, .info-list a { color: var(--muted); font-size: 0.95rem; }
.info-list a:hover { color: var(--aqua); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 3px 0; color: var(--muted); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--cream); }

.social-row { display: flex; gap: 12px; margin-top: 28px; }

.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.social-row a:hover { background: var(--teal-bright); transform: translateY(-2px); }
.social-row img { width: 20px; height: 20px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  /* El mapa de Google es claro y deslumbra sobre el fondo oscuro. */
  filter: grayscale(0.3) brightness(0.85) contrast(1.05);
}

/* Footer --------------------------------------------------------------------- */

.site-footer {
  background: #100c09;
  border-top: 1px solid var(--line);
  padding: 48px 0;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a:hover { color: var(--aqua); }

.footer-logo img { height: 42px; width: auto; }

.footer-nav { display: flex; gap: 20px; font-size: 0.9rem; flex-wrap: wrap; }

.footer-legal { font-size: 0.85rem; }

/* Botón flotante ------------------------------------------------ */

.float-reserve {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1080px) {
  .fav__grid { grid-template-columns: repeat(2, 1fr); }
  .fav__item:nth-child(3n + 2) { margin-top: 0; }
  .fav__item:nth-child(2n) { margin-top: 44px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(22, 17, 13, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
  }

  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.3rem; }

  .intro__grid,
  .ubicacion__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .intro__image { order: -1; }

  .carta__cols { columns: 1; }

  .ambiente-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 48px; }

  .hero__actions { flex-direction: column; align-items: stretch; }

  .fav__grid { grid-template-columns: 1fr; gap: 24px; }
  .fav__item:nth-child(2n) { margin-top: 0; }

  .historia { background-attachment: scroll; padding: 96px 0; }

  .info-card { padding: 32px 24px; }

  .intro__facts { gap: 24px; }
  .intro__facts strong { font-size: 1.45rem; }

  .float-reserve {
    right: 16px;
    bottom: 16px;
    padding: 13px 20px;
    font-size: 0.9rem;
  }

  .glow { display: none; }
}

@media (max-width: 520px) {
  .ambiente-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .ambiente-grid .wide, .ambiente-grid .tall { grid-column: span 1; grid-row: span 1; }
}
