/* =============================================================
   DULCES SOLUCIONES — styles.css
   Archetype: Editorial Light (adaptado con rojo #df2020 + blanco)
   ============================================================= */

/* =============================================================
   1. Tokens (custom properties)
   ============================================================= */
:root {
  --rojo:        #df2020;
  --rojo-oscuro: #b81919;
  --rojo-suave:  rgba(223, 32, 32, 0.08);
  --blanco:      #ffffff;
  --fondo:       #ffffff;
  --fondo-2:     #f5f5f5;
  --fondo-3:     #fafafa;
  --tinta:       #1a1a1a;
  --tinta-suave: #444444;
  --tinta-mute:  #888888;
  --linea:       rgba(26, 26, 26, 0.1);
  --sans:        'Poppins', system-ui, sans-serif;
  --radio:       12px;
  --radio-grande: 20px;
  --sombra:      0 4px 24px rgba(0,0,0,0.08);
  --sombra-hover: 0 12px 40px rgba(0,0,0,0.14);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-alto:    72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
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; }
h1, h2, h3, h4, h5 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
ul, ol { list-style: none; }
::selection { background: var(--rojo); color: #fff; }
:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilidades
   ============================================================= */
.contenedor {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--rojo); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  cursor: pointer; border: none; outline: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97) !important; }

.btn-rojo {
  background: var(--rojo); color: #fff;
}
.btn-rojo:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223,32,32,.35);
}

.btn-contorno {
  background: transparent; color: var(--rojo);
  border: 2px solid var(--rojo);
}
.btn-contorno:hover {
  background: var(--rojo-suave);
  transform: translateY(-2px);
}

.btn-blanco {
  background: #fff; color: var(--rojo);
}
.btn-blanco:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* Ripple effect en botones */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0); animation: rippleAnim .5s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* =============================================================
   5. Header & Navegación
   ============================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-alto);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled {
  border-bottom-color: var(--linea);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.header__logo {
  flex-shrink: 0;
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
}
.header__logo-svg {
  width: 48px; height: 48px; flex-shrink: 0;
}
.header__logo-texto {
  display: flex; flex-direction: column; line-height: 1.1;
}
.header__logo-texto span:first-child {
  font-size: 1.15rem; font-weight: 800; color: var(--rojo); letter-spacing: -.03em;
}
.header__logo-texto span:last-child {
  font-size: .7rem; font-weight: 600; color: var(--tinta-mute); letter-spacing: .08em; text-transform: uppercase;
}

.header__nav {
  display: none;
  gap: .25rem;
}
@media (min-width: 960px) { .header__nav { display: flex; } }

.header__nav-link {
  padding: .5rem .9rem;
  border-radius: 50px;
  font-size: .9rem; font-weight: 600; color: var(--tinta-suave);
  transition: color .2s, background .2s;
}
.header__nav-link:hover,
.header__nav-link.activo {
  color: var(--rojo);
  background: var(--rojo-suave);
}

.header__acciones {
  display: flex; align-items: center; gap: .5rem;
}

/* Botón carrito */
.btn-carrito {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--fondo-2);
  transition: background .2s, transform .2s var(--ease-bounce);
  color: var(--tinta);
}
.btn-carrito:hover {
  background: var(--rojo-suave);
  color: var(--rojo);
  transform: scale(1.08);
}
.btn-carrito.bounce {
  animation: cartBounce .4s var(--ease-bounce);
}
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.25); }
}
.badge-carrito {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--rojo); color: #fff;
  border-radius: 50px; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  transform: scale(0); opacity: 0;
  transition: transform .3s var(--ease-bounce), opacity .3s;
  pointer-events: none;
}
.badge-carrito.visible {
  transform: scale(1); opacity: 1;
}

/* Menú hamburguesa */
.btn-menu {
  display: flex; flex-direction: column; gap: 5px;
  width: 32px; padding: 4px; cursor: pointer;
}
.btn-menu span {
  display: block; height: 2px; background: var(--tinta);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
@media (min-width: 960px) { .btn-menu { display: none; } }
.btn-menu.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-menu.abierto span:nth-child(2) { opacity: 0; }
.btn-menu.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.nav-movil {
  position: fixed; top: var(--nav-alto); left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 2rem 1.25rem;
  gap: .5rem;
  transform: translateY(-110%); opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .4s;
}
.nav-movil.abierto {
  transform: translateY(0); opacity: 1;
  pointer-events: auto;
}
.nav-movil a {
  padding: 1rem; font-size: 1.25rem; font-weight: 700;
  color: var(--tinta);
  border-bottom: 1px solid var(--linea);
  transition: color .2s, padding-left .2s;
}
.nav-movil a:hover { color: var(--rojo); padding-left: 1.5rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 92svh;
  display: flex; align-items: center;
  background: var(--fondo);
}
.hero__fondo {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 90% 20%, rgba(223,32,32,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(223,32,32,.04) 0%, transparent 60%);
  animation: heroDrift 20s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.08) rotate(2deg); }
}
.hero__grano {
  position: absolute; inset: 0; z-index: 1;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__contenido {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: 5rem;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 1.5rem;
}
.hero__eyebrow::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; background: var(--rojo); border-radius: 2px;
}
.hero__titulo {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 800; line-height: 1.05;
  color: var(--tinta);
  max-width: 14ch; margin-bottom: 1.5rem;
}
.hero__titulo em {
  font-style: normal; color: var(--rojo);
}
.hero__sub {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  color: var(--tinta-suave);
  max-width: 48ch; margin-bottom: 2.5rem; line-height: 1.7;
}
.hero__acciones {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.hero__stats {
  display: flex; gap: 2.5rem;
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--linea);
}
.hero__stat-num {
  display: block; font-size: 1.8rem; font-weight: 800; color: var(--rojo);
}
.hero__stat-label {
  font-size: .8rem; font-weight: 600; color: var(--tinta-mute); text-transform: uppercase; letter-spacing: .06em;
}
.hero__imagen-wrap {
  position: relative;
  display: none;
}
@media (min-width: 960px) { .hero__imagen-wrap { display: block; } }
.hero__imagen-flotante {
  width: 480px; height: 520px;
  object-fit: cover; border-radius: var(--radio-grande);
  box-shadow: 0 32px 80px rgba(0,0,0,.14);
  transform: rotate(3deg);
  transition: transform .6s var(--ease-out);
}
.hero__imagen-flotante:hover { transform: rotate(0deg) scale(1.02); }

.hero__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
}

/* Animación entrada hero */
.hero__eyebrow, .hero__titulo, .hero__sub, .hero__acciones, .hero__stats {
  opacity: 0; transform: translateY(24px);
}
.is-ready .hero__eyebrow { animation: slideUp .7s .1s var(--ease-out) forwards; }
.is-ready .hero__titulo  { animation: slideUp .7s .2s var(--ease-out) forwards; }
.is-ready .hero__sub     { animation: slideUp .7s .3s var(--ease-out) forwards; }
.is-ready .hero__acciones{ animation: slideUp .7s .4s var(--ease-out) forwards; }
.is-ready .hero__stats   { animation: slideUp .7s .5s var(--ease-out) forwards; }
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   7. Sección categorías
   ============================================================= */
.seccion-categorias {
  padding-block: 5rem;
  background: var(--fondo-2);
}
.seccion-titulo {
  text-align: center; margin-bottom: 3rem;
}
.seccion-titulo h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--tinta); margin-bottom: .5rem;
}
.seccion-titulo p {
  color: var(--tinta-mute); font-size: .95rem;
}
.grilla-categorias {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 720px) { .grilla-categorias { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grilla-categorias { grid-template-columns: repeat(5, 1fr); } }

.card-categoria {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 2rem 1.25rem;
  background: var(--blanco); border-radius: var(--radio-grande);
  border: 2px solid transparent;
  text-decoration: none; color: var(--tinta);
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s, color .3s;
  box-shadow: var(--sombra);
}
.card-categoria:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
  border-color: var(--rojo);
  color: var(--rojo);
}
.card-categoria__icono {
  width: 56px; height: 56px;
  background: var(--rojo-suave); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s var(--ease-bounce);
}
.card-categoria:hover .card-categoria__icono {
  background: var(--rojo); color: #fff;
  transform: scale(1.12);
}
.card-categoria__nombre {
  font-size: .9rem; font-weight: 700; text-align: center;
}
.card-categoria__cantidad {
  font-size: .75rem; color: var(--tinta-mute); font-weight: 500;
}

/* =============================================================
   8. Grilla de productos
   ============================================================= */
.seccion-productos {
  padding-block: 5rem;
}
.seccion-productos.fondo-gris { background: var(--fondo-2); }

.grilla-productos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 540px)  { .grilla-productos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grilla-productos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grilla-productos { grid-template-columns: repeat(4, 1fr); } }

.card-producto {
  background: var(--blanco);
  border-radius: var(--radio-grande);
  overflow: hidden;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  display: flex; flex-direction: column;
}
.card-producto:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.card-producto__imagen {
  aspect-ratio: 3/2; overflow: hidden; position: relative; background: var(--fondo-2);
}
.card-producto__imagen img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.card-producto:hover .card-producto__imagen img { transform: scale(1.06); }

.card-producto__badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--rojo); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 50px;
}

.card-producto__cuerpo {
  padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem;
}
.card-producto__categoria {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--rojo);
}
.card-producto__nombre {
  font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--tinta);
  text-decoration: none;
  transition: color .2s;
}
.card-producto__nombre:hover { color: var(--rojo); }
.card-producto__desc {
  font-size: .83rem; color: var(--tinta-mute); line-height: 1.5; flex: 1;
}
.card-producto__footer {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--linea);
}
.card-producto__precio {
  font-size: 1.2rem; font-weight: 800; color: var(--tinta);
}
.card-producto__precio::before { content: '$'; font-size: .9rem; }

.btn-agregar {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem;
  background: var(--rojo); color: #fff;
  border-radius: 50px; font-size: .8rem; font-weight: 700;
  transition: background .2s, transform .2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer; border: none;
}
.btn-agregar:hover { background: var(--rojo-oscuro); transform: scale(1.04); }
.btn-agregar:active { transform: scale(.96); }
.btn-agregar.agregado {
  background: #27ae60;
}

/* Animación stagger de cards */
.card-producto {
  opacity: 0; transform: translateY(20px);
}
.card-producto.visible {
  animation: cardAppear .5s var(--ease-out) forwards;
}
@keyframes cardAppear {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   9. Sección beneficios
   ============================================================= */
.seccion-beneficios {
  padding-block: 5rem;
  background: var(--rojo);
  color: #fff;
}
.grilla-beneficios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px)  { .grilla-beneficios { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grilla-beneficios { grid-template-columns: repeat(4, 1fr); } }

.beneficio {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
}
.beneficio__icono {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.15); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.beneficio h3 { font-size: 1.05rem; font-weight: 700; }
.beneficio p { font-size: .88rem; opacity: .85; line-height: 1.6; }

/* =============================================================
   10. Footer
   ============================================================= */
.footer {
  background: #fff;
  color: var(--rojo);
  padding-block: 4rem 2rem;
  border-top: 2px solid var(--rojo-suave);
}
.footer__grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px)  { .footer__grilla { grid-template-columns: 2fr 1fr 1fr; } }

.footer__logo-texto {
  font-size: 1.4rem; font-weight: 800; color: var(--rojo); letter-spacing: -.03em;
  display: block; margin-bottom: .75rem;
}
.footer__desc {
  font-size: .88rem; color: var(--rojo); opacity: .7; line-height: 1.7; max-width: 36ch;
}
.footer__titulo {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--rojo); opacity: .6; margin-bottom: 1.25rem;
}
.footer__lista { display: flex; flex-direction: column; gap: .6rem; }
.footer__lista a {
  font-size: .88rem; color: var(--rojo); opacity: .7; transition: opacity .2s;
}
.footer__lista a:hover { opacity: 1; }
.footer__contacto { font-size: .88rem; color: var(--rojo); opacity: .8; line-height: 1.8; }
.footer__contacto strong { opacity: 1; color: var(--rojo); }

.footer__inferior {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid rgba(223,32,32,.15);
  font-size: .8rem; color: var(--rojo); opacity: .6;
}

/* =============================================================
   11. Página catálogo — filtros y búsqueda
   ============================================================= */
.catalogo-header {
  padding-block: 3rem 2rem;
  background: var(--fondo-2);
}
.catalogo-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .5rem;
}
.busqueda-wrap {
  position: relative; max-width: 480px;
}
.busqueda-wrap svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--tinta-mute); pointer-events: none;
}
#buscador {
  width: 100%;
  padding: .9rem 1rem .9rem 2.75rem;
  border: 2px solid var(--linea); border-radius: 50px;
  font-family: var(--sans); font-size: .95rem;
  background: var(--blanco); color: var(--tinta);
  transition: border-color .2s;
  outline: none;
}
#buscador:focus { border-color: var(--rojo); }

.filtros-wrap {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding-block: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
}
.filtro-pill {
  padding: .55rem 1.25rem;
  border-radius: 50px;
  font-size: .85rem; font-weight: 600;
  background: var(--blanco); color: var(--tinta-suave);
  border: 2px solid var(--linea);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.filtro-pill:hover { border-color: var(--rojo); color: var(--rojo); }
.filtro-pill.activo { background: var(--rojo); color: #fff; border-color: var(--rojo); }

.catalogo-info {
  font-size: .85rem; color: var(--tinta-mute);
  margin-bottom: 1.5rem;
}
#sin-resultados {
  display: none; text-align: center; padding: 5rem 1rem;
  color: var(--tinta-mute);
}
#sin-resultados h3 { font-size: 1.3rem; margin-bottom: .5rem; }

/* =============================================================
   12. Página producto detalle
   ============================================================= */
.producto-detalle {
  padding-block: 4rem;
}
.producto-detalle__grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 720px) { .producto-detalle__grid { grid-template-columns: 1fr 1fr; } }

.producto-detalle__imagen {
  border-radius: var(--radio-grande); overflow: hidden;
  aspect-ratio: 4/3; background: var(--fondo-2);
}
.producto-detalle__imagen img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.producto-detalle__imagen:hover img { transform: scale(1.04); }

.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--tinta-mute);
  margin-bottom: 1.5rem;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--rojo); }
.breadcrumb span { opacity: .4; }

.producto-detalle__cat {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--rojo); margin-bottom: .5rem;
}
.producto-detalle__nombre {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 1rem;
}
.producto-detalle__precio-grande {
  font-size: 2.2rem; font-weight: 800; color: var(--tinta); margin-bottom: 1.5rem;
}
.producto-detalle__precio-grande::before { content: '$'; font-size: 1.3rem; }
.producto-detalle__desc { color: var(--tinta-suave); line-height: 1.8; margin-bottom: 2rem; }

.cantidad-selector {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.cantidad-selector label { font-weight: 600; font-size: .9rem; }
.cantidad-ctrl {
  display: flex; align-items: center; gap: .25rem;
  border: 2px solid var(--linea); border-radius: 50px;
  padding: .25rem .5rem;
}
.cantidad-ctrl button {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fondo-2); color: var(--tinta);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cantidad-ctrl button:hover { background: var(--rojo-suave); color: var(--rojo); }
#cantidad-input {
  width: 48px; text-align: center;
  font-family: var(--sans); font-weight: 700; font-size: 1.1rem;
  border: none; outline: none; background: transparent;
}

.producto-detalle__acciones { display: flex; flex-wrap: wrap; gap: .75rem; }

.stock-info {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: #27ae60; font-weight: 600; margin-bottom: 1rem;
}
.stock-info::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #27ae60; display: inline-block;
}

/* =============================================================
   13. Carrito
   ============================================================= */
.carrito-page {
  padding-block: 4rem;
  min-height: 60vh;
}
.carrito-page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 2rem;
}
.carrito-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 960px) { .carrito-grid { grid-template-columns: 1fr 340px; } }

.carrito-tabla {
  border: 1px solid var(--linea); border-radius: var(--radio-grande); overflow: hidden;
}
.carrito-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem; align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--linea);
  transition: background .2s;
}
.carrito-item:last-child { border-bottom: none; }
.carrito-item:hover { background: var(--fondo-3); }
.carrito-item__imagen {
  width: 80px; height: 80px; border-radius: 10px;
  overflow: hidden; background: var(--fondo-2);
  flex-shrink: 0;
}
.carrito-item__imagen img { width: 100%; height: 100%; object-fit: cover; }
.carrito-item__nombre {
  font-weight: 700; font-size: .95rem; color: var(--tinta);
  text-decoration: none; display: block; margin-bottom: .25rem;
  transition: color .2s;
}
.carrito-item__nombre:hover { color: var(--rojo); }
.carrito-item__precio-unit { font-size: .8rem; color: var(--tinta-mute); }
.carrito-item__ctrl { display: flex; align-items: center; gap: .5rem; }
.carrito-item__qty {
  display: flex; align-items: center; gap: .3rem;
  border: 2px solid var(--linea); border-radius: 50px;
  padding: .2rem .4rem;
}
.carrito-item__qty button {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fondo-2); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carrito-item__qty button:hover { background: var(--rojo-suave); color: var(--rojo); }
.carrito-item__qty input {
  width: 36px; text-align: center; font-family: var(--sans);
  font-weight: 700; font-size: .95rem; border: none; outline: none; background: transparent;
}
.carrito-item__subtotal { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.carrito-item__eliminar {
  color: var(--tinta-mute); padding: .5rem;
  transition: color .2s, transform .2s;
  background: none; border: none; cursor: pointer;
}
.carrito-item__eliminar:hover { color: #e74c3c; transform: scale(1.2); }

.carrito-vacio {
  text-align: center; padding: 5rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.carrito-vacio svg { color: var(--tinta-mute); opacity: .3; }
.carrito-vacio h3 { font-size: 1.3rem; }
.carrito-vacio p { color: var(--tinta-mute); max-width: 30ch; }

/* Panel resumen carrito / checkout */
.resumen-panel {
  background: var(--blanco);
  border: 1px solid var(--linea); border-radius: var(--radio-grande);
  padding: 1.75rem;
  position: sticky; top: calc(var(--nav-alto) + 1rem);
  height: fit-content;
}
.resumen-panel h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1.5rem; }
.resumen-linea {
  display: flex; justify-content: space-between;
  font-size: .9rem; color: var(--tinta-suave);
  padding-block: .5rem; border-bottom: 1px solid var(--linea);
}
.resumen-linea:last-of-type { border-bottom: none; }
.resumen-total {
  display: flex; justify-content: space-between;
  font-size: 1.2rem; font-weight: 800;
  margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--tinta);
}
.resumen-total span:last-child::before { content: '$'; font-size: .9rem; }
.resumen-acciones { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.resumen-acciones .btn { width: 100%; justify-content: center; }

/* =============================================================
   14. Checkout
   ============================================================= */
.checkout-page { padding-block: 4rem; }
.checkout-page h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 2rem; }
.checkout-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 960px) { .checkout-grid { grid-template-columns: 1fr 340px; } }

.form-checkout {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--radio-grande); padding: 2rem;
}
.form-checkout h2 {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem;
  padding-bottom: .75rem; border-bottom: 2px solid var(--linea);
}
.form-fila {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem;
}
@media (min-width: 540px) { .form-fila.dos-col { grid-template-columns: 1fr 1fr; } }

.campo {
  display: flex; flex-direction: column; gap: .4rem;
}
.campo label { font-size: .85rem; font-weight: 600; color: var(--tinta-suave); }
.campo input,
.campo select,
.campo textarea {
  padding: .75rem 1rem;
  border: 2px solid var(--linea); border-radius: var(--radio);
  font-family: var(--sans); font-size: .95rem; color: var(--tinta);
  background: var(--fondo-3);
  transition: border-color .2s;
  outline: none;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus { border-color: var(--rojo); background: var(--blanco); }
.campo textarea { resize: vertical; min-height: 80px; }

.pagar-btn {
  width: 100%; justify-content: center;
  font-size: 1rem; padding: 1rem 2rem;
  margin-top: 1.5rem;
}
.pagar-btn .spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
.pagar-btn.cargando .spinner { display: block; }
.pagar-btn.cargando .btn-texto { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.checkout-items { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.checkout-item {
  display: flex; align-items: center; gap: .75rem;
}
.checkout-item img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
  background: var(--fondo-2);
}
.checkout-item__info { flex: 1; }
.checkout-item__nombre { font-size: .85rem; font-weight: 700; }
.checkout-item__meta { font-size: .78rem; color: var(--tinta-mute); }
.checkout-item__precio { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.checkout-item__precio::before { content: '$'; font-size: .75rem; }

/* =============================================================
   15. Página producto relacionados
   ============================================================= */
.relacionados { padding-block: 4rem; background: var(--fondo-2); }
.relacionados h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 2rem; }

/* =============================================================
   16. Reveal animations (IntersectionObserver)
   ============================================================= */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   17. Toast notificación
   ============================================================= */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--tinta); color: #fff;
  padding: .85rem 1.5rem; border-radius: 12px;
  font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transform: translateY(120%); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s;
  z-index: 9998; max-width: 320px;
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.ok { border-left: 4px solid #27ae60; }
.toast.error { border-left: 4px solid var(--rojo); }

/* =============================================================
   18. Paginación / enlace a catalogo
   ============================================================= */
.ver-mas-wrap {
  text-align: center; margin-top: 3rem;
}

/* =============================================================
   19. View Transitions
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vtFadeOut; }
::view-transition-new(root) { animation-name: vtFadeIn; }
@keyframes vtFadeOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtFadeIn  { from { opacity: 0; transform: translateY(8px); } }

/* =============================================================
   20. Responsive: reducción de movimiento (solo intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__fondo { animation: none; }
  @view-transition { navigation: none; }
}
