/* =========================================================
   Floristería Elena — Propuesta de rediseño
   Estética floral y natural: verde salvia, rosa empolvado y
   crema cálido. Tipografía serif delicada + sans geométrica.
   Redondeado con mesura (ni festivo infantil, ni severo).
   ========================================================= */

:root {
  /* Marca */
  --green-900: #33422f;
  --green-700: #5c7a52;
  --green-500: #8ba77c;
  --green-300: #bcd2ac;
  --green-050: #eef3ea;

  --blush-700: #b97b8a;
  --blush-500: #d79aa8;
  --blush-300: #f3dbe0;
  --blush-050: #fbf1f2;

  --gold: #c9a15a;

  /* Neutros — crema cálido, no blanco de "app" */
  --ink: #3a352f;
  --ink-soft: #74695f;
  --line: #e7ddcf;
  --bg: #fbf8f2;
  --bg-soft: #f3ede1;
  --bg-dark: #2a332a;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 5px 16px rgba(58, 53, 47, .07);
  --shadow: 0 16px 38px rgba(58, 53, 47, .13);
  --shadow-lg: 0 26px 60px rgba(58, 53, 47, .2);

  --maxw: 1160px;
  --ease: cubic-bezier(.19, .84, .32, 1);

  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -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.12; font-weight: 600; letter-spacing: 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 500; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blush-700);
  background: var(--blush-050);
  padding: 7px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--blush-300);
}

.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 h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-style: italic; margin: 16px 0 12px; color: var(--green-900); font-weight: 500; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
  padding: 14px 27px; border-radius: var(--radius-pill);
  cursor: pointer; border: 1.5px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 10px 22px rgba(92, 122, 82, .32); }
.btn-primary:hover { background: var(--green-900); box-shadow: 0 16px 30px rgba(92, 122, 82, .4); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 10px 22px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: #1ebe5a; }
.btn-ghost { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-500); }
.btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(251,248,242,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 22px rgba(58,53,47,.08); padding: 11px 0; }

/* Header sobre el hero (foto): mientras no se hace scroll, texto claro con velo */
.header--hero:not(.scrolled)::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(30,36,26,.55), rgba(30,36,26,0));
  z-index: 0;
}
.header .nav { position: relative; z-index: 5; }
.header--hero:not(.scrolled) .brand { color: #fff; }
.header--hero:not(.scrolled) .nav-links > a { color: rgba(255,255,255,.92); }
.header--hero:not(.scrolled) .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.header--hero:not(.scrolled) .btn-ghost:hover { background: rgba(255,255,255,.26); }
.header--hero:not(.scrolled) .burger { color: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 600; font-style: italic; font-size: 1.5rem; color: var(--green-900); }
.brand b { font-style: normal; font-weight: 700; color: var(--blush-700); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: .94rem; color: var(--ink); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--blush-500); border-radius: 2px; 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 */
.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 — evita la barra sólida "cerrada"
   tapando la cabecera. z-index por debajo de .header .nav 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: 92px 26px 26px; }
.mm-link { padding: 14px 6px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1.02rem; 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: 150px 0 80px;
  background-image:
    linear-gradient(180deg, rgba(30,36,26,.25) 0%, rgba(30,36,26,.45) 48%, rgba(24,29,21,.88) 100%),
    url('img/hero-escaparate.jpg');
  background-size: cover;
  background-position: center 55%;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 660px; }
.hero .eyebrow { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-inner h1 { color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.3rem); font-weight: 500; }
.hero-inner h1 em { font-style: italic; color: var(--blush-300); font-weight: 600; }
.hero-inner p.lead { font-size: 1.16rem; color: rgba(255,255,255,.9); margin: 20px 0 30px; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.hero-trust small { color: rgba(255,255,255,.82); font-size: .9rem; }
.hero-trust b { color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-badge {
  background: rgba(255,255,255,.97); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 17px; display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
}
.hero-badge .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.hero-badge small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); font-size: .74rem; }
.hero-badge .ico.i-1 { background: var(--green-050); }
.hero-badge .ico.i-2 { background: var(--blush-050); }

/* ---------- Marquee strip ---------- */
.strip { background: var(--bg-dark); color: #fff; padding: 15px 0; overflow: hidden; }
.marquee { display: flex; gap: 46px; width: max-content; animation: slide 32s 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: 11px; opacity: .9; }
.marquee span::before { content: '❀'; color: var(--blush-500); 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+9) { 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: 24px; font-size: 1.02rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.trait .ico { font-size: 1.3rem; flex-shrink: 0; width: 30px; }
.trait h4 { font-size: 1.03rem; margin-bottom: 3px; font-family: var(--font-body); font-weight: 600; }
.trait p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .about-photo { aspect-ratio: 16/9; } }

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

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }
.serv {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.serv:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.serv::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--blush-500)); }
.serv .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.serv .emoji { font-size: 1.9rem; }
.serv .tag { font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--green-700); background: var(--green-050); padding: 5px 12px; border-radius: var(--radius-pill); }
.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; font-size: 14rem; right: -10px; bottom: -60px; opacity: .08; }
.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.3rem, 5vw, 3.3rem); line-height: 1; color: var(--blush-300); }
.stat .lbl { margin-top: 8px; font-size: .97rem; opacity: .92; }

/* ---------- Galería ---------- */
.gallery-teaser, .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); }
.gallery-teaser figure:hover img, .gallery figure:hover img { transform: scale(1.06); }
@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(30,36,26,.94); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.35rem; 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%); }

/* ---------- Ocasiones ---------- */
.occasions { background: var(--bg-soft); }
.occ-list { display: flex; flex-wrap: wrap; gap: 13px; }
.occ-chip {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.05rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 22px; 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(--blush-500); background: var(--blush-050); }

/* ---------- Info práctica ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-item .ico { font-size: 1.4rem; flex: 0 0 auto; }
.info-item h4 { font-size: 1.03rem; margin-bottom: 3px; font-family: var(--font-body); font-weight: 600; }
.info-item p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Horario ---------- */
.horario-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,38px); box-shadow: var(--shadow-sm); }
.horario-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.horario-row:last-child { border-bottom: 0; }
.horario-row b { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-900); }
.horario-note { margin-top: 16px; background: var(--blush-050); border: 1px dashed var(--blush-300); border-radius: var(--radius); padding: 14px 18px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 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.6rem); margin-bottom: 8px; font-style: italic; color: var(--green-900); }
.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: 13px; background: var(--green-050); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.contact-line small { display: block; color: var(--ink-soft); font-size: .82rem; }
.contact-line b { font-family: var(--font-display); font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--green-050); color: var(--green-700); transition: transform .3s var(--ease), background .3s, color .3s; }
.socials a:hover { transform: translateY(-4px); background: var(--green-700); color: #fff; }
.socials svg { width: 20px; height: 20px; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 400px; border: 7px solid #fff; }
.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 { text-align: center; }
.cta-box { background: linear-gradient(135deg, var(--blush-700), var(--green-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(42px, 7vw, 78px) 24px; position: relative; overflow: hidden; }
.cta-box::before, .cta-box::after { content: '❀'; position: absolute; font-size: 5.5rem; opacity: .18; }
.cta-box::before { top: -6px; left: 4%; }
.cta-box::after { bottom: -16px; right: 5%; }
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 14px; font-style: italic; }
.cta-box p { font-size: 1.1rem; opacity: .95; max-width: 46ch; margin: 0 auto 28px; }
.cta-box .btn-ghost { background: #fff; color: var(--blush-700); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #d9e0d4; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand b { color: var(--blush-300); }
.footer p { font-size: .93rem; opacity: .78; max-width: 34ch; }
.footer h5 { color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: .93rem; opacity: .82; transition: opacity .2s, color .2s; }
.footer ul a:hover { opacity: 1; color: var(--blush-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; opacity: .7; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
/* La floristería SÍ publica WhatsApp Business real (api.whatsapp.com en su web
   actual), así que el botón persistente es WhatsApp, no llamada. */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.5); transition: transform .3s var(--ease); animation: pulse 2.8s infinite; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse { 0% { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); 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: 620px) {
  .hero { min-height: auto; padding-top: 128px; padding-bottom: 54px; background-position: 62% center; }
  .hero-badge { display: none; }
  .footer-bottom { text-align: center; justify-content: center; }
}
