/* Uratecno — estilos base (paso 1: tokens y tema oscuro). Las secciones vienen después. */

:root {
  color-scheme: light;
  --bg: #f4f8f3;
  --surface: #ffffff;
  --text: #11231a;
  --text-soft: #4a5e53;
  --brand: #1f8a4c;
  --brand-strong: #166a3a;
  --border: #d5e3d8;
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Oscuro automático (según el sistema), salvo que la persona haya elegido claro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07140c;
    --surface: #0f2016;
    --text: #e8f3ec;
    --text-soft: #a3b9aa;
    --brand: #3ccf79;
    --brand-strong: #6ee59f;
    --border: #1d3827;
  }
}

/* Oscuro elegido manualmente */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07140c;
  --surface: #0f2016;
  --text: #e8f3ec;
  --text-soft: #a3b9aa;
  --brand: #3ccf79;
  --brand-strong: #6ee59f;
  --border: #1d3827;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .6rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: .5rem;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ===== Paso 2: encabezado y portada ===== */
:root {
  --maxw: 72rem;
  --radius: 1rem;
  --on-dark-text: #eaf6ee;
  --on-dark-soft: #b4cdbb;
  --on-dark-bg: #07140c;
  --on-dark-border: rgba(255,255,255,.14);
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: .4rem; }

.on-dark { color: var(--on-dark-text); }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,20,12,.9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--on-dark-border);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap;
  padding: .55rem 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 3rem; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .01em; }
.brand-text small { color: var(--on-dark-soft); font-size: .72rem; }
.site-nav { display: flex; gap: .25rem; }
.site-nav a {
  text-decoration: none; padding: .45rem .8rem; border-radius: 99px;
  font-size: .92rem; color: var(--on-dark-soft); transition: background .2s, color .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.header-tools { display: flex; gap: .4rem; align-items: center; }
.tool-group { display: flex; gap: .25rem; }
.tool-btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  color: var(--on-dark-text); background: rgba(255,255,255,.08);
  border: 1px solid var(--on-dark-border); border-radius: 99px;
  min-width: 2.4rem; min-height: 2.4rem; padding: 0 .7rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: background .2s;
}
.tool-btn:hover { background: rgba(255,255,255,.16); }
.theme-icon { width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Portada */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--on-dark-bg);
  min-height: min(46rem, calc(100svh - 4rem));
  display: grid; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url("../images/brand/fondo-hojas.webp") center / cover no-repeat;
  opacity: .55;
}
.hero::after { /* viñeta para que el texto siempre se lea */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(7,20,12,.15), rgba(7,20,12,.85) 85%),
    linear-gradient(to bottom, rgba(7,20,12,.2), var(--bg) 100%);
}
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow-a { width: 30rem; height: 30rem; left: -8rem; top: -6rem; background: rgba(60,207,121,.38); animation: flota 16s ease-in-out infinite alternate; }
.glow-b { width: 26rem; height: 26rem; right: -6rem; bottom: -5rem; background: rgba(20,150,200,.28); animation: flota 20s ease-in-out infinite alternate-reverse; }
@keyframes flota { to { transform: translate(3rem, 2rem) scale(1.12); } }

.hero-plant { position: absolute; bottom: 0; z-index: -1; width: min(24vw, 18rem); opacity: .9; pointer-events: none; }
.plant-l { left: 0; } .plant-r { right: 0; }

.hero-inner {
  max-width: 46rem; margin: 0 auto; text-align: center;
  padding: 3rem 1rem 4rem; display: flex; flex-direction: column; align-items: center;
}
.hero-logo { width: min(18rem, 70%); margin-bottom: .6rem; filter: drop-shadow(0 6px 24px rgba(60,207,121,.35)); }
.hero-kicker { margin: 0 0 .8rem; color: var(--on-dark-soft); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; }
.hero-title { font-size: clamp(2rem, 6.2vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.hero-sub { color: var(--on-dark-soft); max-width: 34rem; margin: 1rem 0 1.6rem; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 99px; font-weight: 700; text-decoration: none;
  min-height: 3rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #3ccf79, #1f9d5a); color: #04140a; box-shadow: 0 8px 28px rgba(60,207,121,.35); }
.btn-ghost { border: 1px solid var(--on-dark-border); background: rgba(255,255,255,.07); color: var(--on-dark-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 1.8rem 0 0; }
.hero-badges li { font-size: .85rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--on-dark-border); background: rgba(255,255,255,.06); color: var(--on-dark-soft); }
.hero-reviews { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }

@media (max-width: 62.5rem) {
  .hero-inner { padding-bottom: 20.5rem; }
}
@media (max-width: 52rem) {
  .site-nav { display: none; }
  .tool-theme .theme-label { display: none; }
  .hero-plant { width: 32vw; opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .btn { transition: none; }
}

/* ===== Paso 3: reseñas flotantes ===== */
.bubble {
  position: absolute; left: 0; top: 0; margin: 0;
  width: max-content; max-width: 15rem;
  padding: .8rem 1rem .85rem; border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
  color: var(--on-dark-text); font-size: .86rem; line-height: 1.4;
  will-change: transform; opacity: 0; transition: opacity .45s ease;
}
.bubble.is-on { opacity: 1; }
.bubble-top { display: block; margin-bottom: .3rem; font-size: .78rem; letter-spacing: .08em; color: #ffd36b; }
.bubble-top.is-promise { color: var(--brand); text-transform: uppercase; font-weight: 700; font-size: .68rem; letter-spacing: .14em; }
.bubble-text { margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bubble-who { display: block; margin-top: .45rem; font-size: .74rem; color: var(--on-dark-soft); }
.motion-toggle {
  position: absolute; right: .8rem; bottom: .7rem; z-index: 3;
  font: inherit; font-size: .74rem; cursor: pointer; color: var(--on-dark-soft);
  background: rgba(255,255,255,.07); border: 1px solid var(--on-dark-border);
  border-radius: 99px; padding: .3rem .8rem; min-height: 2rem;
}
.motion-toggle:hover { color: #fff; background: rgba(255,255,255,.14); }
@media (max-width: 52rem) {
  .bubble { max-width: 10.5rem; padding: .6rem .75rem .65rem; font-size: .76rem; border-radius: 1rem; }
  .bubble-text { -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }

/* ===== Paso 4: catálogo ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; position: relative; }
.section-head { text-align: center; margin-bottom: 1.8rem; }
.eyebrow { margin: 0 0 .4rem; color: var(--brand); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; }
.section-lead { color: var(--text-soft); margin: .6rem auto 0; max-width: 34rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

#catalogo::before { /* difuminado de fondo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 24rem at 10% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(34rem 22rem at 100% 40%, rgba(20,150,200,.10), transparent 70%);
}
#catalogo { isolation: isolate; }

.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: .55rem 1.1rem; min-height: 2.6rem;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #04140a; }

.grid-productos { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card {
  background: #fff; color: #11231a; border-radius: 1.2rem; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(7,20,12,.12);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(7,20,12,.2); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; }
.card-img .ph { width: 40%; opacity: .18; }
.card-badge { position: absolute; left: .7rem; top: .7rem; background: #11231a; color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; border-top: 1px solid rgba(0,0,0,.06); }
.card-cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #3a7a53; font-weight: 700; }
.card-name { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.card-desc { font-size: .85rem; color: #4a5e53; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin-top: auto; padding-top: .3rem; }
.card-ship { font-size: .8rem; color: #1b7a43; font-weight: 600; margin-bottom: .5rem; }
.btn-wa { background: #25d366; color: #052e16; box-shadow: 0 6px 18px rgba(37,211,102,.35); width: 100%; gap: .5rem; font-size: .95rem; }
.btn-wa svg { width: 1.2rem; height: 1.2rem; flex: none; }

.vacio { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1.2rem; border: 1px dashed var(--border); border-radius: 1.2rem; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.vacio h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.vacio p { color: var(--text-soft); margin: 0 auto 1.2rem; max-width: 28rem; }
.avisos { margin-top: 2rem; text-align: center; color: var(--text-soft); font-size: .88rem; }
.avisos p { margin: .3rem auto; max-width: 40rem; }
.avisos p:empty { display: none; }

@media (max-width: 40rem) {
  .section { padding: 3rem 0; }
  .grid-productos { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card-body { padding: .7rem .7rem .9rem; }
  .card-name { font-size: .92rem; }
  .card-price { font-size: 1.2rem; }
  .btn-wa { font-size: .82rem; padding: .7rem .5rem; }
  .card-desc { display: none; }
}
@media (max-width: 22rem) { .grid-productos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card, .chip { transition: none; } .card:hover { transform: none; } }

/* ===== Paso 5: cómo recibes tu pedido ===== */
.section-alt { isolation: isolate; }
.section-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent, color-mix(in srgb, var(--brand) 7%, var(--bg)) 18%, color-mix(in srgb, var(--brand) 7%, var(--bg)) 82%, transparent),
    radial-gradient(36rem 22rem at 90% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(30rem 20rem at 0% 90%, rgba(20,150,200,.09), transparent 70%);
}
.pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.paso {
  counter-increment: paso; position: relative;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 1.2rem;
  padding: 1.3rem 1.2rem 1.3rem; transition: transform .25s, border-color .25s;
}
.paso:hover { transform: translateY(-3px); border-color: var(--brand); }
.paso::before {
  content: counter(paso); display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; margin-bottom: .8rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #04140a;
  background: linear-gradient(135deg, #3ccf79, #1f9d5a); box-shadow: 0 6px 18px rgba(60,207,121,.3);
}
.paso h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .35rem; }
.paso p { margin: 0; color: var(--text-soft); font-size: .93rem; }
.paso.es-pago { border-color: var(--brand); }

.entrega-extra { display: grid; gap: 1rem; grid-template-columns: 1fr 1.4fr; margin-top: 1.4rem; align-items: stretch; }
.tiempo {
  border-radius: 1.2rem; padding: 1.5rem 1.4rem; color: #04140a;
  background: linear-gradient(135deg, #3ccf79, #1f9d5a);
  box-shadow: 0 14px 40px rgba(60,207,121,.25);
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
}
.tiempo-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; opacity: .75; }
.tiempo-texto { font-family: var(--font-head); font-size: 1.35rem; line-height: 1.25; }
.consejos { border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.3rem 1.4rem; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.consejos h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.consejos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.consejos li { position: relative; padding-left: 1.7rem; font-size: .93rem; color: var(--text-soft); }
.consejos li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.8' fill='none' stroke='%2304140a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
@media (max-width: 60rem) { .pasos { grid-template-columns: repeat(2, 1fr); } .entrega-extra { grid-template-columns: 1fr; } }
@media (max-width: 38rem) { .pasos { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .paso { transition: none; } .paso:hover { transform: none; } }

/* ===== Paso 6: nosotros, ubicación y redes ===== */
#nosotros { isolation: isolate; }
#nosotros::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38rem 24rem at 8% 20%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
              radial-gradient(30rem 20rem at 95% 80%, rgba(20,150,200,.10), transparent 70%);
}
.nosotros-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: stretch; }
.nosotros-texto { padding: .4rem .4rem; }
.nosotros-texto p { margin: 0 0 1rem; font-size: 1.05rem; color: var(--text-soft); max-width: 36rem; }
.nosotros-texto p:first-child { color: var(--text); font-size: 1.15rem; }
.contacto {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 1.3rem;
  padding: 1.5rem 1.4rem; background: color-mix(in srgb, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.contacto-marca { position: absolute; right: -2rem; bottom: -1.2rem; width: 11rem; opacity: .07; pointer-events: none; }
.datos { margin: 0; display: grid; gap: .9rem; position: relative; }
.datos dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.datos dd { margin: .1rem 0 0; font-size: 1rem; word-break: break-word; }
.datos a { text-decoration: underline; text-underline-offset: .2em; }
.contacto .btn-wa { position: relative; margin-top: auto; }
.redes { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.red {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: .6rem 1.1rem .6rem .8rem; min-height: 2.9rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.red svg { width: 1.3rem; height: 1.3rem; flex: none; }
.red:hover { transform: translateY(-2px); border-color: var(--brand); }
.red:hover svg { color: var(--brand); }
@media (max-width: 52rem) { .nosotros-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .red { transition: none; } .red:hover { transform: none; } }

/* ===== Paso 7: preguntas, políticas y pie de página ===== */
.wrap-narrow { max-width: 48rem; }
.acordeon { display: grid; gap: .7rem; }
.acordeon details {
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  transition: border-color .2s;
}
.acordeon details[open] { border-color: var(--brand); }
.acordeon summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; font-weight: 700; font-size: 1.02rem; min-height: 3.2rem;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after {
  content: ""; flex: none; width: .65rem; height: .65rem; margin-right: .2rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .25s;
}
.acordeon details[open] > summary::after { transform: rotate(-135deg); }
.acordeon .cuerpo { padding: 0 1.2rem 1.2rem; color: var(--text-soft); font-size: .96rem; }
.cuerpo p { margin: 0 0 .8rem; }
.cuerpo h4 { font-family: var(--font-head); color: var(--text); font-size: 1rem; margin: 1.1rem 0 .4rem; }
.cuerpo ul { margin: 0 0 .8rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.cuerpo > :last-child { margin-bottom: 0; }

.site-footer { background: var(--on-dark-bg); border-top: 1px solid var(--on-dark-border); padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom)); margin-top: 2rem; }
.footer-inner { display: grid; gap: 1.4rem; justify-items: center; text-align: center; }
.footer-brand img { width: 11rem; }
.footer-brand p { margin: .3rem 0 0; color: var(--on-dark-soft); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .5rem; }
.footer-nav a { text-decoration: none; color: var(--on-dark-soft); padding: .4rem .8rem; border-radius: 99px; font-size: .92rem; }
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.footer-legal { margin: 0; font-size: .8rem; color: var(--on-dark-soft); opacity: .8; max-width: 36rem; }
@media (prefers-reduced-motion: reduce) { .acordeon summary::after, .acordeon details { transition: none; } }

/* ===== Paso 8: botón y panel de ayuda ===== */
.ayuda-fab {
  position: fixed; z-index: 60; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: #04140a;
  background: linear-gradient(135deg, #3ccf79, #1f9d5a); border: 0; border-radius: 99px;
  min-height: 3rem; padding: 0 1.1rem 0 .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s;
}
.ayuda-fab:hover { transform: translateY(-2px); }
.ayuda-q { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #04140a; color: #3ccf79; font-family: var(--font-head); font-weight: 800; }
.ayuda {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(30rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; overflow: visible;
}
.ayuda::backdrop { background: rgba(3,10,6,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ayuda-caja {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 1.4rem;
  padding: 1.6rem 1.5rem 1.5rem; max-height: calc(100dvh - 2rem); overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.ayuda h2 { font-size: 1.5rem; font-weight: 800; padding-right: 2.5rem; margin-bottom: .6rem; }
.ayuda h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; color: var(--brand); }
.ayuda p, .ayuda li { color: var(--text-soft); font-size: .95rem; margin: 0; }
.ayuda ol, .ayuda ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.ayuda .btn-wa { width: 100%; margin-top: 1.3rem; }
.ayuda-cerrar {
  position: absolute; right: .8rem; top: .8rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.ayuda-cerrar:hover { border-color: var(--brand); }
@media (max-width: 40rem) { .ayuda-txt { display: none; } .ayuda-fab { padding: 0 .6rem; } }
@media (prefers-reduced-motion: reduce) { .ayuda-fab { transition: none; } }

/* ===== Detalle de producto ===== */
.card { cursor: pointer; }
.card-name-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; }
.card-name-btn:hover { text-decoration: underline; text-underline-offset: .2em; }
.card-more { font-size: .8rem; color: #3a7a53; font-weight: 600; margin-bottom: .6rem; }
.card-ship { margin-bottom: .2rem; }
.card:hover .card-more { text-decoration: underline; text-underline-offset: .2em; }

.detalle { border: 0; padding: 0; background: transparent; color: var(--text); width: min(52rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; overflow: visible; }
.detalle::backdrop { background: rgba(3,10,6,.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.detalle-caja { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 1.4rem; max-height: calc(100dvh - 1.5rem); overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.detalle .ayuda-cerrar { z-index: 3; background: var(--surface); }
.detalle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; }
.det-media { padding: 1.2rem; background: #fff; border-radius: 1.4rem 0 0 1.4rem; align-self: stretch; }
.det-foto { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; }
.det-foto img { width: 100%; height: 100%; object-fit: contain; }
.det-foto .ph { width: 40%; height: auto; opacity: .18; }
.det-tiras { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.det-mini { width: 3.6rem; height: 3.6rem; padding: 0; border: 2px solid #d5e3d8; border-radius: .6rem; background: #fff; cursor: pointer; overflow: hidden; }
.det-mini[aria-pressed="true"] { border-color: #1f9d5a; }
.det-mini img { width: 100%; height: 100%; object-fit: contain; }
.det-info { padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.det-info .card-cat { color: var(--brand); }
.det-nombre { font-size: 1.5rem; font-weight: 800; padding-right: 2.5rem; }
.det-precio { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; }
.det-info .card-ship { color: var(--brand); }
.det-resumen { margin: .3rem 0 0; color: var(--text); }
.det-texto { color: var(--text-soft); font-size: .95rem; }
.det-texto p { margin: 0 0 .7rem; }
.det-texto h4 { font-family: var(--font-head); color: var(--text); margin: .9rem 0 .3rem; }
.det-texto ul { margin: 0 0 .7rem; padding-left: 1.2rem; }
.det-bloque { border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .4rem; }
.det-bloque h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--brand); }
.det-bloque ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; color: var(--text-soft); font-size: .93rem; }
.det-bloque p { margin: 0 0 .4rem; color: var(--text-soft); font-size: .93rem; }
.det-enlace { font-size: .88rem; color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.det-info .btn-wa { width: 100%; margin-top: 1rem; }
@media (max-width: 40rem) {
  .detalle-grid { grid-template-columns: 1fr; }
  .det-media { border-radius: 1.4rem 1.4rem 0 0; padding: 1rem 1rem .6rem; }
  .det-foto { max-height: 18rem; aspect-ratio: auto; height: 16rem; }
  .det-info { padding: 1.1rem 1.1rem 1.3rem; }
  .card-more { font-size: .74rem; }
}
