/* =====================================================================
   FLORERÍA VALENTINA · ESTILOS
   ===================================================================== */

:root {
  --white: #FFFFFF;
  --cream: #FAF6F0;
  --cream-2: #F3ECE3;
  --line: #EADFD5;
  --teal: #1F5C5C;
  --teal-dark: #164646;
  --teal-soft: #E6EFEE;
  --rose: #C97B94;
  --rose-dark: #A85C76;
  --rose-soft: #F7EBEF;
  --text: #4A3530;
  --muted: #76625B;
  --wa: #178A4A;
  --wa-dark: #117040;
  --error: #B0524E;
  --error-bg: #FCF1EF;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 6px 24px rgba(74, 53, 48, .08);
  --shadow-lg: 0 18px 50px rgba(74, 53, 48, .16);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--text); }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--teal); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

main { min-height: 60vh; outline: none; }

/* ---------- Tipografía de sección ---------- */
.section { padding: 56px 0; }
.section--cream { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 32px; }
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.section-title--plain { letter-spacing: .02em; text-transform: none; }
.section-sub { color: var(--muted); margin-top: 10px; }
.divider {
  width: 44px; height: 1px; background: var(--rose); margin: 16px auto 0; border: 0;
}
@media (min-width: 900px) { .section { padding: 84px 0; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid var(--teal);
  background: var(--teal); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  line-height: 1.2; text-align: center;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:active { transform: scale(.98); }
.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 16px; padding: 14px 28px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn--wa { background: var(--wa); border-color: var(--wa); }
.btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-btn {
  background: none; border: 0; padding: 4px 0; color: var(--teal);
  font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--rose-dark); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 0; color: var(--text); position: relative; text-decoration: none;
}
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--rose-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.logo { display: block; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }
.main-nav { display: none; }
.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; line-height: 19px; text-align: center;
  transition: transform .25s var(--ease);
}
.cart-count[data-empty] { background: var(--cream-2); color: var(--muted); }
.cart-count.bump { transform: scale(1.3); }

@media (max-width: 899px) {
  .main-nav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 18px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a {
    padding: 14px 4px; border-bottom: 1px solid var(--line);
    text-decoration: none; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a.active { color: var(--rose-dark); }
}
@media (min-width: 900px) {
  :root { --header-h: 78px; }
  .menu-toggle { display: none; }
  .logo img { height: 54px; }
  .main-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 18px; }
  .main-nav a {
    text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
    padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
  }
  .main-nav a:hover, .main-nav a.active { border-color: var(--rose); color: var(--rose-dark); }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero-inner { display: grid; gap: 26px; padding-top: 30px; padding-bottom: 36px; }
.hero-text { text-align: center; }
.hero-logo { width: auto; height: clamp(190px, 52vw, 250px); margin: 0 auto 18px; }
.hero h1 {
  font-family: 'Allura', 'Cormorant Garamond', cursive;
  font-size: clamp(2.9rem, 11.5vw, 4.4rem); font-weight: 400; line-height: 1.08;
  letter-spacing: 0; text-wrap: balance;
}
.hero h1 em { display: block; font-style: normal; color: var(--rose-dark); }
.hero p { color: var(--muted); margin: 14px auto 24px; max-width: 30em; font-size: 15px; }
.hero-img {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  max-height: 72vh; margin: 0 auto; width: 100%; max-width: 480px;
  box-shadow: var(--shadow);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--rose); stroke-width: 1.5; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-top: 56px; padding-bottom: 64px; }
  .hero-text { text-align: left; }
  .hero-logo { height: clamp(250px, 24vw, 320px); margin: 0 0 22px -6px; }
  .hero p { margin-left: 0; font-size: 16px; }
  .hero-meta { justify-content: flex-start; }
  .hero-img { max-height: 620px; }
}

/* ---------- Selector de ocasión ---------- */
.occasions { padding: 40px 0 48px; }
.occasions .section-head { margin-bottom: 22px; }
.occasion-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.occasion-card {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 500; font-size: 14px;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.occasion-card:hover { border-color: var(--rose); box-shadow: var(--shadow); transform: translateY(-2px); }
.occasion-card .emo {
  display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%; background: var(--rose-soft); font-size: 19px; line-height: 1;
}
.occasion-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
.occasion-card .oc-text { min-width: 0; line-height: 1.3; }
.occasion-card .oc-text small { display: none; font-weight: 400; font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
@media (min-width: 640px) {
  .occasion-grid { grid-template-columns: repeat(3, 1fr); }
  .occasion-card:last-child:nth-child(odd) { grid-column: auto; justify-content: flex-start; }
}
@media (min-width: 1000px) {
  .occasion-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .occasion-card { flex-direction: column; justify-content: flex-start; text-align: center; padding: 20px 12px; min-height: 120px; font-size: 14px; }
  .occasion-card .emo { width: 48px; height: 48px; font-size: 22px; }
  .occasion-card .oc-text small { display: block; }
}

/* ---------- Categorías ---------- */
.cat-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none;
}
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-card { scroll-snap-align: start; text-decoration: none; display: block; }
.cat-card .img {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card h3 { font-size: 1.35rem; margin-top: 12px; }
.cat-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (min-width: 640px) { .cat-scroller { grid-auto-columns: 38%; } }
@media (min-width: 1000px) {
  .cat-scroller { display: flex; flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; gap: 30px 20px; }
  .cat-card { width: calc((100% - 60px) / 4); }
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.step-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--rose); color: var(--rose-dark); position: relative;
}
.step-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.step-num {
  position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center;
}
.step h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.step p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { flex-direction: column; align-items: center; text-align: center; padding: 28px 18px; background: transparent; border: 0; }
  .step-icon { width: 68px; height: 68px; }
  .step-icon svg { width: 30px; height: 30px; }
}

/* ---------- Tarjeta de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 22px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 340px) { .product-grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-img {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--cream-2);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-tags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; right: 8px; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .02em;
  background: rgba(255, 255, 255, .92); color: var(--rose-dark); border: 1px solid rgba(201, 123, 148, .35);
}
@media (max-width: 479px) { .card-tags .tag:nth-child(n+2) { display: none; } }
.card-body { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--rose-dark); }
.card-desc {
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { font-weight: 600; color: var(--text); font-size: 15px; margin-top: 8px; }
.price small { font-weight: 400; color: var(--muted); font-size: 12px; margin-right: 3px; }
.card-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-actions .btn { min-height: 44px; padding: 10px 8px; font-size: 12.5px; }
@media (min-width: 768px) {
  .card-desc { -webkit-line-clamp: 1; font-size: 13px; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .card-actions .btn { font-size: 12.5px; }
}

/* ---------- Cotiza tu evento ---------- */
.events-inner { display: grid; gap: 26px; }
.events-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.events-img img { width: 100%; height: 100%; object-fit: cover; }
.events-text { text-align: center; }
.events-text p { color: var(--muted); max-width: 34em; margin: 0 auto; }
.events-text .events-lead { margin-top: 12px; font-size: 15.5px; }
.events-types { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.events-types li { padding: 5px 12px; border-radius: 999px; background: var(--rose-soft); color: var(--rose-dark); font-size: 12.5px; font-weight: 500; }
.events-text .btn { margin-top: 22px; }
.events-text .events-quote { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--teal); }
.events-text .events-note { margin-top: 10px; font-size: 12px; }
@media (min-width: 900px) {
  .events-inner { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
  .events-text { text-align: left; }
  .events-text p { margin-left: 0; }
  .events-types { justify-content: flex-start; }
}

/* ---------- Confianza ---------- */
.trust { display: grid; gap: 14px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.trust-item svg { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--rose-dark); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.trust-item p { font-size: 13.5px; color: var(--muted); }
@media (min-width: 768px) {
  .trust { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .trust-item { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Tienda / filtros ---------- */
.page-head { background: var(--cream); padding: 34px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); letter-spacing: .14em; text-transform: uppercase; }
.page-head p { color: var(--muted); margin-top: 8px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rose-dark); }

.filters { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); padding: 12px 0 10px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row + .filter-row { margin-top: 6px; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--rose); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip--rose[aria-pressed="true"] { background: var(--rose-soft); color: var(--rose-dark); border-color: var(--rose); }
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-size: 13px; color: var(--muted); }
.select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 8px 36px 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234A3530' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font-size: 13px; color: var(--text);
}
@media (min-width: 768px) { .filter-row { flex-wrap: wrap; overflow: visible; margin: 0; padding-left: 0; padding-right: 0; } .filters { position: static; } }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty h2 { font-size: 1.8rem; margin-bottom: 8px; color: var(--text); }
.empty .btn { margin-top: 20px; }

/* ---------- Detalle de producto ---------- */
.detail { display: grid; gap: 26px; padding: 20px 0 50px; }
.gallery-main {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--cream-2);
  margin: 0 -16px; border-radius: 0;
}
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.gallery-dots span.on { background: var(--rose); width: 16px; border-radius: 3px; }
.thumbs { display: none; }
@media (min-width: 600px) {
  .gallery { width: 100%; max-width: 480px; margin: 0 auto; }
  .gallery-main { margin: 0; border-radius: var(--radius); }
}
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 36px 0 70px; align-items: start; }
  /* la foto completa (4:5) y las miniaturas caben en la pantalla sin hacer scroll */
  .gallery { position: sticky; top: calc(var(--header-h) + 20px); max-width: clamp(380px, calc((100vh - var(--header-h) - 150px) * .8), 620px); }
  .gallery-main { margin: 0; border-radius: var(--radius); }
  .gallery-dots { display: none; }
  .thumbs { display: flex; gap: 10px; margin-top: 12px; }
  .thumbs button { width: 76px; aspect-ratio: 1; padding: 0; border: 1.5px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; }
  .thumbs button.on { border-color: var(--rose); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; }
}
.detail-info h1 { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 600; }
.detail-info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.detail-info .tag { background: var(--rose-soft); border-color: transparent; font-size: 11.5px; padding: 4px 11px; }
.detail-price { font-size: 1.5rem; font-weight: 600; margin: 6px 0 12px; }
.detail-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.detail-desc { color: var(--muted); font-size: 15px; }
.detail-desc p + p { margin-top: 10px; }
.detail-incluye { margin-top: 18px; }
.detail-incluye h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.detail-incluye ul { margin: 0; padding-left: 18px; display: grid; gap: 4px 24px; color: var(--muted); font-size: 14px; }
.detail-incluye li::marker { color: var(--rose); }
@media (min-width: 480px) { .detail-incluye ul { grid-template-columns: 1fr 1fr; } }
.detail-nota { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.detail-nota svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--rose-dark); }
.field-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 10px; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; inset: 0; }
.size-opt span {
  display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; background: #fff;
  transition: border-color .2s, background .2s;
}
.size-opt span small { font-weight: 400; color: var(--muted); font-size: 12px; }
.size-opt input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.size-opt input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.customize { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.customize summary {
  list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14px;
}
.customize summary::-webkit-details-marker { display: none; }
.customize summary .plus { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rose); color: var(--rose-dark); display: grid; place-items: center; font-weight: 400; transition: transform .25s; }
.customize[open] summary .plus { transform: rotate(45deg); }
.customize summary .hint { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.customize-body { padding: 0 18px 18px; }

.buy-row { display: flex; gap: 10px; margin-top: 22px; align-items: stretch; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 18px; color: var(--teal); border-radius: 999px; }
.qty button:hover { background: var(--teal-soft); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.qty--sm button { width: 34px; height: 36px; font-size: 16px; }

.nature-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--cream); border-left: 2px solid var(--rose);
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--muted);
}
.nature-note svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--rose); stroke-width: 1.3; stroke-linecap: round; }
.nature-note-title {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-dark);
}
.note-wrap { max-width: 760px; margin: 0 auto; }
.cart-layout .nature-note, .checkout-layout .nature-note { font-size: 16px; }

/* Aviso breve de disponibilidad de flores */
.flower-note {
  display: flex; gap: 8px; align-items: flex-start; justify-content: center;
  font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center;
}
.flower-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--rose); stroke-width: 1.4; stroke-linecap: round; }
.flower-note--start { justify-content: flex-start; text-align: left; }
.flower-note--gap { margin-top: 22px; }
.flower-note--shop { margin: -6px 0 18px; }
.flower-note--footer { margin-top: 16px; }
.legal-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.legal-note a { text-underline-offset: 2px; }
.legal-note a:hover { color: var(--rose-dark); }
.detail-perks { display: grid; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.detail-perks div { display: flex; align-items: center; gap: 10px; }
.detail-perks svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.5; flex-shrink: 0; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 12px; }
.input, .textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font-size: 16px; /* evita zoom en iOS */
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234A3530' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #A8958E; }
.input:focus, .textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field.has-error .input, .field.has-error .textarea, .field.has-error select { border-color: #DBA7A2; background: var(--error-bg); }
.field-error { display: none; font-size: 12.5px; color: var(--error); }
.field.has-error .field-error { display: flex; gap: 6px; align-items: center; }
.field-error svg { width: 16px; height: 16px; flex-shrink: 0; }
.field-help { font-size: 12px; color: var(--muted); }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.counter.near { color: var(--rose-dark); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick .chip { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(46, 32, 29, .42); animation: fade .25s ease; }
.modal-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px 18px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); animation: slideUp .32s var(--ease);
}
.modal-panel h2 { font-size: 1.8rem; padding-right: 40px; }
.modal-panel .modal-sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 18px; }
.modal-close { position: absolute; top: 14px; right: 12px; }
.modal-close svg { width: 22px; height: 22px; }
.modal-actions { display: grid; gap: 10px; margin-top: 20px; }
.modal-product { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--cream); border-radius: var(--radius); margin-bottom: 18px; }
.modal-product img { width: 56px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.modal-product strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: block; line-height: 1.2; }
.modal-product span { font-size: 13px; color: var(--muted); }
.added-head { display: flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.added-head svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
  .modal-panel { border-radius: 16px; padding: 32px 30px 28px; animation: pop .28s var(--ease); }
  .modal-actions { grid-template-columns: 1fr 1fr; }
  .modal-panel--wide { max-width: 720px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

/* ---------- Upsell ---------- */
.upsell { margin-top: 6px; }
.upsell-head h3 { font-size: 1.5rem; font-weight: 600; }
.upsell-head h3 .spark { color: var(--rose); font-size: 1rem; vertical-align: 3px; margin-right: 4px; }
.upsell-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.upsell-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 14px 18px 8px; margin: 0 -18px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.upsell-item {
  scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; display: flex; flex-direction: column;
}
.upsell-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--cream); }
.upsell-item .u-kind { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-dark); margin-top: 8px; }
.upsell-item .u-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.upsell-item .u-price { font-size: 13px; margin-top: 2px; color: var(--muted); }
.upsell-item .u-actions { margin-top: auto; padding-top: 8px; display: grid; gap: 6px; }
.upsell-item .btn { min-height: 36px; padding: 6px 8px; font-size: 12px; }
.upsell-item .btn.is-done { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--rose-dark); }
.section-upsell { background: var(--cream); border-radius: var(--radius); padding: 22px 18px; margin-top: 26px; overflow: hidden; }
.section-upsell .upsell-row { padding-left: 18px; padding-right: 18px; }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; gap: 26px; padding: 26px 0 60px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; padding-top: 40px; } }
.cart-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 84px; height: 104px; object-fit: cover; border-radius: var(--radius-sm); background: var(--cream); }
.cart-item h3 { font-size: 1.25rem; font-weight: 600; }
.cart-item h3 a { text-decoration: none; }
.cart-item .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-item .perso {
  margin-top: 8px; padding: 8px 10px; background: var(--cream); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.cart-item .perso b { color: var(--text); font-weight: 600; }
.cart-item .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cart-item .sub { font-weight: 600; }
.cart-item .links { display: flex; gap: 16px; margin-top: 6px; }
.link-btn--muted { color: var(--muted); }

.summary {
  background: var(--cream); border-radius: var(--radius); padding: 22px 20px;
}
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 600; font-size: 17px; }
.summary .note { font-size: 12.5px; color: var(--muted); margin: 10px 0 18px; }
.summary-items { display: grid; gap: 10px; margin-bottom: 12px; }
.summary-items div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.summary-items span:first-child { color: var(--muted); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(74, 53, 48, .06);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
}
.mobile-bar .mb-total { font-size: 12px; color: var(--muted); line-height: 1.2; }
.mobile-bar .mb-total strong { display: block; font-size: 17px; color: var(--text); }
.mobile-bar .btn { flex: 1; }
body.has-mobile-bar { padding-bottom: 84px; }
@media (min-width: 900px) { .mobile-bar { display: none; } body.has-mobile-bar { padding-bottom: 0; } }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; gap: 26px; padding: 22px 0 60px; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; padding-top: 36px; } }
.co-section {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; background: #fff;
}
.co-section + .co-section { margin-top: 14px; }
.co-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.co-title .n {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--rose); color: var(--rose-dark);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.co-title h2 { font-size: 1.45rem; font-weight: 600; }
.co-title .opt { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 400; margin-left: auto; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  min-height: 92px; justify-content: center; padding: 14px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 13.5px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.radio-card span small { font-weight: 400; color: var(--muted); font-size: 12px; }
.radio-card svg { width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.radio-card input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.radio-card input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots .radio-card span { min-height: 56px; font-size: 13px; }
.slots .radio-card input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
@media (max-width: 380px) { .slots { grid-template-columns: 1fr; } }
.date-quick { display: flex; gap: 8px; margin-bottom: 8px; }
.pickup-box { background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.pickup-box b { color: var(--text); }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; margin-top: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.form-alert {
  display: none; margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--error-bg); color: var(--error); font-size: 13.5px;
}
.form-alert.show { display: block; }

/* ---------- Confirmación ---------- */
.confirm { max-width: 620px; margin: 0 auto; padding: 44px 0 70px; text-align: center; }
.confirm-flower { width: 64px; height: 64px; margin: 0 auto 16px; }
.confirm h1 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 600; }
.confirm .lead { color: var(--muted); margin: 12px auto 28px; max-width: 28em; font-size: 15.5px; }
.confirm .pay-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.order-preview { text-align: left; margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.order-preview summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.order-preview summary::-webkit-details-marker { display: none; }
.order-preview pre {
  margin: 0; padding: 16px 18px; border-top: 1px solid var(--line); background: var(--cream);
  white-space: pre-wrap; word-break: break-word; font-family: var(--sans); font-size: 13px; line-height: 1.65; border-radius: 0 0 var(--radius) var(--radius);
}
.confirm-links { display: flex; justify-content: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- FAQ / Contacto ---------- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 4px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rose); color: var(--rose-dark); display: grid; place-items: center; flex-shrink: 0; font-family: var(--sans); font-size: 16px; transition: transform .25s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--muted); }

.contact-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; } }
.visit-news { max-width: 640px; margin: 0 auto 32px; padding: 22px 24px; text-align: center; background: var(--cream-2); border-radius: var(--radius); }
.visit-news h3 { font-size: 20px; margin-bottom: 8px; }
.visit-news p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.visit-news p + p { margin-top: 6px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--rose-dark); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-list .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list .v { font-size: 15px; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--rose-dark); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.occasion-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .occasion-tiles { grid-template-columns: repeat(3, 1fr); gap: 30px 22px; } }
.occasion-tile { text-decoration: none; display: block; }
.occasion-tile .img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.occasion-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.occasion-tile:hover img { transform: scale(1.04); }
.occasion-tile h3 { font-size: 1.35rem; margin-top: 10px; font-weight: 600; }
.occasion-tile p { font-size: 12.5px; color: var(--muted); }
.occasion-tile .count { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-dark); }

/* ---------- Políticas ---------- */
.policy { max-width: 760px; margin: 0 auto; }
.policy-date { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.policy > .nature-note { margin-top: 18px; }
.policy-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.policy-section h2 { display: flex; align-items: center; gap: 12px; font-size: 1.55rem; font-weight: 600; margin-bottom: 12px; }
.policy-section h2 .n {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--rose); color: var(--rose-dark);
  display: grid; place-items: center; font-family: var(--sans); font-size: 13px; font-weight: 600;
}
.policy-section p, .policy-section ul { color: var(--muted); font-size: 15px; line-height: 1.7; }
.policy-section p + p, .policy-section p + ul, .policy-section ul + p { margin-top: 10px; }
.policy-section ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.policy-section li::marker { color: var(--rose); }
.policy-contact { margin-top: 32px; padding: 24px 20px; background: var(--cream); border-radius: var(--radius); text-align: center; }
.policy-contact h2 { font-size: 1.5rem; font-weight: 600; }
.policy-contact p { color: var(--muted); margin: 4px 0 16px; }
.policy-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.policy-nav a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s;
}
.policy-nav a:hover { border-color: var(--rose); color: var(--rose-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 50px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand img { width: 120px; height: auto; }
.footer-brand p { color: var(--muted); margin-top: 12px; font-size: 13.5px; max-width: 26em; }
.site-footer h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 12px; color: var(--rose-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--rose-dark); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(31, 92, 92, .3);
  transition: transform .2s var(--ease), background .2s, bottom .25s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--teal-dark); }
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }
body.has-mobile-bar .wa-float { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-mobile-bar .wa-float { bottom: 24px; } .wa-float { right: 24px; bottom: 24px; } }
body.hide-wa-float .wa-float { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translateX(-50%); background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: slideUp .3s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
body.has-mobile-bar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.page-enter { animation: fade .35s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Evita que filas deslizables (upsell, galería) ensanchen las columnas de la grilla */
.cart-layout > *, .checkout-layout > *, .detail > *, .hero-inner > *, .contact-grid > *, .modal-panel .upsell { min-width: 0; }
@media (min-width: 1100px) { .card-actions { grid-template-columns: 1fr; } }
