/* ================================================
   CALMA RAIZ - Tienda Online
   Paleta natural: tierra, verde salvia, crema
   Tipografia: Inter (estilo Wise — display en peso 800/900, texto utilitario normal)
================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Paleta — Calma Raíz, sin cambios */
  --crema:    #f5f0e8;
  --crema2:   #ede7d9;
  --crema3:   #e2dace;
  --blanco:   #fdfbf7;
  --verde:    #4a6741;
  --verde2:   #3a5333;
  --verde-cl: #d4e3cf;
  --tierra:   #8b6914;
  --tierra-cl:#f5edd8;
  --rojo:     #b84a3a;
  --rojo-cl:  #fce8e5;
  --texto:    #2a2620;
  --texto2:   #5c5448;
  --texto3:   #9c9080;
  --borde:    #d8d0c0;

  /* Tipografía — estilo Wise: una sola familia (Inter), peso como jerarquía.
     Los títulos grandes van en 800/900, todo lo demás en 400-600. */
  --font-disp: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Bordes — escala Wise: sm/md/lg/xl/pill */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;
  --r:   var(--r-md);   /* inputs y chrome chico */
  --rl:  var(--r-xl);   /* tarjetas y contenedores principales */
  --rx:  var(--r-xl);
  --max: 1280px;
  --shadow: 0 2px 8px rgba(42,38,32,.08), 0 8px 24px rgba(42,38,32,.04);
  --shadow-lg: 0 8px 32px rgba(42,38,32,.12);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--texto);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── UTILIDADES ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── HEADER ── */
.site-header {
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(42,38,32,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--verde-cl);
  border: 1px solid #b8d4b2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-disp);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--verde);
}
.logo-tagline {
  font-size: 10px;
  color: var(--texto3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--texto2);
  text-decoration: none;
  transition: all .15s;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.activo {
  background: var(--crema2);
  color: var(--verde);
}

/* Header acciones */
.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-carrito {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn-carrito:hover { background: var(--crema2); border-color: var(--verde); }
.carrito-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--verde);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.carrito-badge.show { display: flex; }

/* Menú hamburguesa móvil */
.btn-menu {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--borde);
  background: var(--blanco);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--rl);
  border: 1px solid var(--borde);
  background: var(--blanco);
  color: var(--texto2);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
}
.btn:hover { background: var(--crema2); color: var(--texto); }

.btn-primary {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}
.btn-primary:hover { background: var(--verde2); border-color: var(--verde2); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--verde);
  color: var(--verde);
}
.btn-outline:hover { background: var(--verde); color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--verde) 0%, #3a5333 50%, #2d4228 100%);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── FONDO DE VIDEO (reutilizable: hero + banner "Cómo comprar") ──
   Se agrega sobre cualquier sección con position:relative + overflow:hidden.
   El ::before de arriba (textura de puntitos) queda debajo del video porque
   el video se pinta con z-index más alto. */
.media-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 42% en vez de 50% (centro): deja ver mejor la figura del video sin
     que la franja visible caiga siempre justo en la mitad del clip */
  object-position: center 42%;
}
.media-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(26,58,38,.85) 0%,
    rgba(45,66,40,.78) 50%,
    rgba(20,38,24,.88) 100%
  );
}
/* Todo lo que ya tenías (hero-inner, section-title, etc.) queda arriba
   del video y del oscurecido con esto: */
.hero-inner,
.media-bg-content {
  position: relative;
  z-index: 2;
}

/* En pantallas chicas, algunos navegadores restringen el autoplay o el
   usuario prefiere ahorrar datos: se apaga el video y queda el fondo
   verde de siempre como respaldo. */
@media (max-width: 640px) and (prefers-reduced-data: reduce) {
  .media-bg-video { display: none; }
}

/* ── BANNER CON VIDEO (fuera del hero, ej: intro de "Cómo comprar") ──
   .section-tag / .section-title / .section-sub son oscuros por defecto
   (pensados para fondo claro); acá se sobreescriben a blanco porque el
   fondo pasa a ser el video oscurecido.
   min-height + flex centrado: antes esta sección era muy baja (solo el
   padding de una intro de texto corta) y el video quedaba recortado en
   una tira angosta y rara. Con más alto, se ve una porción del video
   mucho más natural, igual que en el hero. */
.cc-video-banner {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 56px 0;
}
.cc-video-banner .section-tag { color: rgba(255,255,255,.75); }
.cc-video-banner .section-title { color: #fff; }
.cc-video-banner .section-sub { color: rgba(255,255,255,.8); }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.hero-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tag::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,.4); }
.hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.hero h1 em { font-style: italic; color: rgba(255,255,255,.85); }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  max-width: 440px;
  margin-bottom: 28px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  flex-shrink: 0;
}
.hero-badge .hb-num {
  font-family: var(--font-disp);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.hero-badge .hb-txt {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── SECCIONES ── */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }

.section-header { margin-bottom: 32px; }
.section-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-disp);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--texto);
  line-height: 1.15;
}
.section-sub {
  font-size: 15px;
  color: var(--texto3);
  margin-top: 8px;
}

/* ── GRID PRODUCTOS ── */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── CARD PRODUCTO ── */
.prod-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--rl);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  /* Sin esto, un nombre de producto largo empuja la columna del grid más
     ancha de lo que le corresponde (min-width:auto es el default en items
     de grid) y desborda la pantalla en mobile — visto en catálogo/destacados
     con 2 columnas angostas. */
  min-width: 0;
}
.prod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.prod-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--crema2);
  overflow: hidden;
}
.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.prod-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: .35;
}
.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.prod-badge.destacado { background: var(--tierra); color: #fff; }
.prod-badge.sin-stock { background: rgba(42,38,32,.6); color: #fff; }

.prod-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 5px;
}
.prod-nombre {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
  overflow-wrap: break-word;
}
.prod-nombre a { color: inherit; text-decoration: none; }
.prod-nombre a:hover { color: var(--verde); }
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.prod-precio {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--verde);
}
.prod-sin-stock { font-size: 12px; color: var(--texto3); }

.btn-agregar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--verde);
  background: transparent;
  color: var(--verde);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-agregar:hover { background: var(--verde); color: #fff; }
.btn-agregar:disabled { border-color: var(--borde); color: var(--texto3); cursor: not-allowed; }

.ver-precio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--verde);
  background: var(--crema2);
  border: 1px solid var(--borde);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .15s;
}
.ver-precio-btn:hover {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
}

/* ── CATEGORÍAS FILTROS ── */
.cats-filtro {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cats-scroll-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  /* Desvanece el final en vez de cortar en seco — se nota que hay más
     píldoras para deslizar hacia la derecha. Es transparencia real
     (mask), no un color de fondo, así funciona igual sobre cualquier
     fondo de página. */
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
}
.cats-scroll-wrap::-webkit-scrollbar { display: none; }
.cat-pill-end { margin-left: auto; flex-shrink: 0; }
.cat-pill {
  padding: 7px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--borde);
  background: var(--blanco);
  color: var(--texto2);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-pill:hover, .cat-pill.activo {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}

/* ── LAYOUT CATÁLOGO ── */
.catalogo-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.cats-mobile-only { display: none !important; }
/* Mismo bug que .prod-card pero un nivel más arriba: en mobile
   .catalogo-layout colapsa a una sola columna, pero esa columna igual
   hereda el ancho mínimo implícito del contenido anidado adentro
   (.productos-grid) y "empuja" el layout más ancho que la pantalla.
   Es la razón por la que la home (sin esta capa extra) no tenía este
   problema y el catálogo sí. */
.catalogo-layout > * { min-width: 0; }

/* ── CARRITO LATERAL ── */
.carrito-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,38,32,.5);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.carrito-overlay.show { opacity: 1; pointer-events: all; }

.carrito-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--blanco);
  z-index: 401;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(42,38,32,.12);
}
.carrito-panel.show { transform: translateX(0); }

.carrito-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.carrito-titulo {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 800;
}
.btn-cerrar-carrito {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto2);
  transition: all .15s;
}
.btn-cerrar-carrito:hover { background: var(--crema2); }

.carrito-items { flex: 1; overflow-y: auto; padding: 16px 24px; }

.carrito-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--crema3);
  align-items: flex-start;
}
.carrito-item:last-child { border-bottom: none; }
.ci-img {
  width: 60px;
  height: 60px;
  border-radius: var(--r);
  object-fit: cover;
  background: var(--crema2);
  flex-shrink: 0;
}
.ci-placeholder {
  width: 60px;
  height: 60px;
  border-radius: var(--r);
  background: var(--crema2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.ci-info { flex: 1; min-width: 0; }
.ci-nombre {
  font-size: 13px;
  font-weight: 500;
  color: var(--texto);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ci-precio { font-size: 12px; color: var(--texto3); }
.ci-controles {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.ci-cant-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: var(--blanco);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto2);
  transition: all .15s;
}
.ci-cant-btn:hover { background: var(--crema2); }
.ci-cant { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; }
.ci-subtotal { font-size: 14px; font-weight: 600; color: var(--verde); white-space: nowrap; }
.ci-eliminar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--texto3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.ci-eliminar:hover { background: var(--rojo-cl); color: var(--rojo); }

.carrito-vacio {
  text-align: center;
  padding: 48px 20px;
  color: var(--texto3);
}
.carrito-vacio .cv-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }

.carrito-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--borde);
  background: var(--crema);
}
.carrito-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ct-label { font-size: 13px; color: var(--texto3); font-weight: 500; }
.ct-valor {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--verde);
}

/* ── BUSCADOR ── */
.buscador-wrap {
  position: relative;
  max-width: 400px;
}
.buscador-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--borde);
  border-radius: var(--r-pill);
  background: var(--blanco);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--texto);
  outline: none;
  transition: border .15s;
}
.buscador-wrap input:focus { border-color: var(--verde); }
.buscador-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto3);
  font-size: 15px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--texto3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--verde); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .4; }

/* ── FICHA PRODUCTO ── */
.producto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.producto-img-main {
  aspect-ratio: 1;
  border-radius: var(--rl);
  overflow: hidden;
  background: var(--crema2);
}
.producto-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.producto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: .25;
}
.producto-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--verde); font-weight: 600; margin-bottom: 8px; }
.producto-nombre {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--texto);
  margin-bottom: 16px;
}
.producto-precio {
  font-family: var(--font-disp);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--verde);
  margin-bottom: 20px;
}
.producto-desc {
  font-size: 15px;
  color: var(--texto2);
  line-height: 1.7;
  margin-bottom: 28px;
}
.producto-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--texto3);
  margin-bottom: 24px;
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde);
}
.stock-dot.sin { background: var(--texto3); }

.cant-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cant-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--borde);
  background: var(--blanco);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cant-btn:hover { border-color: var(--verde); color: var(--verde); }
.cant-num {
  font-size: 18px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

/* ── FORMULARIOS ── */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--borde);
  border-radius: var(--r);
  background: var(--blanco);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--texto);
  outline: none;
  transition: border .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--verde); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── ALERTA / TOAST ── */
.alerta {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alerta.ok  { background: var(--verde-cl); color: var(--verde2); border: 1px solid #b8d4b2; }
.alerta.err { background: var(--rojo-cl);  color: var(--rojo);   border: 1px solid #f0b0a5; }
.alerta.info{ background: var(--tierra-cl);color: var(--tierra); border: 1px solid #ddc97a; }

/* ── TOAST FLOTANTE ── */
#toast {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--verde);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--rl);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ── MEDIOS DE PAGO ── */
.medios-pago { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.medio-pago-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--borde);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .15s;
}
.medio-pago-opt:has(input:checked) {
  border-color: var(--verde);
  background: var(--verde-cl);
}
.medio-pago-opt input { display: none; }
.mpo-icon { font-size: 24px; }
.mpo-info .mpo-nombre { font-weight: 600; font-size: 14px; }
.mpo-info .mpo-desc { font-size: 12px; color: var(--texto3); margin-top: 2px; }

/* ── CHECKOUT STEPS ── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--texto3);
  font-weight: 500;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: all .2s;
}
.step.activo .step-num  { background: var(--verde); border-color: var(--verde); color: #fff; }
.step.activo            { color: var(--verde); }
.step.done .step-num    { background: var(--verde-cl); border-color: var(--verde); color: var(--verde); }
.step-line { flex: 1; height: 1px; background: var(--borde); margin: 0 12px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--texto);
  color: rgba(255,255,255,.7);
  padding: 48px 0 28px;
  margin-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo-name { color: rgba(255,255,255,.9); }
.footer-brand p { font-size: 13px; margin-top: 10px; line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.5); margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── CUENTA CLIENTE ── */
.cuenta-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0;
}
.cuenta-sidebar {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--rl);
  padding: 20px;
  height: fit-content;
}
.cuenta-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--verde-cl);
  border: 2px solid #b8d4b2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 800;
  color: var(--verde);
  margin: 0 auto 12px;
}
.cuenta-nombre { text-align: center; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cuenta-email  { text-align: center; font-size: 12px; color: var(--texto3); margin-bottom: 20px; }
.cuenta-nav a  {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r);
  color: var(--texto2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 2px;
}
.cuenta-nav a:hover, .cuenta-nav a.activo { background: var(--verde-cl); color: var(--verde); }

/* ── BADGE ESTADO PEDIDO ── */
.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.estado-pendiente  { background: var(--tierra-cl); color: var(--tierra); }
.estado-pagado     { background: var(--verde-cl);  color: var(--verde);  }
.estado-preparando { background: #dce8f5;           color: #2a6099;       }
.estado-listo      { background: #e8daf5;           color: #6b3a9a;       }
.estado-entregado  { background: var(--verde-cl);  color: var(--verde2); }
.estado-cancelado  { background: var(--rojo-cl);   color: var(--rojo);   }

/* ══ RESPONSIVE ══════════════════════════ */
@media (max-width: 1024px) {
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: 1/-1; }
}

@media (max-width: 768px) {
  .btn-menu { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--borde);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(42,38,32,.1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: var(--r); padding: 10px 16px; }

  .hero { padding: 40px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }

  /* Catálogo: sidebar se oculta, aparece carrusel scrolleable */
  .catalogo-layout { grid-template-columns: 1fr; gap: 16px; }
  .catalogo-sidebar { display: none; }
  .cats-mobile-only { display: flex !important; }

  .producto-layout { grid-template-columns: 1fr; gap: 24px; }
  .cuenta-layout   { grid-template-columns: 1fr; gap: 16px; }
  .cuenta-sidebar  { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .carrito-panel { max-width: 100%; }

  .steps { gap: 0; }
  .step span:not(.step-num) { display: none; }

  /* Checkout / carrito: layout de 2 columnas pasa a 1 */
  .container > div[style*="grid-template-columns:1fr 320px"],
  .container > div[style*="grid-template-columns: 1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
  .container > div[style*="grid-template-columns:1fr 320px"] > div:last-child,
  .container > div[style*="grid-template-columns: 1fr 320px"] > div:last-child {
    position: static !important;
  }

  .buscador-wrap { max-width: 100% !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .productos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* La flecha "→" (Ver producto / Ver opciones) es redundante: el nombre
     del producto ya es un link a la misma página. En 2 columnas angostas
     no entra junto al botón de precio sin apretar el texto, así que en
     vez de acomodarla, directamente desaparece acá. El botón real de
     "Agregar al carrito" (el "+") NO se toca, esa acción no tiene
     ningún otro lugar donde hacerse. */
  .prod-footer .btn-agregar[title="Ver producto"],
  .prod-footer .btn-agregar[title="Ver opciones"] { display: none; }
  .prod-precio { font-size: 18px; }
  .prod-nombre { font-size: 14px; }
  .prod-info { padding: 12px; }
  .hero h1 { font-size: 26px; }
  .cats-filtro { gap: 6px; }
  .cat-pill { padding: 6px 14px; font-size: 12px; }

  .logo-tagline { display: none; }
  .logo-icon { width: 34px; height: 34px; font-size: 16px; }
  .logo-name { font-size: 15px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .btn-carrito, .btn-menu { width: 36px; height: 36px; }

  .producto-precio { font-size: 28px; }
  .producto-nombre { font-size: 24px; }
}

/* ── CÓMO COMPRAR ── */
.cc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.cc-step {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--rl);
  padding: 24px 20px;
  position: relative;
}
.cc-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 14px;
}
.cc-step-icon { font-size: 26px; margin-bottom: 10px; }
.cc-step h3 {
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 6px;
  letter-spacing: -.2px;
}
.cc-step p { font-size: 13px; color: var(--texto2); line-height: 1.5; }

.cc-pago-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.cc-pago-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--rl);
  padding: 20px;
}
.cc-pago-card h4 {
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 800;
  color: var(--verde);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-dato-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--crema2);
  font-size: 13px;
}
.cc-dato-row:last-child { border-bottom: none; }
.cc-dato-row span:first-child { color: var(--texto3); }
.cc-dato-row span:last-child { color: var(--texto); font-weight: 600; text-align: right; }

@media (max-width: 480px) {
  .cc-steps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cc-step { padding: 16px 14px; }
}

/* ── Blog: contenido de una nota ── */
.blog-contenido p {
  margin-bottom: 18px;
}
.blog-contenido img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rl);
  margin: 24px 0;
}
.blog-contenido a {
  color: var(--verde);
  font-weight: 600;
}
