/* ===================== VARIABLES ===================== */
:root{
  --bg-dark: #0d0f0c;
  --bg-darker: #080907;
  --bg-card: #151813;
  --bg-card-2: #1a1e17;
  --green: #2f6b4f;
  --green-light: #4a9b73;
  --gold: #d4af37;
  --gold-light: #e8cc6b;
  --text-light: #f3f1ea;
  --text-muted: #b7b3a6;
  --border-soft: rgba(212,175,55,0.15);
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0,0,0,0.45);
  --ease: cubic-bezier(.22,1,.36,1);
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--bg-dark);
  color:var(--text-light);
  font-family:'Poppins', sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}

h1,h2,h3,h4{ font-family:'Playfair Display', serif; font-weight:700; line-height:1.2; }

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

.container{ width:min(1200px, 92%); margin:0 auto; }

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

::selection{ background:var(--gold); color:#111; }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg-darker); }
::-webkit-scrollbar-thumb{ background:var(--green); border-radius:10px; }

/* ===================== PRELOADER ===================== */
.preloader{
  position:fixed; inset:0; z-index:9999;
  background:var(--bg-darker);
  display:flex; align-items:center; justify-content:center;
  transition:opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.hidden{ opacity:0; visibility:hidden; }
.preloader-plate span{
  font-family:'Playfair Display', serif;
  font-size:clamp(1.5rem,4vw,2.4rem);
  color:var(--gold);
  letter-spacing:2px;
  position:relative;
  animation:pulseFade 1.6s ease-in-out infinite;
}
@keyframes pulseFade{ 0%,100%{opacity:.4;} 50%{opacity:1;} }

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.9rem 2rem;
  border-radius:50px;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.3px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  position:relative;
  overflow:hidden;
}
.btn-primary{
  background:linear-gradient(135deg, var(--gold-light), var(--gold));
  color:#1a1305;
  box-shadow:0 10px 30px rgba(212,175,55,0.25);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 36px rgba(212,175,55,0.4); }
.btn-outline{
  border:1.5px solid var(--gold);
  color:var(--gold);
  background:transparent;
}
.btn-outline:hover{ background:var(--gold); color:#1a1305; transform:translateY(-3px); }
.btn-full{ width:100%; }

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal, .reveal-left, .reveal-right{
  opacity:0;
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal{ transform:translateY(40px); }
.reveal-left{ transform:translateX(-50px); }
.reveal-right{ transform:translateX(50px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible{
  opacity:1; transform:translate(0,0);
}
.delay-1{ transition-delay:.15s; }
.delay-2{ transition-delay:.3s; }
.delay-3{ transition-delay:.45s; }

/* ===================== NAVBAR ===================== */
.navbar{
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  padding:1.4rem 0;
  transition:background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled{
  background:rgba(13,15,12,0.92);
  backdrop-filter:blur(10px);
  padding:.8rem 0;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}
.navbar-inner{ display:flex; align-items:center; justify-content:space-between; }
.logo{
  font-family:'Playfair Display', serif;
  font-size:1.5rem; font-weight:700; color:var(--text-light);
  letter-spacing:.5px;
}
.logo span{ color:var(--gold); font-weight:500; margin-left:.3rem; }
.nav-links{ display:flex; align-items:center; gap:2rem; }
.nav-links a{
  font-size:.92rem; font-weight:500; color:var(--text-light);
  position:relative; padding:.3rem 0;
  transition:color .3s;
}
.nav-links a:not(.btn)::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--gold); transition:width .35s var(--ease);
}
.nav-links a:not(.btn):hover{ color:var(--gold); }
.nav-links a:not(.btn):hover::after{ width:100%; }
.nav-cta{ padding:.6rem 1.4rem; }

.hamburger{ display:none; flex-direction:column; gap:5px; z-index:1100; }
.hamburger span{ width:26px; height:2px; background:var(--gold); transition:all .35s var(--ease); }
.hamburger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; background-size:cover; background-position:center;
  transform:scale(1.1);
  animation:heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom{ from{ transform:scale(1.1); } to{ transform:scale(1.22); } }
.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,9,7,0.55) 0%, rgba(8,9,7,0.75) 55%, var(--bg-dark) 100%),
    linear-gradient(90deg, rgba(8,9,7,0.7) 0%, rgba(8,9,7,0.25) 60%);
}
.hero-particles{
  position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(212,175,55,.5), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(212,175,55,.35), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(74,155,115,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(212,175,55,.4), transparent);
  animation:floatParticles 12s ease-in-out infinite;
}
@keyframes floatParticles{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-20px);} }
.hero-content{ position:relative; z-index:2; max-width:760px; }
.eyebrow{
  display:inline-block; color:var(--green-light); text-transform:uppercase;
  letter-spacing:3px; font-size:.8rem; font-weight:600; margin-bottom:1rem;
}
.eyebrow.center{ display:block; text-align:center; }
.hero h1{ font-size:clamp(2.4rem, 6vw, 4.2rem); color:var(--text-light); margin-bottom:1.2rem; }
.hero-text{ font-size:1.1rem; color:var(--text-muted); max-width:520px; margin-bottom:2rem; }
.hero-buttons{ display:flex; gap:1.2rem; flex-wrap:wrap; }

.scroll-down{
  position:absolute; bottom:2.2rem; left:50%; transform:translateX(-50%);
  width:28px; height:46px; border:2px solid var(--gold); border-radius:20px;
  z-index:2;
}
.scroll-down span{
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width:5px; height:5px; background:var(--gold); border-radius:50%;
  animation:scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{ 0%{ opacity:1; top:8px;} 70%{opacity:0;} 100%{ opacity:0; top:28px;} }

/* ===================== SECTION GENERIC ===================== */
section{ padding:7rem 0; position:relative; }
.section-title{ font-size:clamp(2rem,4vw,2.8rem); margin-bottom:.8rem; }
.section-title.center{ text-align:center; }
.section-subtitle{
  color:var(--text-muted); max-width:600px; margin:0 auto 3rem;
}
.section-subtitle.center{ text-align:center; }

/* ===================== ABOUT ===================== */
.about{ background:var(--bg-darker); }
.about-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:4rem; align-items:center; }
.about-image{ position:relative; }
.about-image img{
  border-radius:var(--radius); box-shadow:var(--shadow);
  aspect-ratio:4/5; object-fit:cover; width:100%;
}
.about-badge{
  position:absolute; bottom:-1.5rem; right:-1.5rem;
  background:linear-gradient(135deg, var(--gold-light), var(--gold));
  color:#1a1305; padding:1.2rem 1.6rem; border-radius:var(--radius);
  text-align:center; box-shadow:0 15px 35px rgba(0,0,0,0.4);
}
.about-badge strong{ display:block; font-size:1.8rem; font-family:'Playfair Display',serif; }
.about-badge span{ font-size:.75rem; text-transform:uppercase; letter-spacing:1px; }
.about-content p{ color:var(--text-muted); margin-bottom:1.2rem; }
.about-content h2{ font-size:clamp(1.8rem,3.5vw,2.6rem); margin-bottom:1.5rem; }
.about-stats{ display:flex; gap:2.5rem; margin:2rem 0; flex-wrap:wrap; }
.stat strong{
  display:block; font-size:2.2rem; font-family:'Playfair Display',serif; color:var(--gold);
}
.stat span{ font-size:.82rem; color:var(--text-muted); }

/* ===================== MENU ===================== */
.menu-tabs{
  display:flex; justify-content:center; gap:.8rem; flex-wrap:wrap; margin-bottom:3rem;
}
.tab-btn{
  padding:.7rem 1.6rem; border-radius:50px; border:1px solid var(--border-soft);
  color:var(--text-muted); font-weight:500; font-size:.9rem;
  transition:all .35s var(--ease);
}
.tab-btn:hover{ color:var(--gold); border-color:var(--gold); }
.tab-btn.active{
  background:linear-gradient(135deg, var(--green-light), var(--green));
  color:#fff; border-color:transparent;
}
.menu-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:2rem;
}
.menu-card{
  background:var(--bg-card);
  border:1px solid var(--border-soft);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), opacity .4s, display .4s;
  opacity:0; transform:translateY(30px) scale(.98);
  animation:cardIn .6s var(--ease) forwards;
}
@keyframes cardIn{ to{ opacity:1; transform:translateY(0) scale(1);} }
.menu-card.hide{ display:none; }
.menu-card:hover{
  transform:translateY(-10px);
  box-shadow:0 25px 45px rgba(0,0,0,0.4);
  border-color:var(--gold);
}
.menu-card-img{ height:210px; overflow:hidden; }
.menu-card-img img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.menu-card:hover .menu-card-img img{ transform:scale(1.1); }
.menu-card-body{ padding:1.4rem 1.5rem 1.6rem; }
.menu-card-top{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; margin-bottom:.5rem; }
.menu-card-top h3{ font-size:1.15rem; }
.menu-card-top .price{ color:var(--gold); font-weight:700; white-space:nowrap; font-family:'Playfair Display',serif; }
.menu-card-body p{ color:var(--text-muted); font-size:.9rem; }

/* ===================== GALLERY ===================== */
.gallery-section{ background:var(--bg-darker); }
.gallery-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:200px; gap:1rem;
}
.gallery-item:nth-child(1),.gallery-item:nth-child(6){ grid-column:span 2; grid-row:span 2; }
.gallery-item{
  position:relative; border-radius:var(--radius); overflow:hidden; cursor:pointer;
}
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.gallery-item::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65));
  opacity:0; transition:opacity .4s;
}
.gallery-zoom{
  position:absolute; bottom:1rem; right:1rem; width:40px; height:40px;
  border-radius:50%; background:var(--gold); color:#1a1305;
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
  opacity:0; transform:scale(.6); transition:all .35s var(--ease); z-index:2;
}
.gallery-item:hover img{ transform:scale(1.12); }
.gallery-item:hover::after{ opacity:1; }
.gallery-item:hover .gallery-zoom{ opacity:1; transform:scale(1); }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; background:rgba(5,6,4,0.95); z-index:2000;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility .4s var(--ease);
}
.lightbox.active{ opacity:1; visibility:visible; }
.lightbox img{ max-width:88vw; max-height:82vh; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.lightbox-close{
  position:absolute; top:2rem; right:2.5rem; color:var(--gold); font-size:2.4rem; line-height:1;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); color:var(--gold);
  font-size:1.6rem; padding:1rem; opacity:.8; transition:opacity .3s, transform .3s;
}
.lightbox-nav:hover{ opacity:1; }
.lightbox-nav.prev{ left:1rem; }
.lightbox-nav.next{ right:1rem; }

/* ===================== REVIEWS ===================== */
.reviews-carousel{ max-width:800px; margin:0 auto; text-align:center; }
.reviews-track{ position:relative; min-height:260px; }
.review-card{
  position:absolute; inset:0;
  background:var(--bg-card); border:1px solid var(--border-soft); border-radius:var(--radius);
  padding:2.5rem 3rem;
  opacity:0; transform:translateX(40px); pointer-events:none;
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.review-card.active{ opacity:1; transform:translateX(0); pointer-events:auto; position:relative; }
.stars{ color:var(--gold); font-size:1.3rem; letter-spacing:.2rem; margin-bottom:1rem; }
.review-card p{ font-style:italic; color:var(--text-light); font-size:1.05rem; margin-bottom:1.6rem; }
.reviewer{ display:flex; align-items:center; justify-content:center; gap:.8rem; }
.reviewer img{ width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); }
.reviewer div{ text-align:left; }
.reviewer strong{ display:block; font-size:.95rem; }
.reviewer span{ font-size:.78rem; color:var(--text-muted); }
.reviews-controls{ display:flex; align-items:center; justify-content:center; gap:1.5rem; margin-top:2rem; }
.reviews-controls button{ color:var(--gold); font-size:1.2rem; padding:.6rem; transition:transform .3s; }
.reviews-controls button:hover{ transform:scale(1.2); }
.reviews-dots{ display:flex; gap:.5rem; }
.reviews-dots span{
  width:9px; height:9px; border-radius:50%; background:var(--border-soft); cursor:pointer; transition:all .3s;
}
.reviews-dots span.active{ background:var(--gold); width:24px; border-radius:5px; }

/* ===================== RESERVAS ===================== */
.reservas-section{ background:var(--bg-darker); }
.reservas-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:4rem; align-items:flex-start; }
.reservas-info h2{ font-size:clamp(1.8rem,3.5vw,2.6rem); margin:.5rem 0 1.2rem; }
.reservas-info p{ color:var(--text-muted); margin-bottom:1.5rem; }
.reservas-list li{ display:flex; align-items:center; gap:.8rem; margin-bottom:.9rem; color:var(--text-light); }
.reservas-form{
  background:var(--bg-card); padding:2.5rem; border-radius:var(--radius);
  border:1px solid var(--border-soft); box-shadow:var(--shadow);
}
.form-row{ display:flex; gap:1.2rem; }
.form-row .form-group{ flex:1; }
.form-group{ margin-bottom:1.3rem; }
.form-group label{ display:block; font-size:.85rem; margin-bottom:.5rem; color:var(--text-muted); }
.form-group input, .form-group select, .form-group textarea{
  width:100%; padding:.85rem 1rem; border-radius:8px; border:1px solid var(--border-soft);
  background:var(--bg-card-2); color:var(--text-light); font-family:inherit; font-size:.92rem;
  transition:border-color .3s, box-shadow .3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,175,55,0.15);
}
.form-group textarea{ resize:vertical; }
.form-success{
  display:none; margin-top:1.2rem; color:var(--green-light); font-size:.9rem; text-align:center;
}
.form-success.show{ display:block; animation:cardIn .5s var(--ease); }

/* ===================== UBICACION ===================== */
.ubicacion-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:4rem; align-items:stretch; }
.ubicacion-info h2{ font-size:clamp(1.8rem,3.5vw,2.6rem); margin:.5rem 0 1.8rem; }
.info-item{ display:flex; gap:1rem; margin-bottom:1.6rem; }
.info-item span{ font-size:1.4rem; }
.info-item strong{ display:block; margin-bottom:.3rem; }
.info-item p, .info-item a{ color:var(--text-muted); font-size:.92rem; }
.info-item a:hover{ color:var(--gold); }
.ubicacion-map{ min-height:380px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border-soft); box-shadow:var(--shadow); }

/* ===================== FOOTER ===================== */
.footer{ background:var(--bg-darker); padding-top:5rem; border-top:1px solid var(--border-soft); }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:3rem; padding-bottom:3rem; }
.footer-grid > div > a:not(.logo){ display:block; color:var(--text-muted); margin-bottom:.7rem; transition:color .3s; }
.footer-grid > div > a:not(.logo):hover{ color:var(--gold); }
.footer-grid h4{ font-family:'Poppins',sans-serif; font-size:.95rem; text-transform:uppercase; letter-spacing:1px; color:var(--gold); margin-bottom:1.2rem; }
.footer-grid p{ color:var(--text-muted); font-size:.9rem; margin-top:1rem; }
.social-links{ display:flex; gap:.8rem; }
.social-links a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:600;
  transition:all .3s;
}
.social-links a:hover{ background:var(--gold); color:#1a1305; border-color:var(--gold); }
.footer-bottom{
  border-top:1px solid var(--border-soft); padding:1.5rem 0; text-align:center;
  color:var(--text-muted); font-size:.85rem;
}

/* ===================== FLOATING BUTTONS ===================== */
.whatsapp-float{
  position:fixed; bottom:2rem; right:2rem; width:60px; height:60px; border-radius:50%;
  background:#25D366; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 30px rgba(37,211,102,0.45); z-index:900;
  animation:pulseWA 2.4s ease-in-out infinite;
  transition:transform .3s;
}
.whatsapp-float:hover{ transform:scale(1.1); }
@keyframes pulseWA{
  0%,100%{ box-shadow:0 10px 30px rgba(37,211,102,0.45); }
  50%{ box-shadow:0 10px 30px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.08); }
}
.scroll-top{
  position:fixed; bottom:2rem; left:2rem; width:48px; height:48px; border-radius:50%;
  background:var(--bg-card); border:1px solid var(--gold); color:var(--gold);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  opacity:0; visibility:hidden; transform:translateY(10px); z-index:900;
  transition:all .35s var(--ease);
}
.scroll-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.scroll-top:hover{ background:var(--gold); color:#1a1305; }

/* ===================== RESPONSIVE ===================== */
@media (max-width:1024px){
  .about-grid, .reservas-grid, .ubicacion-grid{ grid-template-columns:1fr; gap:3rem; }
  .menu-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .gallery-item:nth-child(1),.gallery-item:nth-child(6){ grid-column:span 2; grid-row:span 1; }
}

@media (max-width:768px){
  .nav-links{
    position:fixed; top:0; right:-100%; height:100vh; width:min(320px,80%);
    background:rgba(13,15,12,0.98); backdrop-filter:blur(10px);
    flex-direction:column; justify-content:center; gap:2rem;
    transition:right .5s var(--ease);
  }
  .nav-links.active{ right:0; }
  .hamburger{ display:flex; }
  .menu-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-item:nth-child(1),.gallery-item:nth-child(6){ grid-column:span 2; grid-row:span 1; }
  .form-row{ flex-direction:column; gap:0; }
  .footer-grid{ grid-template-columns:1fr; text-align:center; }
  .social-links{ justify-content:center; }
  .info-item{ text-align:left; }
  .about-badge{ right:.5rem; bottom:-1rem; padding:.9rem 1.2rem; }
  .whatsapp-float{ width:52px; height:52px; bottom:1.2rem; right:1.2rem; }
  .scroll-top{ width:42px; height:42px; bottom:1.2rem; left:1.2rem; }
}

@media (max-width:480px){
  section{ padding:4.5rem 0; }
  .hero-buttons{ flex-direction:column; width:100%; }
  .hero-buttons .btn{ width:100%; }
  .about-stats{ gap:1.5rem; }
}
