/* Lore, floristería — demo DevEps (ver DISENO.md) */

:root {
  --papel: #F1F3EE;
  --blanco: #FFFFFF;
  --tinta: #1E2A22;
  --tinta-2: #56625A;
  --tallo: #2F6B4F;
  --tallo-suave: #E3EDE6;
  --lima: #D9E36E;
  --lila: #B9A6F0;
  --coral: #FF9A7A;
  --mantequilla: #FFE29A;
  --linea: rgba(30, 42, 34, .14);
  --linea-2: rgba(30, 42, 34, .07);
  --wrap: 1200px;
  --display: 'Young Serif', Georgia, serif;
  --text: 'Albert Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.6 var(--text); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.02em; line-height: 1.02; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 2.5px solid var(--tallo); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--tinta-2); max-width: 50ch; }
.muted { color: var(--tinta-2); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--tinta); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent; background: transparent; font-weight: 600; text-decoration: none; cursor: pointer;
  transition-property: transform, background-color, border-color, color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--tinta); color: #fff; }
.btn-ink:hover { background: var(--tallo); }
.btn-line { border-color: var(--linea); }
.btn-line:hover { border-color: var(--tinta); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* Cinta y cabecera */
.ribbon { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 20px; background: var(--tinta); color: #fff; font-size: .875rem; }
.ribbon a { font-weight: 600; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--papel) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 1.75rem; text-decoration: none; line-height: 1; }
.brand small { display: block; font-family: var(--text); font-size: .75rem; color: var(--tinta-2); margin-top: 2px; letter-spacing: .01em; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--tinta-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tinta); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--tallo); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 600; text-decoration: none; }
.cart-link b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-size: .8125rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); background: var(--blanco); cursor: pointer; }

/* Secciones */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); }
.page-head .lead { margin-top: 16px; }

/* ── Constructor de ramos ── */
.builder { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 9vw, 112px); }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'intro stage' 'controls stage'; grid-template-rows: auto 1fr; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.b-intro { grid-area: intro; }
.b-controls { grid-area: controls; }
.stage-wrap { grid-area: stage; }
.builder .lead { margin-top: 18px; }
.flowers { margin-top: 28px; border-top: 1px solid var(--linea); }
.flowers li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea-2); }
.fl-name { font-weight: 600; }
.fl-name small { display: block; font-weight: 400; font-size: .8125rem; color: var(--tinta-2); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px; }
.stepper button { width: 44px; height: 40px; border: 0; background: none; font-size: 1.25rem; cursor: pointer; border-radius: 999px; transition: background-color 150ms; }
.stepper button:hover:not(:disabled) { background: var(--tallo-suave); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.wraps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 22px; }
.wraps-row > span { font-weight: 600; margin-right: 4px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow 150ms; }
.swatch b { font-weight: 500; font-size: .9375rem; }
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px var(--papel), 0 0 0 5px var(--tinta); }
.swatch input:focus-visible + span { outline: 2.5px solid var(--tallo); outline-offset: 5px; }
.builder-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--linea); }
.builder-foot .total { font-size: 2rem; font-family: var(--display); line-height: 1; }
.builder-foot .stems { display: block; font-size: .9375rem; color: var(--tinta-2); }
.limit { width: 100%; font-size: .875rem; color: var(--tinta-2); min-height: 1.2em; }
.stage-wrap { position: sticky; top: 96px; }
.stage { aspect-ratio: 400 / 480; width: 100%; max-width: 520px; margin-inline: auto; border-radius: 28px; background: radial-gradient(circle at 50% 42%, #FBFCF9 0 52%, var(--papel) 75%); }
.stage svg { width: 100%; height: 100%; display: block; }
.stage-caption { display: flex; justify-content: center; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .stem.new { transform-box: fill-box; transform-origin: 50% 100%; animation: brota 420ms cubic-bezier(.2, .8, .3, 1.2); }
  @keyframes brota { from { opacity: 0; transform: translateY(18px) scale(.6); } to { opacity: 1; transform: none; } }
}

/* Código postal */
.cp-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--tallo); color: #fff; }
.cp-band p { color: rgba(255,255,255,.8); margin-top: 10px; }
.cp-form { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-form label { width: 100%; font-weight: 600; }
.cp-form input { flex: 1 1 160px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; color: var(--tinta); font-size: 1.125rem; letter-spacing: .08em; }
.cp-form .btn { background: var(--lima); color: var(--tinta); min-height: 52px; }
.cp-form .btn:hover { background: #E6EE8E; }
.cp-result { width: 100%; min-height: 1.6em; font-weight: 500; }

/* Productos */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(16px, 2.4vw, 28px); }
.product { display: grid; gap: 8px; align-content: start; }
.art { aspect-ratio: 400 / 480; border-radius: 22px; background: var(--blanco); border: 1px solid var(--linea-2); overflow: hidden; }
.art svg { width: 100%; height: 100%; display: block; }
.art.sm { width: 84px; border-radius: 14px; }
.product h3 { margin-top: 10px; }
.desc { color: var(--tinta-2); font-size: .9375rem; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.price { font-weight: 700; font-size: 1.125rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--linea); background: none; cursor: pointer; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.filters output { margin-left: auto; color: var(--tinta-2); font-size: .9375rem; }

/* Suscripción */
.sub-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sub-grid .art { background: var(--mantequilla); border: 0; }
.opts { display: grid; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--linea); transition-property: border-color, background-color; transition-duration: 150ms; }
.opt small { color: var(--tinta-2); }
.opt input:checked + span { border-color: var(--tallo); background: var(--tallo-suave); }
.opt input:focus-visible + span { outline: 2.5px solid var(--tallo); outline-offset: 2px; }
fieldset { border: 0; margin: 0 0 22px; padding: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.sub-total { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--linea); }
.sub-total strong { display: block; font-family: var(--display); font-size: 2.25rem; font-weight: 400; line-height: 1; }
.sub-total span { color: var(--tinta-2); font-size: .9375rem; }

/* Carrito */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.lines { border-top: 2px solid var(--tinta); }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 90px auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.line h3 { font-size: 1.15rem; }
.line-total { font-weight: 700; text-align: right; }
.remove { background: none; border: 0; color: var(--tinta-2); text-decoration: underline; cursor: pointer; min-height: 44px; }
.panel { background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px; padding: clamp(20px, 3vw, 30px); position: sticky; top: 96px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea, .field select { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--linea); background: var(--blanco); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; border-color: var(--tallo); box-shadow: 0 0 0 3px rgba(47, 107, 79, .2); }
.hint, .error { font-size: .8125rem; color: var(--tinta-2); }
.error { color: #B4372B; min-height: 1.2em; }
.totals { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--linea-2); margin-top: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.25rem; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--linea-2); }
.ship-info { font-size: .875rem; color: var(--tallo); min-height: 1.2em; }
.empty, .done { text-align: left; max-width: 560px; }
.empty p, .done p { margin: 12px 0 24px; color: var(--tinta-2); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.card { background: var(--blanco); border: 1px solid var(--linea); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.info dl { display: grid; gap: 18px; }
.info dt { font-weight: 700; }
.info dd { color: var(--tinta-2); }
.info a { color: var(--tinta); font-weight: 600; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linea-2); }
.hours li[aria-current="date"] { font-weight: 700; color: var(--tallo); }
.open-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 10px; }
.open-now::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tinta-2); }
.open-now[data-open="true"]::before { background: var(--tallo); box-shadow: 0 0 0 4px rgba(47, 107, 79, .2); }
.form-ok { padding: 16px; border-radius: 14px; background: var(--tallo-suave); font-weight: 600; margin-top: 16px; }

/* Aviso de carrito */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 18px;
  padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--tinta); color: #fff; box-shadow: 0 12px 32px -12px rgba(0,0,0,.5);
  transform: translate(-50%, 140%); transition: transform 260ms cubic-bezier(.2, .8, .3, 1);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { padding: 8px 14px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-weight: 600; text-decoration: none; }

/* Llamada final y pie */
.band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--lila); }
.band p { margin-top: 10px; max-width: 52ch; }
.footer { padding: 56px 0 40px; border-top: 1px solid var(--linea); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h3 { font-family: var(--text); font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.footer li + li { margin-top: 6px; }
.footer a { color: var(--tinta-2); text-decoration: none; }
.footer a:hover { color: var(--tinta); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--linea-2); color: var(--tinta-2); font-size: .875rem; }

/* Móvil */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0; margin: 0; padding: 8px 20px 16px; background: var(--papel); border-bottom: 1px solid var(--linea); }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--linea-2); }
  .builder-grid, .section-head, .cp-band, .sub-grid, .cart-grid, .contact-grid { grid-template-columns: 1fr; }
  .builder-grid { grid-template-areas: 'intro' 'stage' 'controls'; grid-template-rows: auto; }
  .stage-wrap { position: static; margin-top: 12px; }
  .stage { max-width: 280px; }
  .panel { position: static; }
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 14px; }
  .line .art.sm { width: 72px; grid-row: span 3; }
  .line .stepper { grid-column: 2; }
  .line-total { grid-column: 3; grid-row: 1; }
  .line .remove { grid-column: 3; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .cart-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; } }

/* ── Más color (oct. 2026): papel de seda en portada, cabeceras y productos; pie verde ── */
:root { --lila-suave: #EEE8FF; --coral-suave: #FFE4DA; --lima-suave: #F1F6C8; --mant-suave: #FFF1C9; --verde-pie: #1F4A37; }
.builder { background: var(--lila-suave); }
.stage { background: radial-gradient(circle at 50% 44%, #FFFFFF 0 48%, rgba(255, 255, 255, 0) 72%); }
.flowers li { border-bottom-color: rgba(30, 42, 34, .1); }
.stepper { background: rgba(255, 255, 255, .6); }
.product .art { background: var(--tint, var(--blanco)); border: 0; }
.product:hover .art svg { transform: scale(1.03); }
.art svg { transition: transform 300ms ease-out; }
.page-head { background: var(--ph, var(--coral-suave)); margin-bottom: clamp(32px, 5vw, 56px); }
.band { background: var(--coral); }
.footer { background: var(--verde-pie); color: #E9F1EC; border-top: 0; }
.footer .brand, .footer h3 { color: #fff; }
.footer .brand small, .footer .muted, .footer a { color: rgba(233, 241, 236, .72); }
.footer a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(233, 241, 236, .16); color: rgba(233, 241, 236, .6); }
.footer-bottom a { color: #fff; }
