/* ============================================================
   QUINTA LA VID — Salón de eventos
   Hoja de estilos · Mobile-first · Elegante
   ============================================================ */

:root {
  /* Paleta */
  --wine:        #6E1423;
  --wine-deep:   #4A0D17;
  --wine-soft:   #8C2A3B;
  --gold:        #C6A15B;
  --gold-soft:   #E3CF9E;
  --ivory:       #FBF7F0;
  --cream:       #F3ECE0;
  --ink:         #241C1A;
  --ink-soft:    #5A4F4A;
  --line:        #E4DACB;
  --white:       #ffffff;

  /* Tipografía */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", "Segoe UI", system-ui, sans-serif;

  /* Métricas */
  --maxw: 1200px;
  --radius: 4px;
  --shadow-sm: 0 6px 24px rgba(36, 28, 26, 0.08);
  --shadow-md: 0 18px 50px rgba(36, 28, 26, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-soft); }

.section-title {
  font-size: clamp(2rem, 6vw, 3.1rem);
  color: var(--wine-deep);
  letter-spacing: 0.01em;
}
.section-title.light { color: var(--ivory); }

.section-intro {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
}
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.section {
  padding: clamp(4rem, 10vw, 7.5rem) 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head { margin-bottom: 3rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--wine); color: var(--ivory); }
.btn-primary:hover { background: var(--wine-deep); box-shadow: var(--shadow-sm); }

.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--ivory); }

.btn-outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: var(--ivory); }

.btn-whats { background: #1FA855; color: #fff; }
.btn-whats:hover { background: #178a45; box-shadow: var(--shadow-sm); }

.btn-whats-outline { background: transparent; color: var(--ivory); border-color: var(--gold-soft); }
.btn-whats-outline:hover { background: var(--gold); color: var(--wine-deep); border-color: var(--gold); }

.btn-block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0.6rem 0;
}
.site-header.scrolled {
  background: rgba(251, 247, 240, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
/* El desenfoque del header crea un "bloque contenedor" que recortaba el menú
   móvil al estar desplazado. Lo desactivamos mientras el menú está abierto
   para que el panel ocupe toda la altura de la pantalla. */
body.nav-open .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; flex-direction: column; line-height: 0.95; color: var(--ivory); transition: color 0.4s var(--ease); }
.brand-mark { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; }
.scrolled .brand { color: var(--wine-deep); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.scrolled .nav-link { color: var(--ink); }
.scrolled .nav-link:hover { color: var(--wine); }

.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--ivory);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--wine-deep); }
.scrolled .nav-cta { color: var(--wine); border-color: var(--wine); }
.scrolled .nav-cta:hover { background: var(--wine); color: var(--ivory); }

/* Toggle móvil */
.nav-toggle { display: none; width: 30px; height: 22px; position: relative; z-index: 1100; }
.nav-toggle span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--ivory); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.scrolled .nav-toggle span { background: var(--wine-deep); }
.nav-open .nav-toggle span { background: var(--ivory); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  color: var(--ivory);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,10,15,0.72) 0%, rgba(28,10,15,0.60) 45%, rgba(28,10,15,0.88) 100%),
    radial-gradient(130% 90% at 30% 45%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 55%);
}

.hero-content { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.4rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-title {
  font-size: clamp(2.8rem, 11vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.45), 0 8px 40px rgba(0,0,0,0.5);
}
.hero-title em { font-style: italic; color: var(--gold-soft); text-shadow: 0 2px 4px rgba(0,0,0,0.45), 0 8px 40px rgba(0,0,0,0.5); }
.hero-subtitle {
  max-width: 48ch;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  color: #fff;
  font-weight: 400;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 18px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(251,247,240,0.8);
}
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold-soft), transparent); animation: scrollPulse 2.2s var(--ease) infinite; }
.hero-scroll-text { font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   CONÓCENOS
   ============================================================ */
.about-grid { display: grid; gap: 3rem; }

.about-text .lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 1.2rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.about-points { margin: 2rem 0; border-top: 1px solid var(--line); }
.about-points li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.about-points span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wine);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.about-media { position: relative; }
.about-media img {
  width: 100%; height: 100%; min-height: 340px;
  object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute; bottom: -1.2rem; left: -1.2rem;
  background: var(--wine); color: var(--ivory);
  padding: 1.3rem 1.6rem; border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-width: 180px;
  border: 1px solid var(--wine-soft);
}
.about-badge-num { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-soft); line-height: 1; }
.about-badge-label { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   EXPERIENCIA
   ============================================================ */
.experience { position: relative; }
.features { display: grid; gap: 1.2rem; margin-bottom: 3rem; }
.feature {
  padding: 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--gold-soft); }
.feature-index { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; }
.feature h3 { font-size: 1.5rem; color: var(--wine-deep); margin: 0.4rem 0 0.6rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

.amenities {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.amenity {
  flex: 1 1 140px;
  background: var(--cream);
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.amenity-k { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--wine); }
.amenity-v { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1.2rem 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  background: linear-gradient(transparent, rgba(36,13,20,0.82));
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.g-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ============================================================
   RESERVAR
   ============================================================ */
.reserve {
  max-width: none;
  background:
    linear-gradient(160deg, var(--wine-deep) 0%, var(--wine) 55%, var(--wine-soft) 120%);
  position: relative;
}
.reserve::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 85% 0%, rgba(198,161,91,0.16), transparent 60%);
  pointer-events: none;
}
.reserve-grid {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: start;
}
.reserve-copy { color: rgba(251,247,240,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

.reserve-steps { margin-bottom: 2.4rem; }
.reserve-steps li {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 0;
  color: var(--ivory);
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.reserve-steps span {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.reserve-direct p { color: rgba(251,247,240,0.75); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* Tarjeta formulario */
.reserve-card {
  background: var(--ivory);
  padding: 2.2rem;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.2rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
label .opt { text-transform: none; letter-spacing: 0; color: #a99; font-size: 0.72rem; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
input::placeholder, textarea::placeholder { color: #bcb0a6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(110, 20, 35, 0.1);
}
textarea { resize: vertical; }
.reserve-card .btn-whats { margin-top: 0.5rem; }
.form-note { margin-top: 0.9rem; font-size: 0.85rem; text-align: center; min-height: 1.2em; }
.form-note.error { color: var(--wine); }
.form-note.ok { color: #178a45; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-block { margin-bottom: 1.8rem; }
.contact-block h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-block p { color: var(--ink-soft); font-size: 1.05rem; }
.contact-block a { color: var(--wine); font-weight: 400; }
.contact-block a:hover { color: var(--wine-deep); text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; }

.contact-map {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.contact-map img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform 0.6s var(--ease); }
.contact-map:hover img { transform: scale(1.04); }
.map-pill {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  background: var(--ivory); color: var(--wine);
  padding: 0.6rem 1.3rem; border-radius: 40px;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--wine-deep); color: rgba(251,247,240,0.8); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  gap: 2rem;
}
.footer-brand .brand-mark { color: var(--gold-soft); }
.footer-brand .brand-name { color: var(--ivory); display: block; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.footer-nav a { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a { font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(251,247,240,0.6);
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whats-float {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 900;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #1FA855; color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(31, 168, 85, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.whats-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 14px 34px rgba(31,168,85,0.55); }

/* ============================================================
   ANIMACIONES DE APARICIÓN
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVO — TABLET
   ============================================================ */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVO — ESCRITORIO
   ============================================================ */
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 4.5rem; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .reserve-grid { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: center; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
}

/* ============================================================
   RESPONSIVO — MENÚ MÓVIL
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    height: 100dvh;
    width: min(80vw, 320px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 4rem 2.4rem;
    background: linear-gradient(160deg, var(--wine-deep), var(--wine));
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 50px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .nav-open .nav-links { transform: translateX(0); }
  .nav-link { color: var(--ivory); font-size: 1rem; }
  .scrolled .nav-link { color: var(--ivory); }
  .nav-link::after { background: var(--gold-soft); }
  .nav-cta { color: var(--ivory); border-color: var(--gold); margin-top: 0.5rem; }
  .scrolled .nav-cta { color: var(--ivory); border-color: var(--gold); }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
  .about-badge { left: 0; }
}
