/* ═══════════════════════════════════════════
   LA DAMASQUINA – STYLESHEET
   Estilo: Refinado · Gastronómico · Mediterráneo
═══════════════════════════════════════════ */

/* ─── CSS VARIABLES ───────────────────────── */
:root {
  --orange:        #E8621A;
  --orange-light:  #F07632;
  --orange-dark:   #C44E0E;
  --orange-pale:   #FDF0E8;
  --cream:         #FAF6F1;
  --sand:          #F2EAE0;
  --brown-dark:    #2A1A0E;
  --brown-mid:     #5C3D22;
  --text-main:     #1E1209;
  --text-mid:      #5A3E28;
  --text-light:    #9A7B5E;
  --white:         #FFFFFF;
  --border:        rgba(92, 61, 34, 0.15);

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', sans-serif;

  --nav-h:         72px;
  --radius:        4px;
  --radius-lg:     12px;
  --shadow:        0 2px 24px rgba(30, 18, 9, 0.10);
  --shadow-hover:  0 8px 40px rgba(30, 18, 9, 0.18);
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SCROLLBAR ───────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ═══════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(250, 246, 241, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(30, 18, 9, 0.10);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.nav-logo { flex: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
#header.scrolled .logo-text { color: var(--orange); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding-bottom: 2px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--orange-light);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }
#header.scrolled .nav-link { color: var(--text-mid); }
#header.scrolled .nav-link:hover { color: var(--orange); }
#header.scrolled .nav-link::after { background: var(--orange); }

/* Botón reserva */
.btn-reserva {
  display: inline-block;
  padding: 10px 22px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-reserva:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 98, 26, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
#header.scrolled .hamburger span { background: var(--brown-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  padding: 24px;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(30,18,9,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.mobile-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.mobile-reserva { display: block; text-align: center; }

/* ═══════════════════════════════════════════
   HERO / CAROUSEL
═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Carousel */
.carousel,
.carousel-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 10, 3, 0.55) 0%,
    rgba(20, 10, 3, 0.30) 50%,
    rgba(20, 10, 3, 0.65) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 760px;
}

.hero-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 98, 26, 0.45);
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  transition: all var(--transition);
}
.dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 4px;
}

/* Scroll down arrow */
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.7);
  animation: bounce 2s ease infinite;
}
.scroll-down svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════
   STRIP DECORATIVO
═══════════════════════════════════════════ */
.strip {
  background: var(--orange);
  color: var(--white);
  padding: 14px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow: hidden;
}
.strip span { white-space: nowrap; }

/* ═══════════════════════════════════════════
   MENÚ / CARTA
═══════════════════════════════════════════ */
.menu-section {
  background: var(--cream);
  padding: 96px 0 80px;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--brown-dark);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto;
  font-weight: 300;
}
.section-header.light .section-title { color: var(--white); }
.section-header.light .section-desc  { color: rgba(255,255,255,0.7); }
.section-header.light .section-label { color: rgba(255,200,140,0.9); }

/* Tabs */
.menu-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 9px 18px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  transition: all var(--transition);
  background: transparent;
}
.tab-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.tab-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Tab content */
.menu-tab-content { display: none; }
.menu-tab-content.active { display: block; }

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Menu card */
.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.menu-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.menu-card.featured {
  border-color: var(--orange);
  background: linear-gradient(135deg, #FFF8F3 0%, #FFFFFF 100%);
}
.menu-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.menu-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.2;
}
.price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}
.menu-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.tag.veg   { background: #EEF7EE; color: #2E7D32; }
.tag.share { background: #FFF3E0; color: #E65100; }
.tag.chef  { background: var(--orange); color: var(--white); }

/* Shawarma banner */
.shawarma-banner {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.shawarma-banner p {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.95;
}
.shawarma-banner strong { font-weight: 500; }
.big-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
}

/* Allergen note */
.allergen-note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   GALERÍA
═══════════════════════════════════════════ */
.gallery-section {
  background: var(--sand);
  padding: 96px 0 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
  filter: brightness(0.96);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

/* Primera foto más grande (ocupa 2 columnas y 2 filas) */
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ═══════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════ */
.contact-section {
  background: var(--brown-dark);
  padding: 96px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--orange-light);
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}
.contact-link { transition: color var(--transition); }
.contact-link:hover { color: var(--orange-light); }

/* WhatsApp button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25D366;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-top: 8px;
  align-self: flex-start;
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover {
  background: #1ebe59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Map */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  height: 420px;
}
.map-container iframe {
  width: 100%; height: 100%;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #1A0F07;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--orange-light);
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.75rem;
}
.footer-links a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange-light); }
.footer-links span { color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-reserva:not(.mobile-reserva) { display: none; }
  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-container { height: 300px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; }

  .shawarma-banner {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta { flex-direction: column; align-items: center; }

  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }

  .tab-btn { font-size: 0.65rem; padding: 8px 12px; }

  .strip { gap: 6px 12px; font-size: 0.62rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.8rem; }
  .container { padding: 0 16px; }
}
