/* ============================================
   LOS ANCARES — Estilos
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --color-bg:       #faf5f5;
  --color-bg-alt:   #f2eae8;
  --color-cream:    #f5efed;
  --color-brown:    #2e1a1a;
  --color-brown-mid:#5a3a3a;
  --color-brown-lt: #7a5c5c;
  --color-gold:     #8b1a2b;
  --color-gold-dim: #6e1422;
  --color-text:     #2e1a1a;
  --color-text-lt:  #5a3a3a;
  --color-border:   #d4b8b8;
  --color-white:    #fffcfa;
  --color-success:  #4a7c59;
  --color-error:    #9b3b3b;

  --ff-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.75rem;
  --fs-3xl:  3.5rem;

  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(46,26,26,.08);
  --shadow-md: 0 4px 16px rgba(46,26,26,.1);
  --shadow-lg: 0 8px 32px rgba(46,26,26,.12);

  --header-h: 72px;
  --transition: .3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--color-gold-dim); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold); }
ul  { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-brown);
  line-height: 1.2;
}

.section__desc {
  margin-top: 16px;
  color: var(--color-text-lt);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  padding: 14px 36px;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(250,245,245,.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

/* -- Header transparent (over hero): white text -- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: rgba(255,252,248,.95);
  text-decoration: none;
  transition: color var(--transition);
}

.header__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,252,248,.85);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.header__link:hover {
  color: #fff;
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

/* -- Header scrolled: dark text -- */
.header--scrolled .header__logo {
  color: var(--color-brown);
}

.header--scrolled .header__link {
  color: var(--color-brown-mid);
}

.header--scrolled .header__link:hover {
  color: var(--color-gold);
}

.header--scrolled .header__hamburger span {
  background: var(--color-brown);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,252,248,.9);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger--open span:nth-child(2) { opacity: 0; }
.header__hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Language switcher ---------- */
.lang-switcher {
  position: relative;
  margin-left: 8px;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid rgba(255,252,248,.4);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(255,252,248,.85);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px;
}

.lang-switcher__btn:hover {
  border-color: rgba(255,252,248,.7);
  color: #fff;
}

.header--scrolled .lang-switcher__btn {
  border-color: var(--color-border);
  color: var(--color-brown-mid);
}

.header--scrolled .lang-switcher__btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.lang-switcher__arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
}

.lang-switcher--open .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 100;
  min-width: 150px;
}

.lang-switcher--open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  color: var(--color-brown-mid);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-switcher__option:hover {
  background: var(--color-bg-alt);
  color: var(--color-gold);
}

.lang-switcher__option--active {
  color: var(--color-gold);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(80,10,20,.42), rgba(46,26,26,.28)),
    url('images/hero.jpeg') center/cover no-repeat;
  background-color: #3a1520;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(139,26,43,.12), transparent 60%),
    linear-gradient(to bottom, transparent 40%, rgba(20,8,8,.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 700px;
}

.hero__tagline {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: rgba(255,252,248,.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__cta {
  text-decoration: none;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,252,248,.5);
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,252,248,.4);
  border-bottom: 2px solid rgba(255,252,248,.4);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(6px); }
}

/* ---------- Nosotros ---------- */
.nosotros { background: var(--color-bg); }

.nosotros__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros__image {
  position: relative;
  margin: 0;
}

.nosotros__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 24px 48px -16px rgba(40, 24, 12, 0.35), 0 8px 20px -8px rgba(40, 24, 12, 0.18);
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.6s ease;
}

.nosotros__photo:hover {
  transform: translateY(-4px);
}

.nosotros__image::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--color-gold);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.55;
}

.nosotros__caption {
  display: block;
  margin-top: 18px;
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-brown-mid);
  text-align: center;
}

.nosotros__text p {
  margin-bottom: 20px;
  color: var(--color-text-lt);
}

.nosotros__text p:first-child {
  font-size: var(--fs-md);
  color: var(--color-text);
  font-weight: 500;
}

.nosotros__signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.nosotros__signature-line {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
}

.nosotros__signature-text {
  font-family: var(--ff-heading);
  font-style: italic;
  color: var(--color-brown-mid);
}

/* ---------- Carta ---------- */
.carta {
  background: var(--color-bg-alt);
}

/* ---------- Libro / Carta elegante ---------- */
.book-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 30px;
}

.book {
  position: relative;
  display: flex;
  height: 600px;
  background: linear-gradient(90deg, #f5ebe4 0%, #faf5f0 6%, #faf5f0 49.5%, #3e2723 49.5%, #3e2723 50.5%, #faf5f0 50.5%, #faf5f0 94%, #f5ebe4 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    0 2px 8px rgba(46,26,26,.12),
    0 12px 40px rgba(46,26,26,.18),
    inset 0 0 60px rgba(46,26,26,.03);
  perspective: 1800px;
}

.book__spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #d4b8a0, #8b6f5e, #d4b8a0);
  z-index: 4;
  box-shadow: 0 0 8px rgba(46,26,26,.2);
}

.book__page {
  flex: 1;
  padding: 32px 28px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.book__page--left {
  border-right: none;
  padding-right: 32px;
  background: linear-gradient(135deg, rgba(245,235,228,.3) 0%, transparent 50%);
}

.book__page--right {
  border-left: none;
  padding-left: 32px;
  background: linear-gradient(225deg, rgba(245,235,228,.3) 0%, transparent 50%);
}

.book__page-inner {
  flex: 1;
}

.book__category {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin: 12px 0 2px;
  letter-spacing: 0.03em;
}

.book__category:first-child {
  margin-top: 0;
}

.book__ornament {
  text-align: center;
  color: var(--color-border);
  font-size: 0.8rem;
  margin-bottom: 8px;
  letter-spacing: 6px;
}

.book__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Table header for price columns */
.book__col-header {
  display: flex;
  align-items: baseline;
  padding: 0 0 6px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--color-gold);
}

.book__col-header-spacer {
  flex: 1;
}

.book__col-label {
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 60px;
  text-align: right;
}

/* Dish row */
.book__dish {
  padding: 7px 0;
  border-bottom: 1px dotted rgba(212,184,184,.5);
}

.book__dish:last-child {
  border-bottom: none;
}

.book__dish-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.book__dish-name {
  font-family: var(--ff-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book__dish-dots {
  flex: 1;
  border-bottom: 1px dotted var(--color-brown-lt);
  margin-bottom: 3px;
  min-width: 12px;
}

.book__dish-price {
  font-family: var(--ff-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold);
  white-space: nowrap;
  width: 60px;
  text-align: right;
}

.book__dish-price--empty {
  color: var(--color-text-lt);
  opacity: 0.5;
  letter-spacing: 1px;
}

.book__dish-desc {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  color: var(--color-brown-lt);
  font-style: italic;
  margin-top: 1px;
  line-height: 1.3;
  padding-left: 4px;
}

.book__dish-unavailable {
  font-size: var(--fs-xs);
  color: var(--color-error);
  font-weight: 500;
  font-style: italic;
  padding-left: 4px;
}

.book__page-num {
  position: absolute;
  bottom: 20px;
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  color: var(--color-brown-lt);
}

.book__page--left .book__page-num { left: 36px; }
.book__page--right .book__page-num { right: 36px; }

/* ---- 3D Page flip overlay ---- */
.book__flip {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 3;
  transform-style: preserve-3d;
  pointer-events: none;
  display: none;
}

.book__flip-front,
.book__flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.book__flip-front {
  background: linear-gradient(90deg, #faf5f0, #f5ebe4);
  box-shadow: inset -8px 0 20px rgba(46,26,26,.06);
}

.book__flip-back {
  background: linear-gradient(270deg, #faf5f0, #f0e8e0);
  transform: rotateY(180deg);
  box-shadow: inset 8px 0 20px rgba(46,26,26,.06);
}

/* Forward flip: page turns from right to left */
.book__flip--forward {
  display: block;
  right: 0;
  transform-origin: left center;
  animation: flipForward 0.7s ease-in-out forwards;
}

/* Backward flip: page turns from left to right */
.book__flip--backward {
  display: block;
  left: 0;
  transform-origin: right center;
  animation: flipBackward 0.7s ease-in-out forwards;
}

@keyframes flipForward {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-180deg); }
}

@keyframes flipBackward {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

/* Shadow that follows the flip */
.book__flip--forward::after,
.book__flip--backward::after {
  content: '';
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
}

.book__flip--forward::after {
  right: 0;
  background: linear-gradient(to left, rgba(46,26,26,.12), transparent);
}

.book__flip--backward::after {
  left: 0;
  background: linear-gradient(to right, rgba(46,26,26,.12), transparent);
}

/* Navigation arrows */
.book__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: rgba(250,245,240,.9);
  color: var(--color-brown-mid);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.book__nav:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(250,245,240,1);
  box-shadow: 0 2px 12px rgba(139,26,43,.15);
}

.book__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.book__nav:disabled:hover {
  border-color: var(--color-border);
  color: var(--color-brown-mid);
  box-shadow: none;
}

.book__nav--prev { left: -8px; }
.book__nav--next { right: -8px; }

/* Page dots */
.book__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.book__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.book__dot:hover { border-color: var(--color-gold); }

.book__dot--active {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

/* Loading state inside book */
.book__loading {
  text-align: center;
  padding: 48px 0;
  color: var(--color-brown-lt);
  font-style: italic;
  font-family: var(--ff-body);
}

/* ---------- Galería / Carrusel ---------- */
.galeria { background: var(--color-bg); }

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.carousel__slide {
  min-width: 100%;
  position: relative;
}

.carousel__slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  image-rendering: auto;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carousel__nav:hover {
  background: rgba(255,255,255,.3);
}

.carousel__nav--prev { left: 16px; }
.carousel__nav--next { right: 16px; }

.carousel__counter {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(20,10,10,.6);
  color: rgba(255,252,248,.8);
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20,10,10,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  transform: scale(0.9);
  transition: transform .35s ease;
}

.lightbox--open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.lightbox__close:hover {
  background: rgba(255,255,255,.25);
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
  width: 100%;
  min-height: 240px;
  background:
    linear-gradient(135deg, #7a3040 0%, #5c1e2e 50%, #3a1520 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-img::before {
  content: attr(data-label);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,252,248,.6);
  text-align: center;
  letter-spacing: 1px;
}

.placeholder-img::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,252,248,.2);
  border-radius: 50%;
}

.placeholder-img--tall {
  min-height: 420px;
}

/* ---------- Reservas ---------- */
.reservas { background: var(--color-bg-alt); }

.reservas__form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form__group--full {
  margin-bottom: 28px;
}

.form__label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-brown);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,150,90,.15);
}

.form__input--error {
  border-color: var(--color-error);
}

.form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(155,59,59,.1);
}

.form__error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: 4px;
  min-height: 18px;
}

.form__textarea {
  resize: vertical;
  min-height: 80px;
}

.reservas__submit {
  width: 100%;
  padding: 16px;
  font-size: var(--fs-base);
}

.reservas__submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn__loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.reservas__feedback {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  text-align: center;
}

.reservas__feedback--success {
  background: #e8f5e9;
  color: var(--color-success);
  border: 1px solid #c8e6c9;
}

.reservas__feedback--error {
  background: #fbe9e7;
  color: var(--color-error);
  border: 1px solid #ffccbc;
}

/* ---------- Contacto ---------- */
.contacto { background: var(--color-bg); }

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
}

.contacto__info {
  background: var(--color-white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px -16px rgba(46, 26, 26, 0.18), 0 2px 8px -4px rgba(46, 26, 26, 0.08);
  border-top: 3px solid var(--color-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.contacto__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contacto__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(139, 26, 43, 0.08);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto__icon svg {
  width: 22px;
  height: 22px;
}

.contacto__row-body { flex: 1; min-width: 0; }

.contacto__row-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  color: var(--color-brown);
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.contacto__row p {
  color: var(--color-text-lt);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin: 0;
}

.contacto__row a {
  color: var(--color-text-lt);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contacto__row a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.contacto__divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-border), transparent);
  margin: 0 -8px;
}

.contacto__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}

.contacto__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: linear-gradient(180deg, #2a0e15 0%, #1d0810 100%);
  color: rgba(255, 252, 248, 0.65);
  padding: 72px 0 28px;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 26, 43, 0.18), transparent 70%);
  pointer-events: none;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 56px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.footer__col-title {
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer__col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.footer__col--brand .footer__logo {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1px;
  display: block;
}

.footer__tagline {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.85);
  margin-top: 6px;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 252, 248, 0.55);
  max-width: 320px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 252, 248, 0.6);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
  position: relative;
}

.footer__links a::before {
  content: "›";
  position: absolute;
  left: -14px;
  top: 0;
  opacity: 0;
  color: var(--color-gold);
  transition: opacity 0.25s ease;
}

.footer__links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.footer__links a:hover::before {
  opacity: 1;
}

.footer__contact,
.footer__hours {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__contact a {
  color: rgba(255, 252, 248, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact a:hover { color: var(--color-gold); }

.footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 252, 248, 0.08);
}

.footer__hours li:last-of-type { border-bottom: 0; }

.footer__hours li span:first-child {
  color: rgba(255, 252, 248, 0.55);
}

.footer__hours li span:last-child {
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.06);
  color: rgba(255, 252, 248, 0.75);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.footer__social a:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 252, 248, 0.12), transparent);
  margin-bottom: 24px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 252, 248, 0.4);
  position: relative;
  z-index: 1;
}

.footer__copy { margin: 0; }

.footer__legal-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.footer__legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal-links a:hover { color: var(--color-gold); }

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer { padding: 56px 0 24px; }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }
  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Scroll animations ---------- */
.anim-fade,
.anim-slide {
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
}

.anim-fade {
  transform: translateY(20px);
}

.anim-slide {
  transform: translateY(40px);
}

.anim-fade.is-visible,
.anim-slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger hero elements */
.hero .anim-fade:nth-child(1) { transition-delay: .1s; }
.hero .anim-fade:nth-child(2) { transition-delay: .3s; }
.hero .anim-fade:nth-child(3) { transition-delay: .5s; }
.hero .anim-fade:nth-child(4) { transition-delay: .7s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nosotros__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nosotros__image { order: -1; }

  .nosotros__image::before {
    inset: 10px -8px -8px 10px;
    opacity: 0.4;
  }

  .contacto__grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: var(--fs-xl);
  }

  /* Mobile nav */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(250,245,245,.98);
    backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform .4s ease;
  }

  .header__nav--open {
    transform: translateX(0);
  }

  /* Form */
  .form__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reservas__form {
    padding: 28px 20px;
  }

  /* Carousel mobile */
  .carousel__slide img {
    height: 320px;
  }

  .carousel__nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .carousel__nav--prev { left: 8px; }
  .carousel__nav--next { right: 8px; }

  /* Mobile nav links: dark text inside mobile menu panel */
  .header__link {
    color: var(--color-brown-mid);
    font-size: var(--fs-lg);
  }

  .header__link:hover {
    color: var(--color-gold);
  }

  .lang-switcher__btn {
    border-color: var(--color-border);
    color: var(--color-brown-mid);
  }

  /* Book responsive — single column, no book look */
  .book-wrapper { padding: 0 12px; }

  .book {
    flex-direction: column;
    height: auto;
    min-height: auto;
    background: #faf5f0;
    border-radius: 12px;
    max-width: 100%;
    margin: 0 auto;
    perspective: none;
    box-shadow: 0 2px 16px rgba(46,26,26,.1);
  }

  .book__spine { display: none; }
  .book__flip { display: none !important; }

  .book__page {
    padding: 24px 18px 40px;
  }

  .book__page--right {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
  }

  .book__page--right:empty,
  .book__page--right:not(:has(.book__dish)) {
    display: none;
  }

  .book__category { font-size: 1.3rem; }
  .book__ornament { margin-bottom: 16px; }

  .book__dish-name { font-size: 0.82rem; }
  .book__dish-price { font-size: 0.78rem; width: 50px; }
  .book__col-label { font-size: 0.6rem; width: 50px; }

  .book__nav { width: 36px; height: 36px; font-size: 0.9rem; }
  .book__nav--prev { left: -6px; }
  .book__nav--next { right: -6px; }

  .book__dots { margin-top: 20px; }

  /* Language switcher in mobile nav */
  .lang-switcher { margin-left: 0; margin-top: 8px; }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 16px;
  }
}

/* ---------- WhatsApp Widget ---------- */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}

.wa-widget:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55), 0 6px 14px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.wa-widget__icon {
  width: 32px;
  height: 32px;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 4px 10px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 480px) {
  .wa-widget {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  .wa-widget__icon {
    width: 28px;
    height: 28px;
  }
}
