/* =============================================================
   1. Tokens
   ============================================================= */
:root{
  --bg:#FBF6F4; --surface:#FFFFFF; --surface-2:#F4EBEF;
  --ink:#2B2230; --ink-soft:#6B5A68; --ink-faint:#9C8B97;
  --line:#E8DCE2; --script:#A34A76; --script-soft:#C97FA0; --gold:#C9A15F;
  --bird-a:#F1BBD6; --bird-b:#D8C3EE; --bird-c:#F6D2C9; --flower:#EDA1AC; --flower-core:#D9A94C;
  --cream:#FBF6F4;

  --font-script:"Alex Brush", cursive;
  --font-serif:"Cormorant Garamond", Georgia, serif;
  --font-sans:"Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 14px 34px rgba(60,30,50,.12);
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*,*::before,*::after{ box-sizing:border-box; margin:0; }
html{ -webkit-text-size-adjust:100%; tab-size:2; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  font-family:var(--font-sans); font-size:16px; line-height:1.65; color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:clip; overscroll-behavior-y:none;
}
img,svg,video{ display:block; max-width:100%; }
img{ height:auto; }
button{ font:inherit; color:inherit; cursor:pointer; border:0; background:none; }
a{ color:inherit; text-decoration:none; }
p{ text-wrap:pretty; color:var(--ink-soft); }
h1,h2,h3,h4{ font-family:var(--font-serif); font-weight:500; text-wrap:balance; line-height:1.08; color:var(--ink); }
ul{ list-style:none; padding:0; }
::selection{ background:var(--script); color:#fff; }
:focus-visible{ outline:2px solid var(--script); outline-offset:3px; border-radius:4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link{ position:fixed; top:-100px; left:1rem; padding:.7rem 1.1rem; background:var(--ink); color:#fff; z-index:9999; border-radius:8px; font-weight:600; font-size:.85rem; }
.skip-link:focus{ top:1rem; }
.container{ max-width:1180px; margin-inline:auto; padding-inline:24px; }
.eyebrow{ font-family:var(--font-serif); font-style:italic; color:var(--script); font-size:1rem; display:block; margin-bottom:10px; }
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal[data-split]{ opacity:1; transform:none; } /* defensive: never let split-text stay invisible */

/* =============================================================
   4. Typography helpers
   ============================================================= */
.script-word{ font-family:var(--font-script); font-weight:400; }
.section-head{ text-align:center; margin-bottom:38px; }
.section-head h2{ font-size:clamp(28px,4vw,40px); }
.section-head p{ max-width:56ch; margin:12px auto 0; font-size:15px; }

/* =============================================================
   5. Components
   ============================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 30px; border-radius:40px; font-size:14px; font-weight:600; letter-spacing:.01em;
  transition:transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s;
}
.btn-primary{ background:var(--script); color:#fff; box-shadow:0 10px 24px rgba(163,74,118,.28); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 30px rgba(163,74,118,.34); }
.btn-ghost{ background:transparent; border:1.5px solid rgba(255,255,255,.75); color:#fff; }
.btn-ghost:hover{ background:rgba(255,255,255,.12); transform:translateY(-2px); }
.btn-outline{ background:transparent; border:1.5px solid var(--script); color:var(--script); }
.btn-outline:hover{ background:var(--script); color:#fff; }
.btn-wa{ background:#3FAE6A; color:#fff; }
.btn-wa:hover{ transform:translateY(-2px); box-shadow:0 14px 26px rgba(63,174,106,.32); }

.chip{ font-size:12.5px; padding:8px 18px; border-radius:22px; border:1px solid var(--line); color:var(--ink-soft); background:var(--surface); transition:all .25s var(--ease-out); }
.chip.is-active,.chip:hover{ background:var(--script); border-color:var(--script); color:#fff; }

.tag{ font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; padding:4px 12px; border-radius:20px; font-weight:600; }
.tag-clasico{ background:#F1ECF9; color:#B7A4D6; }
.tag-romantico{ background:#FBEBF1; color:#C97FA0; }
.tag-realeza{ background:#FBF1E3; color:#C9955A; }
.tag-insignia{ background:#FBE4EC; color:#B23A73; }

.card-product{
  background:var(--surface); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  transition:transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.card-product:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.card-product .img-wrap{ aspect-ratio:4/5; overflow:hidden; }
.card-product img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-out); }
.card-product:hover img{ transform:scale(1.045); }
.card-product .body{ padding:16px 18px 20px; }
.card-product .name{ font-size:20px; margin-bottom:4px; }
.card-product .from{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-faint); }
.card-product .price{ font-size:16px; color:var(--script); font-weight:700; font-variant-numeric:tabular-nums; }
.card-product .cta{ margin-top:12px; display:block; text-align:center; font-size:12.5px; border:1px solid var(--line); border-radius:22px; padding:9px; color:var(--ink-soft); transition:all .25s; }
.card-product:hover .cta{ border-color:var(--script); color:var(--script); }

/* =============================================================
   6. Header / Nav
   ============================================================= */
.site-header{
  position:sticky; top:0; z-index:100; height:var(--nav-h);
  display:flex; align-items:center; background:rgba(251,246,244,.86); backdrop-filter:blur(14px) saturate(160%); -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)){ .site-header{ background:var(--bg); } }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-script); font-size:28px; color:var(--script); }
.brand svg{ width:30px; height:auto; flex:none; }
.nav-links{ display:none; gap:30px; font-size:14px; color:var(--ink-soft); font-weight:500; }
.nav-links a{ position:relative; padding:4px 0; transition:color .25s; }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px; background:var(--script); transition:right .3s var(--ease-out); }
.nav-links a:hover,.nav-links a[aria-current="page"]{ color:var(--script); }
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{ right:0; }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-actions .btn{ padding:10px 20px; font-size:13px; display:none; }
.nav-toggle{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; }
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{ content:""; display:block; width:20px; height:2px; background:var(--ink); position:relative; transition:transform .3s, opacity .3s; }
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle.is-open span{ background:transparent; }
.nav-toggle.is-open span::before{ transform:translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after{ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:var(--nav-h) 0 0 0; background:var(--bg); z-index:99;
  transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .3s var(--ease-out), transform .3s var(--ease-out);
  display:flex; flex-direction:column; padding:30px 24px; gap:6px;
}
.mobile-menu.is-open{ opacity:1; transform:none; pointer-events:auto; }
.mobile-menu a{ font-family:var(--font-serif); font-size:26px; padding:14px 4px; border-bottom:1px solid var(--line); }
.mobile-menu .btn{ margin-top:20px; }

@media (min-width:960px){
  .nav-links{ display:flex; }
  .nav-actions .btn{ display:inline-flex; }
  .nav-toggle{ display:none; }
  .mobile-menu{ display:none; }
}

/* =============================================================
   7. Sections — Hero
   ============================================================= */
.hero{ position:relative; min-height:640px; min-height:100svh; display:flex; align-items:center; }
.hero .bg{ position:absolute; inset:0; overflow:hidden; }
.hero .bg img{ width:100%; height:100%; object-fit:cover; object-position:50% 25%; transform:scale(1.06); }
.hero .bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(23,12,18,.78), rgba(23,12,18,.15) 60%); }
.hero-content{ position:relative; z-index:1; color:#fff; max-width:560px; padding-top:var(--nav-h); }
.hero-content .eyebrow{ color:#F1D3E0; }
.hero-content h1{ font-size:clamp(38px,6vw,64px); color:#fff; margin-bottom:18px; }
.hero-content p{ color:rgba(255,255,255,.88); font-size:16px; max-width:42ch; margin-bottom:28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-scroll{ position:absolute; bottom:28px; left:50%; transform:translateX(-50%); color:#fff; font-size:11px; letter-spacing:.12em; text-transform:uppercase; opacity:.75; display:flex; flex-direction:column; align-items:center; gap:8px; z-index:1; }
.hero-scroll .line{ width:1px; height:34px; background:rgba(255,255,255,.5); overflow:hidden; }
.hero-scroll .line::after{ content:""; display:block; width:100%; height:50%; background:#fff; animation:scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine{ 0%{ transform:translateY(-100%);} 100%{ transform:translateY(200%);} }

/* =============================================================
   8. Categories
   ============================================================= */
.cat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.cat-card{ position:relative; border-radius:16px; overflow:hidden; aspect-ratio:3/4; }
.cat-card img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-out); }
.cat-card:hover img{ transform:scale(1.06); }
.cat-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,10,15,.72), transparent 55%); }
.cat-card .lbl{ position:absolute; left:20px; right:20px; bottom:20px; color:#fff; z-index:1; }
.cat-card .lbl span{ display:block; }
.cat-card .lbl .t1{ font-family:var(--font-serif); font-size:22px; }
.cat-card .lbl .t2{ font-size:12px; opacity:.85; margin-top:2px; }

/* =============================================================
   9. Bestsellers / product grids
   ============================================================= */
.product-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }

/* =============================================================
   10. Trust / proof
   ============================================================= */
.trust{ display:grid; grid-template-columns:1fr; background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust .img-side{ min-height:320px; }
.trust .img-side img{ width:100%; height:100%; object-fit:cover; }
.trust-body{ padding:52px 28px; }
.review-card{ background:var(--surface-2); border-radius:10px; padding:16px 18px; margin-bottom:12px; font-size:14px; color:var(--ink); }
.review-card .stars{ color:var(--gold); font-size:13px; margin-bottom:6px; letter-spacing:2px; }
.proof-strip{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; padding:36px 24px; background:var(--surface-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); text-align:center; }
.proof-item{ padding:0 20px; }
.proof-item .num{ font-family:var(--font-serif); font-size:32px; color:var(--script); display:block; }
.proof-item .lbl{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-faint); }

/* =============================================================
   11. Story
   ============================================================= */
.story{ text-align:center; padding:70px 24px; max-width:680px; margin-inline:auto; }
.story p.lead{ font-family:var(--font-serif); font-size:clamp(20px,3vw,26px); line-height:1.55; color:var(--ink); }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.78); padding:56px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:34px; margin-bottom:40px; }
.footer-grid h4{ font-family:var(--font-serif); color:#fff; font-size:15px; margin-bottom:14px; font-weight:500; }
.footer-grid p,.footer-grid a{ display:block; font-size:13px; color:rgba(255,255,255,.68); margin-bottom:8px; }
.footer-grid a:hover{ color:#fff; }
.footer-brand{ font-family:var(--font-script); font-size:26px; color:#F1BBD6; margin-bottom:10px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:22px; font-size:12px; color:rgba(255,255,255,.5); display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; }

/* =============================================================
   13. WhatsApp floating button
   ============================================================= */
.wa-float{
  position:fixed; right:20px; bottom:20px; z-index:90; width:56px; height:56px; border-radius:50%;
  background:#3FAE6A; color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px rgba(0,0,0,.25); transition:transform .3s var(--ease-out);
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:26px; height:26px; }

/* =============================================================
   14. Page hero (interior pages)
   ============================================================= */
.page-hero{ padding:calc(var(--nav-h) + 54px) 24px 44px; text-align:center; }
.page-hero h1{ font-size:clamp(30px,5vw,46px); }
.page-hero p{ max-width:56ch; margin:14px auto 0; }

.page-hero.with-image{ position:relative; min-height:380px; display:flex; align-items:flex-end; text-align:left; padding:0; }
.page-hero.with-image .bg{ position:absolute; inset:0; overflow:hidden; }
.page-hero.with-image .bg img{ width:100%; height:100%; object-fit:cover; }
.page-hero.with-image .bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(20,10,15,.78), rgba(20,10,15,.05) 65%); }
.page-hero.with-image .inner{ position:relative; z-index:1; color:#fff; padding:44px 24px; max-width:1180px; margin-inline:auto; width:100%; }
.page-hero.with-image h1{ color:#fff; text-align:left; }
.page-hero.with-image .eyebrow{ color:#F1D3E0; }

/* =============================================================
   15. Occasion builder / values / gallery / form
   ============================================================= */
.builder{ background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; display:grid; grid-template-columns:1fr; }
.builder img{ width:100%; height:100%; object-fit:cover; min-height:260px; }
.builder-body{ padding:28px 26px; }
.builder-body h4{ font-size:22px; margin-bottom:6px; }
.builder-body .base{ font-size:14px; color:var(--ink-soft); margin-bottom:18px; }
.extras-list div{ display:flex; justify-content:space-between; font-size:14px; color:var(--ink-soft); border-bottom:1px dashed var(--line); padding:8px 0; }
.extras-list span.p{ color:var(--script); font-weight:700; font-variant-numeric:tabular-nums; }
.builder-total{ font-family:var(--font-serif); font-size:16px; margin-top:16px; }

.values-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.value{ text-align:center; padding-top:8px; }
.value .ico{ width:52px; height:52px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:20px; color:var(--script); }
.value h4{ font-size:17px; margin-bottom:6px; }
.value p{ font-size:13px; }

.gallery-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.gallery-grid img{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; }

.empty-state{ background:var(--surface-2); border:1.5px dashed var(--line); border-radius:12px; padding:30px 26px; text-align:center; }
.empty-state p{ font-size:13.5px; }

.contact-grid{ display:grid; grid-template-columns:1fr; gap:36px; padding:50px 0 70px; }
.info-row{ display:flex; gap:16px; margin-bottom:24px; }
.info-row .ico{ width:40px; height:40px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center; justify-content:center; flex:none; font-size:16px; color:var(--script); }
.info-row h4{ font-size:15px; margin-bottom:4px; }
.info-row p,.info-row a{ font-size:13.5px; }
.hours-row{ display:flex; justify-content:space-between; font-size:13.5px; padding:4px 0; }
.map-card{ border-radius:12px; overflow:hidden; border:1px solid var(--line); }
.map-card iframe{ width:100%; height:280px; border:0; display:block; }

.form-card{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:30px; box-shadow:var(--shadow); }
.form-card h3{ font-size:22px; margin-bottom:6px; }
.form-card .sub{ font-size:13px; color:var(--ink-faint); margin-bottom:22px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-faint); margin-bottom:6px; }
.field input,.field textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:12px 14px; font-size:14px; font-family:inherit;
  background:var(--bg); color:var(--ink); transition:border-color .25s;
}
.field input:focus,.field textarea:focus{ border-color:var(--script); outline:none; }
.field textarea{ resize:vertical; min-height:100px; }
.form-card .btn{ width:100%; margin-top:4px; }

.filters{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:34px; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width:540px){
  .cat-grid{ grid-template-columns:repeat(2,1fr); }
  .product-grid{ grid-template-columns:repeat(3,1fr); }
  .values-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(4,1fr); }
}
@media (min-width:720px){
  .trust{ grid-template-columns:1fr 1fr; }
  .trust .img-side{ min-height:100%; }
  .builder{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr 1fr; }
}
@media (min-width:960px){
  .cat-grid{ grid-template-columns:repeat(4,1fr); }
  .product-grid{ grid-template-columns:repeat(4,1fr); }
  .values-grid{ grid-template-columns:repeat(4,1fr); }
}
@media (min-width:1280px){
  .hero-content{ max-width:600px; }
}

/* =============================================================
   17. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce){
  .hero-scroll .line::after{ animation:none; }
  .reveal{ transition-duration:.01s; }
}

/* Page transitions */
@view-transition{ navigation:auto; }
::view-transition-old(root),::view-transition-new(root){ animation-duration:.5s; animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1); }
