/* ═══════════════════════════════════════════════════════════════
   LA SAZÓN DE TLALPAN - DESIGN SYSTEM
   Folk Art Elegance | Mexican Restaurant Website
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream: #FDF6E9;
  --cream-dark: #F5EBD8;
  --terracotta: #C45D3E;
  --terracotta-deep: #A84832;
  --rust: #8B3A2F;
  --gold: #D4A84B;
  --gold-copper: #C9963F;
  --sage: #7D8B6A;
  --sage-light: #9AAB8A;
  --charcoal: #2D2926;
  --charcoal-light: #3D3835;
  --warm-brown: #5C4033;
  --warm-brown-light: #7A5D4A;
  --sage-dark: #5A6B4A;
  --blush: #E8B4A0;

  /* Atmosphere system */
  --atmosphere-bg: var(--cream);
  --atmosphere-surface: white;
  --atmosphere-accent: var(--terracotta);
  --atmosphere-glow: rgba(212,168,75,0.12);

  /* Depth tokens */
  --shadow-ambient: 0 4px 20px rgba(45,41,38,0.06);
  --shadow-alcove: inset 0 2px 8px rgba(45,41,38,0.04), inset 0 -1px 3px rgba(45,41,38,0.02);
  --shadow-candle: 0 0 40px rgba(212,168,75,0.08), 0 0 80px rgba(196,93,62,0.04);
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background:
    /* Layer 1: Uneven sun-bleached plaster */
    radial-gradient(ellipse at 30% 20%, rgba(255,252,245,1) 0%, rgba(253,246,233,1) 40%, rgba(248,235,215,1) 100%),
    /* Layer 2: Large-scale plaster undulation via SVG turbulence */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    /* Layer 3: Micro-grain noise */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 400px 400px, 256px 256px;
  background-blend-mode: normal, multiply, multiply;
  background-attachment: fixed;
  color: var(--charcoal);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle texture overlay — kept as global noise veil (reduced from body::before) */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-3px); }
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.85; }
}

@keyframes hearthReveal {
  from { opacity: 0; transform: scale(0.92); filter: brightness(3); }
  to { opacity: 1; transform: scale(1); filter: brightness(1); }
}

@keyframes picado-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  20% { transform: rotate(2deg) translateY(-4px); }
  40% { transform: rotate(-2.5deg) translateY(-2px); }
  60% { transform: rotate(3.5deg) translateY(-5px); }
  80% { transform: rotate(-1.5deg) translateY(-1px); }
}

@keyframes candle-flicker {
  0%, 100% { box-shadow: 0 0 40px rgba(212,168,75,0.06), 0 0 80px rgba(196,93,62,0.03); }
  50% { box-shadow: 0 0 50px rgba(212,168,75,0.12), 0 0 100px rgba(196,93,62,0.06); }
}

@keyframes float-ambient {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-6px); }
  75% { transform: translateY(4px); }
}

@keyframes medallion-breathe {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}

@keyframes weaveIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   PAPEL PICADO - IMAGE-BASED
   ═══════════════════════════════════════════════════════════════ */

.papel-picado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.papel-string {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(180deg,
    var(--charcoal) 0%,
    var(--charcoal-light) 50%,
    var(--charcoal) 100%
  );
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.picado-flag {
  width: 75px;
  height: auto;
  margin-top: 7px;
  animation: sway 4s ease-in-out infinite;
  transform-origin: top center;
}

.picado-flag:nth-child(odd) { animation-delay: -1.5s; }
.picado-flag:nth-child(even) { animation-delay: -0.3s; }

.picado-flag img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.15));
}

/* ═══════════════════════════════════════════════════════════════
   DECORATIVE CORNER ORNAMENTS
   ═══════════════════════════════════════════════════════════════ */

.corner-ornament {
  position: fixed;
  width: 90px;
  height: 90px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 50;
}

.corner-ornament.top-left {
  top: 100px; left: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23D4A84B' stroke-width='1.2'%3E%3Ccircle cx='45' cy='45' r='35'/%3E%3Ccircle cx='45' cy='45' r='28'/%3E%3Cpath d='M20 45 Q32 25 45 45 T70 45'/%3E%3Cpath d='M45 20 Q65 32 45 45 T45 70'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

.corner-ornament.top-right {
  top: 100px; right: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23C45D3E' stroke-width='1.2'%3E%3Cpath d='M45 10 L55 35 L80 35 L60 52 L68 78 L45 62 L22 78 L30 52 L10 35 L35 35Z' opacity='0.6'/%3E%3Ccircle cx='45' cy='45' r='15'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

.corner-ornament.bottom-left {
  bottom: 24px; left: 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%237D8B6A' stroke-width='1.2'%3E%3Ccircle cx='45' cy='45' r='30'/%3E%3Cpath d='M25 25 L45 45 L25 65'/%3E%3Cpath d='M65 25 L45 45 L65 65'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

.corner-ornament.bottom-right {
  bottom: 24px; right: 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%238B3A2F' stroke-width='1.2'%3E%3Ccircle cx='45' cy='45' r='24'/%3E%3Ccircle cx='45' cy='45' r='38' opacity='0.5'/%3E%3Cpath d='M20 45 L45 20 L70 45 L45 70 Z' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 101;
  gap: 5px;
  transition: all 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle:hover { background: var(--terracotta-deep); }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav {
  position: fixed;
  top: 62px;
  left: 0;
  width: 100%;
  background: rgba(253,246,233,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 90;
  padding: 10px 32px;
  display: flex;
  justify-content: center;
  gap: 36px;
  box-shadow: 0 2px 20px rgba(45,41,38,0.04);
  border-bottom: 1px solid rgba(212,168,75,0.2);
}

nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--warm-brown);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 6px 4px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover { color: var(--terracotta); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--terracotta); }
nav a.active::after { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--rust) 100%);
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 6px 25px rgba(196,93,62,0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(196,93,62,0.4);
}
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,0.45);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: white;
  color: var(--charcoal);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--terracotta);
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid var(--terracotta);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,93,62,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (for sub-pages)
   ═══════════════════════════════════════════════════════════════ */

.page-header {
  text-align: center;
  padding: 110px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.3s forwards;
}

.page-header h1 .accent { color: var(--terracotta); }

.page-header p {
  font-size: 1.1rem;
  color: var(--warm-brown);
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

/* ═══════════════════════════════════════════════════════════════
   DECORATIVE DIVIDERS
   ═══════════════════════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 60px auto;
  max-width: 400px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-copper), transparent);
}

.divider-icon {
  color: var(--gold);
  width: 24px;
  height: 24px;
}

.tile-pattern-bar {
  height: 8px;
  background:
    repeating-linear-gradient(90deg, var(--terracotta) 0px, var(--terracotta) 30px, transparent 30px, transparent 35px),
    repeating-linear-gradient(0deg, var(--gold-copper) 0px, var(--gold-copper) 1px, transparent 1px, transparent 30px);
  opacity: 0.15;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PULL QUOTE
   ═══════════════════════════════════════════════════════════════ */

.pull-quote {
  background: linear-gradient(135deg, rgba(212,168,75,0.08) 0%, rgba(196,93,62,0.05) 100%);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 40px 0;
  position: relative;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
  width: 100%;
  padding: 70px 24px 30px;
  text-align: center;
  background: linear-gradient(to bottom, var(--cream), var(--cream-dark));
  border-top: 1px solid rgba(45,41,38,0.08);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 57px;
  height: 57px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.25);
  opacity: 0.5;
  background: url('pics/lugar/roundlogo.png') center/contain no-repeat;
  background-color: var(--cream);
  z-index: 1;
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--sage));
  border-radius: 0 0 3px 3px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--warm-brown);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--terracotta); }

footer p {
  font-size: 0.85rem;
  color: var(--warm-brown-light);
  letter-spacing: 0.5px;
}

footer a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover { color: var(--rust); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - SHARED BASE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  nav.open { transform: translateX(0); }

  nav a {
    font-size: 1.2rem;
    letter-spacing: 2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    color: var(--cream);
  }

  nav.open a { opacity: 1; transform: translateX(0); }
  nav.open a:nth-child(1) { transition-delay: 0.1s; }
  nav.open a:nth-child(2) { transition-delay: 0.15s; }
  nav.open a:nth-child(3) { transition-delay: 0.2s; }
  nav.open a:nth-child(4) { transition-delay: 0.25s; }
  nav.open a:nth-child(5) { transition-delay: 0.3s; }

  .picado-flag { width: 65px; }
  .papel-picado .picado-flag:nth-child(4n+3),
  .papel-picado .picado-flag:nth-child(4n+4) { display: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 40px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  nav.open { transform: translateX(0); }

  nav a {
    font-size: 1.4rem;
    letter-spacing: 2px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    color: var(--cream);
  }

  nav.open a { opacity: 1; transform: translateX(0); }
  nav.open a:nth-child(1) { transition-delay: 0.1s; }
  nav.open a:nth-child(2) { transition-delay: 0.15s; }
  nav.open a:nth-child(3) { transition-delay: 0.2s; }
  nav.open a:nth-child(4) { transition-delay: 0.25s; }
  nav.open a:nth-child(5) { transition-delay: 0.3s; }

  .corner-ornament { display: none; }
}

@media (max-width: 480px) {
  .picado-flag { width: 55px; }
  .papel-picado .picado-flag:nth-child(3n+2) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HACIENDA SURFACE UTILITY
   ═══════════════════════════════════════════════════════════════ */

.hacienda-surface {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(253,241,230,0.97) 40%, rgba(245,232,215,0.97)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply;
}

/* ═══════════════════════════════════════════════════════════════
   GRECA ESCALONADA (Stepped Fret) Band
   ═══════════════════════════════════════════════════════════════ */

.greca-band {
  width: 100%;
  height: 32px;
  margin: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='80' height='32' viewBox='0 0 80 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16 L4 16 L4 24 L8 24 L8 16 L12 16 L12 12 L16 12 L16 8 L20 8 L20 12 L24 12 L24 16 L28 16 L28 24 L32 24 L32 16 L36 16 L36 12 L40 12 L40 8 L44 8 L44 12 L48 12 L48 16 L52 16 L52 24 L56 24 L56 16 L60 16 L60 12 L64 12 L64 8 L68 8 L68 12 L72 12 L72 16 L76 16 L76 24 L80 24' stroke='%23C45D3E' stroke-width='1.2' fill='none' opacity='0.35' stroke-linejoin='miter'/%3E%3C/svg%3E") repeat-x center;
  background-size: 80px 32px;
}

/* ═══════════════════════════════════════════════════════════════
   TALAVERA COLOR BAND
   ═══════════════════════════════════════════════════════════════ */

.talavera-band {
  height: 12px;
  background: repeating-linear-gradient(90deg,
    var(--terracotta) 0px,
    var(--terracotta) 16px,
    var(--gold) 16px,
    var(--gold) 20px,
    var(--sage) 20px,
    var(--sage) 28px,
    var(--gold) 28px,
    var(--gold) 32px,
    var(--rust) 32px,
    var(--rust) 40px,
    var(--gold) 40px,
    var(--gold) 44px,
    var(--blush) 44px,
    var(--blush) 48px
  );
  opacity: 0.2;
  border-top: 1px solid rgba(212,168,75,0.35);
  border-bottom: 1px solid rgba(212,168,75,0.35);
}

/* ═══════════════════════════════════════════════════════════════
   DIAMOND TILE PATTERN (CSS-Only)
   ═══════════════════════════════════════════════════════════════ */

.diamond-tile-bg {
  position: relative;
}

.diamond-tile-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, var(--terracotta) 0px, var(--terracotta) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(-45deg, var(--terracotta) 0px, var(--terracotta) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(-45deg, var(--gold) 0px, var(--gold) 1px, transparent 1px, transparent 30px),
    radial-gradient(circle at 15px 15px, var(--terracotta) 2px, transparent 2px),
    radial-gradient(circle at 45px 45px, var(--gold) 2px, transparent 2px);
  background-position: 0 0, 0 0, 15px 0, 15px 0, 0 0, 15px 15px;
  background-size: 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px, 30px 30px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FLORAL QUATREFOIL SVG PATTERN
   ═══════════════════════════════════════════════════════════════ */

.floral-quatrefoil {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.12'%3E%3Ccircle cx='40' cy='40' r='12' fill='none' stroke='%23C45D3E' stroke-width='0.8'/%3E%3Ccircle cx='40' cy='15' r='8' fill='none' stroke='%23D4A84B' stroke-width='0.6'/%3E%3Ccircle cx='40' cy='65' r='8' fill='none' stroke='%23D4A84B' stroke-width='0.6'/%3E%3Ccircle cx='15' cy='40' r='8' fill='none' stroke='%23D4A84B' stroke-width='0.6'/%3E%3Ccircle cx='65' cy='40' r='8' fill='none' stroke='%23D4A84B' stroke-width='0.6'/%3E%3Ccircle cx='40' cy='40' r='4' fill='%23C45D3E' opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ═══════════════════════════════════════════════════════════════
   WROUGHT IRON REJA DIVIDER
   ═══════════════════════════════════════════════════════════════ */

.reja-divider {
  width: 100%;
  height: 48px;
  margin: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='120' height='48' viewBox='0 0 120 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%232D2926' stroke-width='1.2' fill='none' opacity='0.12'%3E%3Cpath d='M10 24 Q25 12 40 24 T70 24 T100 24'/%3E%3Cpath d='M10 28 Q25 40 40 28 T70 28 T100 28'/%3E%3Ccircle cx='60' cy='26' r='3'/%3E%3Cline x1='10' y1='24' x2='10' y2='48'/%3E%3Cline x1='100' y1='24' x2='100' y2='48'/%3E%3C/g%3E%3C/svg%3E") repeat-x center;
  background-size: 120px 48px;
}

/* ═══════════════════════════════════════════════════════════════
   SARAPE STRIPE BORDER
   ═══════════════════════════════════════════════════════════════ */

.sarape-stripe {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(90deg,
    var(--terracotta) 0px,
    var(--terracotta) 18px,
    var(--gold) 18px,
    var(--gold) 26px,
    var(--sage) 26px,
    var(--sage) 42px,
    var(--rust) 42px,
    var(--rust) 50px,
    var(--blush) 50px,
    var(--blush) 66px,
    var(--gold) 66px,
    var(--gold) 74px,
    var(--terracotta) 74px,
    var(--terracotta) 90px,
    var(--gold-copper) 90px,
    var(--gold-copper) 98px,
    var(--sage-light) 98px,
    var(--sage-light) 114px
  );
  opacity: 0.35;
}

/* ═══════════════════════════════════════════════════════════════
   CARD DEPTH (Alcove Effect)
   ═══════════════════════════════════════════════════════════════ */

.info-card,
.menu-item,
.value-card,
.contact-form {
  box-shadow: var(--shadow-ambient), var(--shadow-alcove);
}

/* Candle glow on hover */
.menu-item:hover,
.info-card:hover {
  box-shadow: 0 8px 30px rgba(45,41,38,0.09), var(--shadow-candle);
  border-color: rgba(212,168,75,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   CORNER MEDALLIONS (Layered rings)
   ═══════════════════════════════════════════════════════════════ */

.corner-medallion {
  position: relative;
  overflow: visible;
}

.corner-medallion::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.45);
  box-shadow:
    0 0 0 6px rgba(253,246,233,0.5),
    0 0 0 8px rgba(196,93,62,0.2);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.corner-medallion::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.45);
  box-shadow:
    0 0 0 6px rgba(253,246,233,0.5),
    0 0 0 8px rgba(196,93,62,0.2);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   VINTAGE PHOTO FRAME
   ═══════════════════════════════════════════════════════════════ */

.photo-frame {
  position: relative;
  padding: 20px;
  background: var(--cream);
  border: 1px solid rgba(45,41,38,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(212,168,75,0.3),
    0 8px 30px rgba(45,41,38,0.1);
  border-radius: 4px;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-frame::before,
.photo-frame::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(212,168,75,0.3);
  pointer-events: none;
}

.photo-frame::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}

.photo-frame::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHIC REFINEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Drop caps */
.has-dropcap .timeline-description::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--terracotta);
  float: left;
  line-height: 0.75;
  margin-right: 8px;
  margin-top: 4px;
  padding-right: 0;
  text-shadow: 0 1px 3px rgba(212,168,75,0.3);
}

/* Hero heading depth on dark backgrounds */
.hero-depth h1,
.hero-depth .hero h1 {
  text-shadow:
    0 1px 0 rgba(196,93,62,0.3),
    0 4px 24px rgba(0,0,0,0.4),
    0 8px 40px rgba(0,0,0,0.2);
}

.hero-depth h1 .accent,
.hero-depth .hero h1 .accent {
  text-shadow: 0 0 20px rgba(212,168,75,0.5);
}

/* Price typography */
.price-enhance .price,
.price-enhance .item-price {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-copper);
  text-shadow: 0 1px 2px rgba(196,93,62,0.2);
}

/* Italic lead-in for storytelling */
.italic-lead-in p:first-of-type::first-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15em;
  color: var(--warm-brown);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION FLEURON SEPARATOR
   ═══════════════════════════════════════════════════════════════ */

.fleuron-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto;
}

.fleuron-separator svg {
  width: 48px;
  height: 48px;
  color: var(--gold);
  opacity: 0.45;
}

/* ═══════════════════════════════════════════════════════════════
   BRAND SEAL INTEGRATION
   ═══════════════════════════════════════════════════════════════ */

.nav-brand-mark {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.35);
  box-shadow: 0 0 15px rgba(212,168,75,0.15);
  overflow: hidden;
  display: none;
}

.nav-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cream);
}

.timeline-seal {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(45,41,38,0.15), 0 0 30px rgba(212,168,75,0.2);
  overflow: hidden;
  margin: 0 auto 24px;
  filter: sepia(0.6);
}

.timeline-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--cream);
}

.footer-brand-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(212,168,75,0.3);
  opacity: 0.3;
  overflow: hidden;
  margin: 0 auto 20px;
}

.footer-brand-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Contact form watermark */
.form-watermark {
  position: relative;
}

.form-watermark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: url('pics/lugar/roundlogo.png') center/contain no-repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.form-watermark > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   ATMOSPHERE SYSTEM (Data Attribute Moods)
   ═══════════════════════════════════════════════════════════════ */

/* Morning (5-10am): brighter, lighter */
html[data-atmosphere="manana"] {
  --atmosphere-bg: #FFF9F0;
  --atmosphere-surface: #FFFFFF;
  --atmosphere-accent: var(--gold-copper);
  --atmosphere-glow: rgba(212,168,75,0.18);
}

/* Lunch (10am-6pm): default — current palette */

/* Dinner (6pm-5am): candlelit, deeper */
html[data-atmosphere="noche"] {
  --atmosphere-bg: #F5EAD5;
  --atmosphere-surface: rgba(255,255,255,0.97);
  --atmosphere-accent: var(--gold);
  --atmosphere-glow: rgba(212,168,75,0.2);
  --shadow-ambient: 0 6px 24px rgba(45,41,38,0.08);
  --shadow-alcove: inset 0 3px 10px rgba(45,41,38,0.05), inset 0 -1px 4px rgba(45,41,38,0.03);
  --shadow-candle: 0 0 50px rgba(212,168,75,0.12), 0 0 100px rgba(196,93,62,0.06);
}

/* Per-section atmosphere: breakfast bright */
.menu-atmosphere-manana {
  background:
    linear-gradient(180deg, #FFF9F0 0%, #FEF5E5 50%, var(--cream) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
}

/* Per-section atmosphere: dinner candlelit */
.menu-atmosphere-noche {
  background:
    linear-gradient(180deg, #F5EAD5 0%, var(--cream) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-blend-mode: normal, multiply;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
  position: relative;
}

.menu-atmosphere-noche::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(212,168,75,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 0%, rgba(196,93,62,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(212,168,75,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING ORNAMENTS
   ═══════════════════════════════════════════════════════════════ */

.corner-ornament {
  animation: float-ambient 12s ease-in-out infinite;
}

.corner-ornament.top-left { animation-delay: 0s; }
.corner-ornament.top-right { animation-delay: -3s; }
.corner-ornament.bottom-left { animation-delay: -6s; }
.corner-ornament.bottom-right { animation-delay: -9s; }

/* ═══════════════════════════════════════════════════════════════
   BUTTON INNER GLOW
   ═══════════════════════════════════════════════════════════════ */

.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse at bottom, rgba(212,168,75,0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL-REVEAL SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.reveal-on-scroll {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
  animation-play-state: paused;
}

.reveal-on-scroll.revealed {
  animation-play-state: running;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY FRAMED TREATMENT
   ═══════════════════════════════════════════════════════════════ */

.gallery-framed {
  border: 12px solid var(--cream);
  box-shadow:
    inset 0 0 0 1px rgba(45,41,38,0.06),
    0 0 0 1px rgba(212,168,75,0.25),
    0 8px 30px rgba(45,41,38,0.12);
  transition: all 0.35s ease;
}

.gallery-framed:hover {
  box-shadow:
    inset 0 0 0 1px rgba(45,41,38,0.06),
    0 0 0 1px rgba(212,168,75,0.4),
    0 12px 40px rgba(45,41,38,0.18);
  transform: scale(1.02);
}

.gallery-caption-below {
  padding: 12px 0 0;
  text-align: center;
  color: var(--warm-brown);
}

.gallery-caption-below h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.gallery-caption-below p {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════════
   FLEURON SEPARATOR ICON
   ═══════════════════════════════════════════════════════════════ */

.fleuron-icon {
  display: block;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.animate-fade-up { opacity: 0; animation: fadeUp 0.8s ease-out forwards; }
