/* ==========================================================================
   Wine O'Clock con María — Design System
   ========================================================================== */

:root {
  /* Colors */
  --color-cream: #f7f0e3;
  --color-cream-alt: #efe4cd;
  --color-ink: #2b2420;
  --color-ink-soft: #56493f;
  --color-wine: #6e1e2e;
  --color-wine-dark: #4c1420;
  --color-wine-light: #8a3245;
  --color-gold: #b8863b;
  --color-gold-light: #d9b77b;
  --color-white: #ffffff;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe5d;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -20px rgba(43, 36, 32, 0.35);
  --shadow-card: 0 12px 30px -12px rgba(43, 36, 32, 0.25);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-wine);
  margin-bottom: 1em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 56ch;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-alt {
  background: var(--color-cream-alt);
}

.section-wine {
  background: var(--color-wine);
  color: var(--color-cream);
}
.section-wine h2, .section-wine h3 { color: var(--color-cream); }
.section-wine .lede { color: rgba(247, 240, 227, 0.82); }

.section-head {
  max-width: 720px;
  margin-bottom: 3rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .lede { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-wine);
  color: var(--color-cream);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-wine-dark); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--color-ink);
}
.btn-ghost:hover { background: rgba(43, 36, 32, 0.06); }

.section-wine .btn-ghost,
.hero .btn-ghost {
  color: var(--color-cream);
  border-color: rgba(247, 240, 227, 0.6);
}
.section-wine .btn-ghost:hover,
.hero .btn-ghost:hover {
  background: rgba(247, 240, 227, 0.12);
  border-color: var(--color-cream);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); }

/* Solid cream button, for use over dark/wine backgrounds (hero, cta-banner) */
.btn-light {
  background: var(--color-cream);
  color: var(--color-wine-dark);
}
.btn-light:hover { background: #fff; }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 16px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: var(--color-cream);
  box-shadow: 0 8px 24px -18px rgba(43, 36, 32, 0.5);
  padding-block: 10px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.brand img {
  height: 62px;
  width: auto;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  padding: 5px;
  box-shadow: var(--shadow-card);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease), height 0.3s var(--ease);
}

/* Header starts on top of a dark hero photo on every page: default to light
   text/icons. Once scrolled, the header gets a cream background, so switch
   everything to dark ink for contrast. */
.brand,
.nav-links a,
.lang-switch a {
  color: var(--color-cream);
}
.lang-switch { border-color: rgba(247, 240, 227, 0.45); }
.nav-toggle span { background: var(--color-cream); }

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav-links a,
.site-header.is-scrolled .lang-switch a {
  color: var(--color-ink);
}
.site-header.is-scrolled .lang-switch {
  background: var(--color-cream-alt);
  border-color: rgba(43, 36, 32, 0.35);
}
.site-header.is-scrolled .lang-switch a.is-active {
  color: var(--color-cream);
}
.site-header.is-scrolled .nav-toggle span { background: var(--color-ink); }
.site-header.is-scrolled .brand img {
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: 50px;
}

/* The mobile menu overlay is always solid cream, regardless of scroll state */
.site-header.nav-open .nav-links a { color: var(--color-ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-ink);
}
.dropdown a:hover { background: var(--color-cream-alt); }
.dropdown a::after { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(43, 36, 32, 0.25);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 6px 12px;
}
.lang-switch a.is-active {
  background: var(--color-wine);
  color: var(--color-cream);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 97;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-ink);
  margin: 6px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--color-cream);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Used when the hero photo is a portrait of a person we don't want cropped
   or hidden behind the text column: dock the photo to the right in its own
   panel (a fraction of the hero width) and let the rest stay solid ink so
   the text column always has clean space, at any viewport width. */
.hero-media.contain-right {
  background: var(--color-ink);
}
.hero-media.contain-right img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  object-position: 35% 25%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 20, 20, 0.35) 0%, rgba(30, 14, 16, 0.35) 45%, rgba(20, 9, 10, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 140px 90px;
}
.hero .eyebrow { color: var(--color-gold-light); }
.hero .eyebrow::before { background: var(--color-gold-light); }
.hero h1 { color: var(--color-white); max-width: 15ch; }
.hero .lede { color: rgba(247, 240, 227, 0.88); font-size: 1.2rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 2rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 3.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 240, 227, 0.25);
}
.hero-facts div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-gold-light);
}
.hero-facts div span {
  font-size: 0.85rem;
  color: rgba(247, 240, 227, 0.75);
}

/* smaller inner-page hero */
.hero-inner {
  min-height: 62vh;
  align-items: center;
}
.hero-inner .hero-content { padding-block: 160px 60px; text-align: center; }
.hero-inner h1 { max-width: none; margin-inline: auto; }
.hero-inner .lede { margin-inline: auto; }
.hero-inner .eyebrow { justify-content: center; }
.hero-inner .breadcrumb {
  margin-inline: auto;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(247, 240, 227, 0.7);
  margin-bottom: 1.2rem;
}
.breadcrumb a:hover { color: var(--color-gold-light); }

/* --------------------------------------------------------------------------
   Grids & Cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-wine);
  margin-bottom: 18px;
}

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-card);
}
.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,9,10,0) 35%, rgba(20,9,10,0.88) 100%);
}
.event-card-body {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 26px;
  color: var(--color-cream);
}
.event-card-body span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-light);
}
.event-card-body h3 { color: var(--color-white); margin-bottom: 0.3em; }
.event-card-body p {
  font-size: 0.9rem;
  color: rgba(247, 240, 227, 0.82);
  margin-bottom: 0.8em;
}
.event-card:hover img { transform: scale(1.06); }
.event-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cream);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* checklist */
.checklist { display: grid; gap: 14px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.02rem;
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-wine);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}
.section-wine .checklist li::before {
  background: var(--color-gold);
  color: var(--color-wine-dark);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 10px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.3em;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery a:hover img { transform: scale(1.07); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 9, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--color-cream);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Testimonial / quote block */
.quote-block {
  border-left: 3px solid var(--color-gold);
  padding-left: 28px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-ink);
}

/* Testimonials grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-stars {
  color: var(--color-gold);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-ink);
  margin: 0;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
}
.testimonial-author strong { color: var(--color-wine); font-size: 0.92rem; }
.testimonial-author span { color: var(--color-ink-soft); }

/* "Conoce mi historia completa" style link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-wine);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover {
  border-color: var(--color-wine);
  gap: 12px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(43, 36, 32, 0.15);
  padding-block: 22px;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-wine);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 14px;
  color: var(--color-ink-soft);
  max-width: 65ch;
}

/* --------------------------------------------------------------------------
   Contact / form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(43, 36, 32, 0.25);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-wine);
  box-shadow: 0 0 0 3px rgba(110, 30, 46, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-info-list { display: grid; gap: 22px; margin-top: 2rem; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-cream-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-wine); flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */
.legal-content { max-width: 780px; margin-inline: auto; }
.legal-content h2 { margin-top: 2em; font-size: 1.6rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin-top: 1.4em; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; }
.legal-content a { color: var(--color-wine); text-decoration: underline; }
.legal-content strong { color: var(--color-ink); }
.legal-updated { color: var(--color-ink-soft); font-size: 0.9rem; margin-bottom: 2.5em; }
.legal-hero { padding-block: 160px 0; }
.legal-hero .breadcrumb { color: var(--color-ink-soft); }
.legal-hero .breadcrumb a:hover { color: var(--color-wine); }
.legal-hero h1 { max-width: 20ch; }
.legal-body { padding-block: 20px clamp(64px, 9vw, 120px); }

/* Checkbox de aceptación de privacidad en los formularios */
.form-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  line-height: 1.4;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-wine);
  flex-shrink: 0;
  cursor: pointer;
}
.form-consent a { color: #1a56db; text-decoration: underline; }
.form-consent a:hover { color: #143fa8; }
.form-consent label { cursor: pointer; }

/* Banner de consentimiento de cookies */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  z-index: 997;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 260px; color: rgba(247, 240, 227, 0.85); }
.cookie-banner a { color: var(--color-gold-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 20px; font-size: 0.85rem; white-space: nowrap; }
.cookie-banner .btn-ghost { border-color: rgba(247, 240, 227, 0.4); color: var(--color-cream); }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

/* --------------------------------------------------------------------------
   Quote modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(20, 9, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-scroll {
  padding: 40px;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 1;
  color: var(--color-ink-soft);
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}
.modal-close:hover { color: var(--color-wine); }
@media (max-width: 560px) {
  .modal-scroll { padding: 28px 20px; }
  .modal-scroll .form-row { grid-template-columns: 1fr; }
}

/* Flecha que indica que el modal tiene más contenido abajo (solo visible
   cuando el contenido no cabe entero, ver lógica en main.js) */
.modal-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-wine);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.25s var(--ease);
  animation: modal-scroll-bounce 1.4s ease-in-out infinite;
}
.modal-scroll-hint.is-visible { opacity: 1; visibility: visible; }
@keyframes modal-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Confirmación de envío: sustituye por completo al formulario */
.form-sent { text-align: center; padding: 20px 0; }
.form-sent-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-wine);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.form-sent-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-wine-dark);
  margin: 0 0 8px;
}
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-message-error {
  background: rgba(43, 36, 32, 0.06);
  color: var(--color-ink);
  border: 1px solid rgba(43, 36, 32, 0.25);
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(247, 240, 227, 0.75);
  padding-block: 70px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(247, 240, 227, 0.12);
}
.footer-brand .brand { color: var(--color-cream); margin-bottom: 14px; }
.footer-col h4 {
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(247, 240, 227, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--color-wine); border-color: var(--color-wine); }

/* --------------------------------------------------------------------------
   Floating WhatsApp button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
/* Visible by default (no-JS / no-IntersectionObserver safe). Only hidden-then-revealed
   once JS confirms it can control the animation (see .reveal-ready in main.js). */
[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.tag {
  padding: 9px 20px;
  background: var(--color-wine);
  color: var(--color-cream);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-card);
}
.tag.tag-gold {
  background: var(--color-gold);
  color: var(--color-wine-dark);
}
.stat-row {
  display: flex;
  gap: 50px;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-wine);
}
.stat-row span { font-size: 0.85rem; color: var(--color-ink-soft); }

.related-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cta-banner {
  border-radius: var(--radius-lg);
  background: var(--color-wine);
  color: var(--color-cream);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 0.2em; }
.cta-banner p { color: rgba(247, 240, 227, 0.82); margin-bottom: 0; max-width: 46ch; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .related-strip { grid-template-columns: 1fr; }
  .testimonial-grid, .testimonial-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-cream);
    gap: 28px;
    z-index: 95;
  }
  .site-header.nav-open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    text-align: center;
  }
  .site-header.nav-open .nav-actions .lang-switch {
    display: flex;
    position: fixed;
    top: 20px;
    right: 76px;
    z-index: 96;
  }
  /* No room for a side-docked photo panel on narrow screens: go back to a
     full-bleed cover, framed to keep the person in view, with a wine-tinted
     semi-transparent layer (instead of the dark corner-to-corner gradient)
     so the photo still reads through while the text stays legible. */
  .hero-media.contain-right img {
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 0;
    object-fit: cover;
    object-position: 30% 55%;
  }
  .hero-media.contain-right::after {
    background: rgba(78, 20, 32, 0.6);
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .testimonial-grid, .testimonial-grid.cols-2 { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero-content { padding-block: 120px 60px; }
}

