/* =========================================================
   Rafael Gares Floristas — Propuesta de rediseño
   Estética editorial de floristería nupcial: marfil cálido,
   verde botella profundo y dorado envejecido. Sin rosa/blush
   (para no repetir la paleta de Floristería Elena) y sin
   pastilla/pill everywhere: formas contenidas, serif fino,
   mucho blanco. Sofisticado, no infantil ni "app festiva".
   ========================================================= */

:root {
  /* Marca */
  --green-900: #16261d;
  --green-700: #2f4a37;
  --green-500: #4c6e56;
  --green-300: #9db6a2;
  --green-050: #eef2ec;

  --gold: #b3915a;
  --gold-light: #d9c396;
  --gold-dark: #8a6f42;

  /* Neutros — marfil cálido, no blanco de "app" */
  --ink: #262420;
  --ink-soft: #6b6459;
  --line: #e4ddd0;
  --bg: #fdfbf6;
  --bg-soft: #f4efe4;
  --bg-dark: #16201a;
  --white: #ffffff;

  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 5px 16px rgba(38, 36, 32, .07);
  --shadow: 0 16px 38px rgba(38, 36, 32, .13);
  --shadow-lg: 0 26px 60px rgba(38, 36, 32, .2);

  --maxw: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-accent: 'Italiana', 'Georgia', serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 600; letter-spacing: 0; color: var(--green-900); }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-accent); font-weight: 400; font-size: .88rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section { padding: clamp(60px, 8vw, 112px) 0; }
.section-head { max-width: 660px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--gold); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 16px 0 14px; font-weight: 500; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  cursor: pointer; border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-wa { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: #25D366; color: #1a8f47; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(253,251,246,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 22px rgba(38,36,32,.08); padding: 13px 0; }

/* Header sobre el hero (foto): mientras no se hace scroll, velo oscuro + texto claro */
.header--hero:not(.scrolled)::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,18,14,.6), rgba(12,18,14,0));
  z-index: 0;
}
.header .nav { position: relative; z-index: 5; }
.header--hero:not(.scrolled) .brand { color: #fff; }
.header--hero:not(.scrolled) .brand b { color: var(--gold-light); }
.header--hero:not(.scrolled) .nav-links > a { color: rgba(255,255,255,.9); }
.header--hero:not(.scrolled) .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.header--hero:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.22); border-color: var(--gold-light); color: var(--gold-light); }
.header--hero:not(.scrolled) .burger { color: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 7px; font-family: var(--font-accent); font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; color: var(--green-900); }
.brand b { font-weight: 400; color: var(--gold-dark); }
.brand small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Botón hamburguesa: dos SVG superpuestos (menú/cierre), alternados por .menu-open.
   Un único control: el mismo botón abre y cierra, sin botón extra en el panel. */
.burger { display: none; position: relative; background: none; border: 0; width: 26px; height: 26px; cursor: pointer; color: var(--green-900); }
.burger svg { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; transition: opacity .2s; }
.burger .icon-close { opacity: 0; }
.header.menu-open .burger .icon-menu { opacity: 0; }
.header.menu-open .burger .icon-close { opacity: 1; }

/* Panel desplegable: SIN padding propio en el elemento animado (max-height) —
   el padding real vive en .mobile-menu-inner. Si el elemento que anima
   max-height tuviera padding propio, "cerrado" dejaría una barra sólida
   tapando la cabecera (padding no se comprime bajo max-height:0).
   z-index por debajo de .header .nav (5) para que marca + hamburguesa
   queden siempre visibles y pulsables con el menú abierto. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--bg); box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 96px 26px 26px; }

/* Con el menú abierto (panel claro), la cabecera pasa siempre a su versión
   oscura, aunque siga en scrollY 0 sobre la foto del hero: si no, la marca y
   la "X" heredan el blanco de .header--hero:not(.scrolled) y quedan casi
   invisibles ("fantasma") sobre el fondo claro del panel desplegable. */
.header.menu-open::before { display: none; }
.header.menu-open .brand,
.header.menu-open .brand small,
.header.menu-open .burger { color: var(--green-900); }
.header.menu-open .brand b { color: var(--gold-dark); }
.mm-link { padding: 15px 6px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.mobile-menu-inner > .mm-link:last-of-type { border-bottom: 0; }
.mm-cta { width: 100%; justify-content: center; margin-top: 16px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .nav-cta .btn-ghost, .nav .nav-cta .btn-primary { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 152px 0 82px;
  background-image:
    linear-gradient(180deg, rgba(12,18,14,.28) 0%, rgba(12,18,14,.5) 48%, rgba(8,13,10,.9) 100%),
    url('img/foto-01.jpg');
  background-size: cover;
  background-position: center 38%;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero-inner h1 { color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.2rem); font-weight: 500; margin: 20px 0 18px; }
.hero-inner h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero-inner p.lead { font-family: var(--font-body); font-size: 1.1rem; color: rgba(255,255,255,.88); max-width: 40ch; margin-bottom: 30px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badge {
  background: rgba(255,255,255,.96); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem; background: var(--green-050); flex: 0 0 auto; }
.hero-badge b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--green-900); }
.hero-badge small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); font-size: .72rem; letter-spacing: .02em; }

/* ---------- Marquee strip ---------- */
.strip { background: var(--bg-dark); color: #fff; padding: 15px 0; overflow: hidden; }
.marquee { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.marquee span { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.08rem; display: inline-flex; align-items: center; gap: 44px; color: var(--gold-light); opacity: .92; }
.marquee span::after { content: '◆'; font-size: .5rem; color: var(--green-300); margin-left: 44px; font-style: normal; }
@media (min-width: 981px) {
  .marquee { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; row-gap: 10px; }
  .marquee span:nth-child(n+7) { display: none; }
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sobre la floristería (texto + foto) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 1.03rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); font-weight: 600; flex-shrink: 0; width: 28px; }
.trait h4 { font-size: 1.02rem; margin-bottom: 4px; font-weight: 600; }
.trait p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } .about-photo { aspect-ratio: 16/9; } }

.zones { background: var(--bg-soft); }

/* ---------- Servicios de boda ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.serv {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.serv:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.serv-photo { aspect-ratio: 1/1; overflow: hidden; }
.serv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.serv:hover .serv-photo img { transform: scale(1.06); }
.serv-body { padding: 22px 22px 24px; }
.serv h3 { font-size: 1.18rem; margin-bottom: 6px; font-weight: 600; }
.serv p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 58px); position: relative; overflow: hidden; }
.stats::after { content: ''; position: absolute; inset: -30% -10% auto auto; width: 340px; height: 340px; border: 1px solid rgba(217,195,150,.14); border-radius: 50%; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; text-align: center; position: relative; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1; color: var(--gold-light); }
.stat .lbl { margin-top: 8px; font-size: .93rem; opacity: .88; }

/* ---------- Galería ---------- */
.gallery-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-teaser figure, .gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/5; cursor: pointer; position: relative; }
.gallery-teaser img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: saturate(.97); }
.gallery-teaser figure:hover img, .gallery figure:hover img { transform: scale(1.06); filter: saturate(1.05); }
.teaser-cta { text-align: center; margin-top: 6px; }
@media (max-width: 900px) { .gallery-teaser, .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-teaser, .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,18,14,.95); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Tienda / catálogo (chips) ---------- */
.occasions { background: var(--bg-dark); color: #fff; }
.occasions .eyebrow { color: var(--gold-light); }
.occasions .eyebrow::before, .occasions .eyebrow::after { background: var(--gold-light); }
.occasions .section-head h2 { color: #fff; }
.occasions .section-head p { color: rgba(255,255,255,.68); }
.occ-list { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.occ-chip {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.06rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(217,195,150,.35); border-radius: var(--radius-pill);
  color: #fff; padding: 12px 24px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.occ-chip:hover { transform: translateY(-3px); border-color: var(--gold-light); background: rgba(217,195,150,.1); }

/* ---------- Info práctica ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-item { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item h4 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.info-item p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 10px; }
.contact-card > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-050); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.contact-line small { display: block; color: var(--ink-soft); font-size: .8rem; }
.contact-line b { font-family: var(--font-display); font-size: 1.04rem; font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 400px; filter: grayscale(.1) sepia(.06); }
.map-card iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--bg-dark); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; color: var(--gold-light); }
.cta-box .eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--gold-light); }
.cta-box h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 16px 0; font-weight: 500; }
.cta-box p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 28px; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h5 { color: #fff; font-family: var(--font-accent); font-weight: 400; font-size: .92rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold-light); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand b { color: var(--gold-light); }
.footer p { font-size: .92rem; opacity: .78; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Llamar flotante ---------- */
/* La floristería no publica WhatsApp Business (solo teléfono fijo + un móvil
   reservado a urgencias por defunción, ver config.js), así que el CTA
   persistente en pantalla es "llamar" (tel:), el único canal 100% real hoy. */
.call-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: var(--green-900); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(217,195,150,.4); transition: transform .3s var(--ease);
}
.call-float:hover { transform: scale(1.06); background: var(--green-700); }
.call-float svg { width: 25px; height: 25px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

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

/* ---------- Responsive extra ---------- */
@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: 132px; padding-bottom: 58px; background-position: 30% center; }
  .hero-badges { gap: 10px; }
}
