/* ================================================================
   NEO BODEGA EL QUIJOTE — Estilos principales
   Paleta: Dorado (#C9A84C), Oscuro (#1A1A1A), Crema (#F5F0E8)
   ================================================================ */

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

:root {
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --gold-dark:   #A07830;
  --dark:        #1A1A1A;
  --dark-2:      #2A2A2A;
  --dark-3:      #3A3A3A;
  --cream:       #F5F0E8;
  --cream-dark:  #EDE5D4;
  --white:       #FFFFFF;
  --gray-1:      #F8F8F8;
  --gray-2:      #EFEFEF;
  --gray-3:      #CCCCCC;
  --gray-4:      #999999;
  --text:        #333333;
  --text-light:  #666666;
  --success:     #4CAF50;
  --error:       #E53935;

  --ff-serif:    'Playfair Display', Georgia, serif;
  --ff-sans:     'Lato', Arial, sans-serif;

  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 8px 30px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.18);
  --shadow-gold: 0 4px 20px rgba(201,168,76,.35);

  --radius:      8px;
  --radius-lg:   16px;
  --transition:  .3s cubic-bezier(.4,0,.2,1);

  --nav-h:       80px;
  --container:   1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- TIPOGRAFÍA ---------- */
h1,h2,h3,h4 { font-family: var(--ff-serif); line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
em { font-style: italic; color: var(--gold); }
strong { font-weight: 700; }

/* ---------- UTILIDADES ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--ff-sans); font-size: .95rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold); color: var(--dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- SECTION HEADER ---------- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-family: var(--ff-sans); font-size: .8rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 20px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 60px; height: 3px; background: var(--gold);
  margin: 0 auto 20px;
  position: relative;
}
.section-divider::before, .section-divider::after {
  content: ''; position: absolute; top: 0;
  width: 8px; height: 3px; background: var(--gold-dark);
}
.section-divider::before { left: -12px; }
.section-divider::after  { right: -12px; }

/* ================================================================
   AVISO DE COOKIES
================================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--dark-2);
  border-top: 2px solid var(--gold);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner.hidden  { display: none; }
.cookie-content {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-text { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 260px; }
.cookie-icon { color: var(--gold); font-size: 1.5rem; margin-top: 2px; flex-shrink: 0; }
.cookie-text p { color: var(--gray-3); font-size: .875rem; line-height: 1.5; }
.cookie-link { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cookie {
  padding: 9px 20px; border-radius: var(--radius); font-size: .85rem;
  font-weight: 700; letter-spacing: .3px; transition: all var(--transition);
}
.btn-cookie-reject  { background: transparent; color: var(--gray-3); border: 1px solid var(--gray-4); }
.btn-cookie-reject:hover  { border-color: var(--gray-3); color: var(--white); }
.btn-cookie-config  { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-cookie-config:hover  { background: rgba(201,168,76,.1); }
.btn-cookie-accept  { background: var(--gold); color: var(--dark); border: 1px solid var(--gold); }
.btn-cookie-accept:hover  { background: var(--gold-light); }

/* ================================================================
   HEADER / NAV
================================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.header.scrolled {
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  height: 68px;
}
.nav {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 52px; width: auto; transition: height var(--transition); }
.header.scrolled .nav-logo-img { height: 44px; }
.nav-menu {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  padding: 8px 16px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--white); transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-admin { font-size: .8rem; padding: 8px 14px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; z-index: 10;
}
.hamburger {
  width: 26px; height: 2px; background: var(--white);
  transition: all var(--transition); border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,.75) 0%, rgba(26,26,26,.45) 60%, rgba(26,26,26,.65) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-subtitle {
  font-size: .9rem; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px;
}
.hero-title {
  color: var(--white); margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.hero-title em { color: var(--gold-light); }
.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88); max-width: 600px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  color: var(--white); padding: 8px 18px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; border: 1px solid rgba(255,255,255,.2);
}
.badge i { color: var(--gold-light); }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%; color: var(--white);
  animation: bounce 2s infinite;
  transition: border-color var(--transition);
}
.scroll-indicator:hover { border-color: var(--gold); color: var(--gold); }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* Animaciones hero */
.animate-fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp .8s ease forwards; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
.delay-4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   NOSOTROS
================================================================ */
.nosotros { background: var(--cream); }
.nosotros-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.nosotros-lead {
  font-size: 1.15rem; color: var(--dark); font-weight: 400;
  margin-bottom: 20px; line-height: 1.7;
}
.nosotros-text p { color: var(--text-light); margin-bottom: 16px; }
.nosotros-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--white); border-radius: var(--radius);
  border-left: 3px solid var(--gold); box-shadow: var(--shadow-sm);
}
.feature-item i {
  font-size: 1.3rem; color: var(--gold); margin-top: 2px; flex-shrink: 0;
}
.feature-item strong { display: block; font-size: .9rem; color: var(--dark); }
.feature-item span { font-size: .8rem; color: var(--text-light); }
.nosotros-image { position: relative; }
.image-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  position: relative;
}
.image-frame img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.image-frame:hover img:first-child { transform: scale(1.04); }

/* Overlay con logo — fuera del frame para no recortarse */
.image-logo-overlay {
  position: absolute;
  /* Coincide exactamente con el área del image-frame */
  top: 0; left: 0; right: 0;
  /* Calcula la altura igual al aspect-ratio 4/3 del frame */
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,26,26,.38);
  pointer-events: none;
  transition: background var(--transition);
}
.nosotros-image:hover .image-logo-overlay { background: rgba(26,26,26,.26); }

.overlay-logo {
  width: 28%; max-width: 130px; min-width: 70px;
  height: auto; object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.7)) brightness(1.1);
  transition: transform .5s ease;
  display: block;
}
.nosotros-image:hover .overlay-logo { transform: scale(1.05); }
.image-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--gold); color: var(--dark);
  padding: 20px 24px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-gold);
}
.image-badge i { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.image-badge span { font-size: .85rem; font-weight: 700; display: block; line-height: 1.3; }

/* ================================================================
   HORARIOS FRANJA
================================================================ */
.horarios-franja {
  background: var(--dark);
  padding: 40px 0;
}
.horarios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; 
}
.horario-item {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 32px; color: var(--white);
  border-right: 1px solid rgba(255,255,255,.08);
}
.horario-item:last-child { border-right: none; }
.horario-item i { font-size: 1.6rem; color: var(--gold); flex-shrink: 0; }
.horario-item strong { display: block; font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.horario-item span, .horario-item a { color: var(--gray-3); font-size: .95rem; }
.horario-item a:hover { color: var(--gold); }
.horario-closed strong { color: var(--gray-4); }
.horario-closed span  { color: var(--gray-4); }
.horario-closed i     { color: var(--gray-4); }

/* ================================================================
   CARTA
================================================================ */
.carta-section { background: var(--white); }
.carta-filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px; border-radius: 50px;
  font-size: .8rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  border: 2px solid var(--gray-2); color: var(--text-light);
  transition: all var(--transition);
}
.filter-btn:hover  { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--dark); box-shadow: var(--shadow-gold); }

.carta-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; margin-bottom: 60px;
}
.plato-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-2); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.plato-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plato-card-img {
  width: 100%; aspect-ratio: 16/9; background: var(--gray-1);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* Imagen real del plato */
.plato-card-img-real {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-1);
}
.plato-card-img-real img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.plato-card:hover .plato-card-img-real img { transform: scale(1.06); }
/* Imagen por defecto = logotipo centrado */
.plato-card-img-default {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.plato-card-img-default img {
  width: 80px; height: 80px; object-fit: contain;
  opacity: .55; filter: brightness(1.4);
  transition: opacity .3s ease, transform .3s ease;
}
.plato-card:hover .plato-card-img-default img { opacity: .75; transform: scale(1.08); }
.plato-card-img i { font-size: 3rem; color: var(--gray-3); }
.plato-card-body { padding: 20px; }
.plato-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.plato-card-name {
  font-family: var(--ff-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--dark); line-height: 1.3;
}
.plato-card-price {
  font-size: 1.1rem; font-weight: 700; color: var(--gold);
  white-space: nowrap; flex-shrink: 0;
  font-family: var(--ff-serif);
}
.plato-card-desc {
  font-size: .875rem; color: var(--text-light); line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plato-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.plato-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: .7rem; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
}
.plato-tag-vegan   { background: rgba(76,175,80,.1); color: #2e7d32; }
.plato-tag-vegeta  { background: rgba(129,199,132,.1); color: #388e3c; }
.plato-tag-gluten  { background: rgba(255,152,0,.1); color: #e65100; }
.plato-tag-new     { background: rgba(201,168,76,.15); color: var(--gold-dark); }
.plato-tag-popular { background: rgba(233,30,99,.1); color: #c2185b; }
.plato-alergenos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.alergeno-img {
  width: 28px; height: 28px; object-fit: contain;
  filter: grayscale(20%); transition: filter var(--transition), transform var(--transition);
  border-radius: 4px;
}
.alergeno-img:hover { filter: none; transform: scale(1.2); }

/* Alérgenos leyenda */
.alergenos-leyenda {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 36px 40px; border: 1px solid var(--cream-dark);
}
.alergenos-title {
  font-family: var(--ff-serif); font-size: 1.2rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; color: var(--dark);
}
.alergenos-title i { color: var(--gold); }
.alergenos-desc { color: var(--text-light); font-size: .875rem; margin-bottom: 24px; }
.alergenos-grid {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.alergeno-leyenda-item {
  display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text);
}
.alergeno-leyenda-item img { width: 32px; height: 32px; object-fit: contain; }

/* ================================================================
   SERVICIOS
================================================================ */
.servicios-section { background: var(--cream); }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.servicio-card {
  background: var(--white); padding: 40px 32px; border-radius: var(--radius-lg);
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}
.servicio-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}
.servicio-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.6rem; color: var(--dark);
}
.servicio-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--dark); }
.servicio-card p  { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ================================================================
   GALERÍA FRANJA
================================================================ */
.galeria-franja {
  position: relative; height: 420px; overflow: hidden;
}
.galeria-track {
  display: flex; height: 100%;
}
.galeria-item {
  flex: 1; background-size: cover; background-position: center;
  transition: flex .6s ease;
}
.galeria-item:hover { flex: 2; }
.galeria-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,26,.5);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.galeria-quote { text-align: center; color: var(--white); padding: 0 24px; }
.galeria-quote p {
  font-family: var(--ff-serif); font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.galeria-quote cite { font-size: .9rem; color: var(--gold-light); letter-spacing: 1px; }

/* ================================================================
   CONTACTO
================================================================ */
.contacto-section { background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.contacto-info { display: flex; flex-direction: column; gap: 28px; }
.contacto-item { display: flex; align-items: flex-start; gap: 16px; }
.contacto-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-size: 1rem; flex-shrink: 0;
}
.contacto-item strong { display: block; font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dark); margin-bottom: 4px; }
.contacto-item a, .contacto-item address, .contacto-item p { color: var(--text-light); font-size: .95rem; }
.contacto-item a:hover { color: var(--gold); }

.horario-list { margin-top: 8px; }
.horario-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--gray-2);
  font-size: .875rem; color: var(--text-light);
}
.horario-list li.closed { color: var(--gray-3); }
.horario-list li span:first-child { font-weight: 600; color: var(--text); }

/* Formulario */
.contacto-form-wrap {
  grid-column: 2;
}
.contacto-form { background: var(--cream); padding: 40px; border-radius: var(--radius-lg); }
.contacto-form h3 { font-family: var(--ff-serif); font-size: 1.4rem; margin-bottom: 24px; color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--text); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius);
  border: 2px solid var(--gray-2); background: var(--white);
  font-family: var(--ff-sans); font-size: .95rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-error { display: block; font-size: .78rem; color: var(--error); margin-top: 4px; min-height: 18px; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
}
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; cursor: pointer; }
.form-check label { font-size: .85rem; color: var(--text-light); cursor: pointer; }
.form-check label a { color: var(--gold); text-decoration: underline; }
.form-success {
  display: flex; align-items: center; gap: 10px;
  background: rgba(76,175,80,.1); border: 1px solid var(--success);
  color: #2e7d32; padding: 14px 18px; border-radius: var(--radius);
  margin-top: 16px; font-weight: 600;
}
.form-success i { font-size: 1.2rem; }

.contacto-mapa { grid-column: 1 / -1; margin-top: 20px; }
.contacto-mapa iframe { border-radius: var(--radius-lg); display: block; }

/* ================================================================
   FOOTER
================================================================ */
.footer { background: var(--dark); color: var(--gray-3); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 60px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 20px; filter: brightness(1.1); }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: var(--gray-4); margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark-3); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3); font-size: .95rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); transform: translateY(-3px); }
.social-whatsapp:hover { background: #25D366; border-color: #25D366; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--ff-serif); font-size: 1rem; color: var(--white);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--gray-4); font-size: .875rem; transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--gold); }
.footer-contact address p {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: var(--gray-4); margin-bottom: 12px;
}
.footer-contact address i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-contact address a { color: var(--gray-4); transition: color var(--transition); }
.footer-contact address a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--gray-4);
}
.footer-credits i { color: #E53935; }

/* ================================================================
   WHATSAPP FLOTANTE
================================================================ */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--white);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: all var(--transition);
  animation: pulse-wa 3s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 10px 32px rgba(37,211,102,.6);
  animation: none;
}
.whatsapp-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: var(--white);
  padding: 8px 14px; border-radius: var(--radius); font-size: .8rem; font-weight: 600;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--transition);
  box-shadow: var(--shadow-sm);
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; top: 50%; right: -6px; transform: translateY(-50%);
  border: 6px solid transparent; border-right: none; border-left-color: var(--dark);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes pulse-wa {
  0%   { box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ================================================================
   MODAL
================================================================ */
.modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
}
.modal-content {
  position: relative; background: var(--white);
  border-radius: var(--radius-lg); max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(20px); } to { opacity:1; transform:none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; background: var(--gray-1);
  font-size: 1.4rem; color: var(--text); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--dark); color: var(--white); }
.modal-plato-img {
  width: 100%; aspect-ratio: 16/9; background: var(--gray-1);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}
.modal-plato-img i { font-size: 4rem; color: var(--gray-3); }
/* Imagen real en modal */
.modal-plato-img-real {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--gray-1);
}
.modal-plato-img-real img { width: 100%; height: 100%; object-fit: cover; }
/* Logotipo por defecto en modal */
.modal-plato-img-default {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}
.modal-plato-img-default img {
  width: 110px; height: 110px; object-fit: contain;
  opacity: .5; filter: brightness(1.4);
}
.modal-plato-body { padding: 32px; }
.modal-plato-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.modal-plato-name { font-family: var(--ff-serif); font-size: 1.5rem; color: var(--dark); }
.modal-plato-price { font-family: var(--ff-serif); font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.modal-plato-desc { color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.modal-plato-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.modal-alergenos-title { font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.modal-alergenos { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-alergeno-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.modal-alergeno-item img { width: 36px; height: 36px; object-fit: contain; }
.modal-alergeno-item span { font-size: .65rem; color: var(--text-light); text-align: center; }
.modal-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: var(--white); padding: 14px 24px;
  border-radius: var(--radius); font-weight: 700; font-size: .95rem;
  margin-top: 24px; text-decoration: none; transition: all var(--transition);
}
.modal-wa-btn:hover { background: #1da851; transform: translateY(-2px); }

/* ================================================================
   ANIMACIONES DE SCROLL (IntersectionObserver)
================================================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-image { order: -1; }
  .image-badge { bottom: -10px; left: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .contacto-form-wrap { grid-column: 1; }
  .horarios-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .section { padding: 72px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: min(320px, 80vw); height: 100vh;
    background: var(--dark-2); flex-direction: column;
    align-items: flex-start; justify-content: flex-start;
    padding: calc(var(--nav-h) + 24px) 32px 32px;
    gap: 4px; transition: right .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-link { width: 100%; padding: 14px 16px; font-size: 1rem; }
  .nav-link::after { display: none; }

  /* Hero */
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-badges { gap: 8px; }
  .badge { font-size: .75rem; padding: 6px 14px; }

  /* Horarios */
  .horarios-grid { grid-template-columns: 1fr 1fr; }
  .horario-item { padding: 16px 20px; }

  /* Carta */
  .carta-grid { grid-template-columns: 1fr; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr; }

  /* Nosotros features */
  .nosotros-features { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Galería */
  .galeria-franja { height: 280px; }
  .galeria-quote p { font-size: 1.1rem; }

  /* Formulario */
  .form-row { grid-template-columns: 1fr; }
  .contacto-form { padding: 24px; }

  /* Alérgenos */
  .alergenos-leyenda { padding: 24px; }

  /* WhatsApp */
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .horarios-grid { grid-template-columns: 1fr; }
  .horario-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .horario-item:last-child { border-bottom: none; }
  .carta-filters { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: .75rem; }
  .section-header { margin-bottom: 40px; }
  .cookie-content { flex-direction: column; }
}

/* ================================================================
   ACCESIBILIDAD
================================================================ */
:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================
   SCROLL BAR
================================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
