/* ─── Variables ─────────────────────────────────────────── */
:root {
  --gold:        #111111;
  --gold-light:  #333333;
  --gold-dark:   #666666;
  --charcoal:    #E5E5E5;
  --dark:        #FFFFFF;
  --mid:         #F2F2F2;
  --text:        #1A1A1A;
  --text-muted:  #666666;
  --white:       #111111;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Montserrat', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
a, button, .menu-tab, [onclick] { cursor: pointer; }

/* ─── Utility ────────────────────────────────────────────── */
.gold { color: var(--gold); }
.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  opacity: 0.6;
}
.divider.left { margin-left: 0; }

/* ─── Scroll offset para navbar fija ─────────────────────── */
section {
  scroll-margin-top: 80px;
}

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5%;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.nav-logo::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.3), transparent);
  transition: left 0.5s ease;
}
.nav-logo:hover::after { left: 150%; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.6rem 1.4rem;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--dark); }

/* Instagram en navbar */
.nav-instagram {
  display: flex;
  align-items: center;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
  margin-right: 0.4rem;
}
.nav-instagram:hover { opacity: 1; color: var(--gold); }

/* Instagram en menú móvil */
.mobile-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.65;
  transition: opacity 0.3s;
  margin-top: 0.5rem;
}
.mobile-instagram svg { width: 40px; height: 40px; }
.mobile-instagram span { display: none; }
.mobile-instagram:hover { opacity: 1; color: var(--gold); }

/* Lang toggle inside nav */
nav #lang-toggle {
  display: inline-block;
  margin-right: 0.4rem;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.45);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
nav #lang-toggle:hover { background: var(--gold); color: var(--dark); }

/* ─── Mobile nav ─────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
  position: absolute;
  top: 1.4rem;
  right: 5%;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.mobile-menu-close:hover { opacity: 1; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mobile-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.9rem 2rem;
  margin-top: 1rem;
}

/* ─── Hero ───────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,0.04) 0%, transparent 70%),
    linear-gradient(170deg, #FFFFFF 0%, #F5F5F5 60%, #EFEFEF 100%);
  will-change: transform;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 6%;
  right: 6%;
  bottom: 0;
  background-image: url('../images/berenguela%20plato%20mesa.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.72;
  filter: saturate(0.65) brightness(1.05);
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 14%, black 78%, transparent 100%);
  mask-image:
    linear-gradient(to right,  transparent 0%, black 18%, black 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 14%, black 78%, transparent 100%);
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

/* ─── Hero ornaments ────────────────────────────────────── */
.hero-ornament {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center center;
}
.hero-ornament:nth-child(1) {
  width: 560px; height: 560px;
  margin-top: -280px; margin-left: -280px;
  border: 1px solid rgba(0,0,0,0.07);
  animation: ring-spin 90s linear infinite;
}
.hero-ornament:nth-child(1)::before,
.hero-ornament:nth-child(1)::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.25);
}
.hero-ornament:nth-child(1)::before { top: 50%; left: -4px; width: 8px; height: 1px; }
.hero-ornament:nth-child(1)::after  { top: -4px; left: 50%; width: 1px; height: 8px; }
.hero-ornament:nth-child(2) {
  width: 420px; height: 420px;
  margin-top: -210px; margin-left: -210px;
  border: 1px solid rgba(0,0,0,0.05);
  animation: ring-spin 65s linear infinite reverse;
}
.hero-ornament:nth-child(2)::before,
.hero-ornament:nth-child(2)::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.2);
}
.hero-ornament:nth-child(2)::before { top: 50%; right: -4px; width: 8px; height: 1px; }
.hero-ornament:nth-child(2)::after  { bottom: -4px; left: 50%; width: 1px; height: 8px; }
.hero-ornament:nth-child(3) {
  width: 280px; height: 280px;
  margin-top: -140px; margin-left: -140px;
  border: 1px solid rgba(0,0,0,0.06);
  animation: ring-pulse 6s ease-in-out infinite;
}
.hero-ornament:nth-child(4) {
  width: 700px; height: 700px;
  margin-top: -350px; margin-left: -350px;
  border: 1px solid rgba(0,0,0,0.03);
  animation: ring-fade 8s ease-in-out infinite;
}
@keyframes ring-spin  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ring-pulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes ring-fade  { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.015); } }

.hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.4s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-logo-icon { width: 72px; height: 72px; margin: 0 auto 2rem; opacity: 0.9; }
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,0.7);
}
.hero-title {
  margin-bottom: 0.3rem;
  line-height: 1;
}
.hero-logo {
  width: clamp(220px, 38vw, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 20px rgba(255,255,255,0.4));
}
.hero-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: #111;
  font-weight: 500;
  margin-bottom: 3rem;
  text-shadow: 0 1px 10px rgba(255,255,255,0.95), 0 0 25px rgba(255,255,255,0.6);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 1rem 2.4rem;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 200%;
  padding-bottom: 200%;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:hover::before { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.btn-outline {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1.5px solid rgba(0,0,0,0.75);
  color: #111;
  font-weight: 500;
  padding: 1rem 2.4rem;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.btn-outline:hover { border-color: #111; background: rgba(255,255,255,0.8); color: #000; }
.btn-outline--gold {
  border-color: rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.75);
  color: #fff;
}
.btn-outline--gold:hover { background: rgba(0,0,0,0.9); color: #fff; border-color: #000; }
.hero-flor {
  display: block;
  margin: 0 auto 1.5rem;
  width: clamp(80px, 14vw, 160px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.4));
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dark), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Sections shared ────────────────────────────────────── */
section { padding: 7rem 5%; }
.container { max-width: 1140px; margin: 0 auto; }
.menu-header { text-align: center; margin-bottom: 4rem; }
.menu-header h2 { font-family: var(--sans); font-size: clamp(1.1rem, 2.5vw, 1.7rem); font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }

/* ─── Footer ─────────────────────────────────────────────── */
footer { background: #fff; padding: 5rem 5% 2rem; border-top: 2px solid #111; box-shadow: 0 -8px 28px rgba(0,0,0,0.18); position: relative; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand .brand-tag { font-size: 0.55rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col p, .footer-col a { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.05); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.7rem; color: var(--text-muted); }
.social-links { display: flex; gap: 1.2rem; }
.social-links a { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); transition: color 0.3s; }
.social-links a:hover { color: var(--gold); }

/* ─── Powered by Cedar Soul ─────────────────────────────── */
@keyframes cedar-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes cedar-logo-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 0.85; transform: scale(1.06); }
}
.footer-powered { display: flex; align-items: center; justify-content: center; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.05); margin-top: 1.5rem; }
.cedar-soul-link { display: flex; align-items: center; gap: 0.6rem; opacity: 1; transition: gap 0.4s; text-decoration: none; }
.cedar-soul-link:hover { gap: 0.85rem; }
.cedar-soul-link:hover .cedar-soul-logo { animation: cedar-logo-breathe 1.4s ease-in-out infinite; }
.cedar-soul-link span {
  font-size: 0.6rem; letter-spacing: 0.12em; font-weight: 600;
  color: #111;
  -webkit-text-fill-color: #111;
  transition: color 0.3s;
}
.cedar-soul-link:hover span {
  background: linear-gradient(90deg, #111 20%, #bbb 50%, #111 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cedar-shimmer 1.6s linear infinite;
}
.cedar-soul-logo { height: 22px; width: auto; object-fit: contain; transition: transform 0.4s; }

/* ─── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Menú del Día (compartido) ──────────────────────────── */
#menu-dia {
  background: var(--mid);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mdia-web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 1.5rem;
}
.mdia-web-col {
  background: var(--dark);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 2rem 1.8rem;
}
.mdia-web-heading {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mdia-web-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mdia-web-list li {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  line-height: 1.5;
}
.mdia-web-list li:last-child { border-bottom: none; }
.mdia-web-list li::before {
  content: '—';
  color: var(--gold);
  margin-right: 0.6rem;
  font-size: 0.75rem;
  opacity: 0.6;
}
.mdia-web-extras {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mdia-web-extras strong {
  color: var(--text);
  font-weight: 500;
}

/* ─── Responsive compartido ──────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-instagram { display: none; }
  nav #lang-toggle { display: inline-block; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .mdia-web-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  section { padding: 4.5rem 5%; }
  .hero-logo { width: clamp(160px, 60vw, 300px); }
  .hero-ornament:nth-child(1) { width: 320px; height: 320px; margin-top: -160px; margin-left: -160px; }
  .hero-ornament:nth-child(2) { width: 240px; height: 240px; margin-top: -120px; margin-left: -120px; }
  .hero-ornament:nth-child(3) { width: 160px; height: 160px; margin-top: -80px;  margin-left: -80px; }
  .hero-ornament:nth-child(4) { width: 420px; height: 420px; margin-top: -210px; margin-left: -210px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; max-width: 280px; }
}
