/* =============================================================
   Vita Decoraciones — Bilingual elegant event-decor site
   Palette extracted from original Elementor CSS.
   ============================================================= */

:root {
  --vd-charcoal: #5D5E61;
  --vd-slate:    #989FA7;
  --vd-mist:     #ADBAC0;
  --vd-cream:    #F1EDE9;
  --vd-cream-2:  #FAF6F1;
  --vd-forest:   #193D12;
  --vd-forest-2: #2A5B22;
  --vd-coral:    #ff622a;
  --vd-gold:     #FFCC00;
  --vd-ivory:    #FFFFFF;

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-w: 1200px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 2px 12px rgba(25, 61, 18, 0.06);
  --shadow-md: 0 12px 40px rgba(25, 61, 18, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--vd-charcoal);
  background: var(--vd-ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--vd-forest); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--vd-coral); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--vd-charcoal);
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--cream { background: var(--vd-cream); }
.section--dark  { background: var(--vd-forest); color: #E8E5DE; }
.section--dark h2 { color: var(--vd-cream); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(173,186,192,0.25);
  transition: padding .25s var(--ease);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max-w); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 44px; width: auto; }
.brand-name {
  font-family: var(--font-serif); font-size: 1.35rem;
  color: var(--vd-charcoal); letter-spacing: .02em;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0;
  font-size: .92rem; text-transform: uppercase; letter-spacing: .12em;
}
.nav-links a { color: var(--vd-charcoal); }
.nav-links a:hover { color: var(--vd-forest); }
.lang-toggle {
  display: flex; gap: .25rem; align-items: center;
  font-size: .82rem; letter-spacing: .15em;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer; padding: .3rem .5rem;
  font: inherit; color: var(--vd-slate); letter-spacing: inherit;
}
.lang-toggle button.active { color: var(--vd-forest); font-weight: 600; }
.lang-toggle span { color: var(--vd-mist); }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; padding: 0;
}
.menu-btn span {
  display: block; width: 100%; height: 2px;
  background: var(--vd-charcoal); margin: 6px 0; transition: transform .3s var(--ease);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 86vh, 820px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--vd-charcoal);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 8s var(--ease);
}
.hero.loaded .hero__bg { transform: scale(1); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(25,61,18,0.25) 0%, rgba(25,61,18,0.55) 100%);
}
.hero__content {
  position: relative; text-align: center; color: var(--vd-ivory);
  padding: 0 var(--gutter); max-width: 860px;
}
.hero__kicker {
  font-family: var(--font-sans); font-weight: 300;
  text-transform: uppercase; letter-spacing: .35em; font-size: .85rem;
  margin-bottom: 1.4rem; color: rgba(255,255,255,.85);
}
.hero h1 {
  color: var(--vd-ivory);
  font-weight: 300; font-style: italic;
}
.hero__sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 540px; margin: 0 auto 2rem;
  color: rgba(255,255,255,.92);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .95rem 2.2rem;
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s var(--ease);
  background: transparent;
}
.btn--solid { background: var(--vd-forest); color: var(--vd-ivory); border-color: var(--vd-forest); }
.btn--solid:hover { background: var(--vd-forest-2); border-color: var(--vd-forest-2); color: var(--vd-ivory); }
.btn--ghost { color: var(--vd-ivory); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--vd-ivory); }
.btn--coral { background: var(--vd-coral); color: #fff; border-color: var(--vd-coral); }
.btn--coral:hover { filter: brightness(.92); color: #fff; }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head__eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-size: .75rem;
  color: var(--vd-forest); margin-bottom: 1rem; font-weight: 500;
}
.section-head__sub { color: var(--vd-slate); font-size: 1.05rem; }
.divider-flower {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: .5rem 0 1.5rem; color: var(--vd-coral);
}
.divider-flower::before, .divider-flower::after {
  content: ""; width: 44px; height: 1px; background: var(--vd-mist);
}

/* ---------- about ---------- */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.1fr 1fr; align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-grid p { font-size: 1.05rem; color: #6e6f72; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2rem;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-serif); font-size: 2.2rem;
  color: var(--vd-forest); line-height: 1;
}
.stat__label {
  text-transform: uppercase; font-size: .72rem; letter-spacing: .2em;
  color: var(--vd-slate); margin-top: .5rem;
}

/* ---------- services ---------- */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service {
  background: var(--vd-ivory); border: 1px solid rgba(173,186,192,.35);
  padding: 2.2rem 1.8rem; border-radius: var(--radius);
  text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--vd-coral);
  transition: width .4s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service:hover::before { width: 60%; }
.service__icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--vd-forest);
}
.service__icon svg { width: 100%; height: 100%; stroke-width: 1.2; }
.service h3 { color: var(--vd-charcoal); margin-bottom: .6rem; }
.service p { font-size: .95rem; color: #76777a; margin: 0; }

/* ---------- gallery preview ---------- */
.gallery-preview {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.gallery-preview a {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: block;
}
.gallery-preview a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(25,61,18,.4) 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-preview a:hover::after { opacity: 1; }
.gallery-preview img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-preview a:hover img { transform: scale(1.06); }
.gallery-preview a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- full gallery (gallery.html) ---------- */
.gallery-filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .5rem; margin-bottom: 2.5rem;
}
.filter-btn {
  background: none; border: 1px solid var(--vd-mist);
  padding: .55rem 1.3rem; font: inherit; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--vd-charcoal); cursor: pointer; border-radius: 999px;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--vd-forest); color: var(--vd-forest); }
.filter-btn.active { background: var(--vd-forest); color: #fff; border-color: var(--vd-forest); }
.gallery-grid {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 260px;
}
.gallery-grid figure {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figure.tall { grid-row: span 2; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,20,20,.94);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: 1px solid rgba(255,255,255,.4);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 1.3rem;
}
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
}
.contact-form { display: grid; gap: 1rem; }
.contact-form label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--vd-slate); display: block; margin-bottom: .35rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: .85rem 1rem;
  font: inherit; font-size: .95rem;
  border: 1px solid var(--vd-mist); border-radius: var(--radius);
  background: var(--vd-ivory); color: var(--vd-charcoal);
  transition: border-color .2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none; border-color: var(--vd-forest);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { font-size: .9rem; padding: .8rem 1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e9f3e6; color: var(--vd-forest); }
.form-status.err { display: block; background: #fde4dc; color: #a02a13; }

.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .icon {
  width: 40px; height: 40px; flex: none; color: var(--vd-forest);
  display: flex; align-items: center; justify-content: center;
}
.info-item h4 { margin: 0 0 .2rem; font-family: var(--font-sans); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--vd-slate); }
.info-item p { margin: 0; font-size: 1rem; color: var(--vd-charcoal); }
.map-wrap {
  margin-top: 2.5rem; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--vd-charcoal); color: #cdced0; padding: 3.5rem 0 1.5rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  font-family: var(--font-sans); font-size: .75rem; letter-spacing: .25em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.site-footer a { color: #cdced0; }
.site-footer a:hover { color: var(--vd-coral); }
.footer-brand .brand-name { color: #fff; }
.social { display: flex; gap: .8rem; margin-top: 1rem; }
.social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.social a:hover { border-color: var(--vd-coral); color: var(--vd-coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem;
  text-align: center; font-size: .8rem; color: #9a9b9d;
}

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 90; transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ---------- helpers / lang toggling ---------- */
[data-lang] { display: none; }
html[lang="es"] [data-lang="es"],
html[lang="en"] [data-lang="en"] { display: revert; }
/* keep inline displays correct */
html[lang="es"] span[data-lang="es"],
html[lang="en"] span[data-lang="en"] { display: inline; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-preview a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--vd-mist);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; border-top: 1px solid #eee; }
  .nav-links a { display: block; padding: 1rem var(--gutter); }
}
@media (max-width: 520px) {
  .about-stats { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}

/* ====== v3 fixes: hero readability + mobile ====== */

/* Darker gradient overlay on the hero for legibility against busy florals */
.hero__bg::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.68) 100%);
}

/* Hero kicker — bolder + strong shadow */
.hero__kicker {
  font-weight: 500;
  color: #fff;
  letter-spacing: .3em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.7), 0 0 18px rgba(0,0,0,0.4);
}

/* Hero headline — keep elegant serif italic but heavier and shadowed */
.hero h1 {
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55), 0 0 32px rgba(0,0,0,0.35);
}

/* Hero subtitle */
.hero__sub {
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* Hero content layout: flex column so buttons stack cleanly */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__content .btn {
  margin: 0.4rem 0.3rem;
}
.hero__content .btn--ghost {
  background: rgba(0,0,0,0.18);
  border-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.hero__content .btn--ghost:hover {
  background: rgba(255,255,255,0.18);
}

/* Mobile-first hero tweaks */
@media (max-width: 600px) {
  .hero { min-height: 88vh; }
  .hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    line-height: 1.18;
  }
  .hero__kicker {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
  }
  .hero__sub {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero__content {
    width: 100%;
    padding: 0 1.25rem;
    box-sizing: border-box;
  }
  .hero__content .btn {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0.4rem auto;
    text-align: center;
  }
  /* About / Services / Contact spacing */
  .section { padding: 3.5rem 0; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .nav-wrap { padding: 0.7rem 1rem; }
  .brand img { height: 36px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem; }
  .hero__kicker { font-size: 0.6rem; letter-spacing: 0.16em; }
}
