/* =========================================================
   HUAYCA — Design tokens y componentes compartidos
   Comunidad, confianza, tecnología con propósito.
   ========================================================= */

:root {
  /* Marca */
  --navy: #0d2b4e;
  --navy-dark: #081b32;
  --green: #1f7a4b;
  --green-dark: #145c37;
  --green-light: #e7f5ec;
  --orange: #e8801e;
  --orange-light: #fdf0e2;

  /* Base */
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-soft: #8a8a8a;
  --border: #e4e2db;

  /* Forma */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 4px rgba(13, 43, 78, 0.06);
  --shadow: 0 4px 18px rgba(13, 43, 78, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 43, 78, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Anuncio superior ---------- */
.anuncio-bar {
  background: var(--green);
  color: #fff;
  font-size: 13px;
  padding: 8px 20px;
}
.anuncio-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.anuncio-bar .der { font-style: italic; opacity: 0.9; }

/* ---------- Header ---------- */
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-principal {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green) 0%, var(--orange) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
  flex-shrink: 0;
}
/* Cuando hay un logo real subido (Huayca.aplicarHeaderFooter), el
   contenedor deja de ser un ícono cuadrado de 40x40 y pasa a acomodar la
   proporción natural del logo -sea un wordmark horizontal o un ícono
   cuadrado- sin recortarlo. object-fit:contain + height fijo + width:auto
   escala completo en vez de recortar con cover. */
.logo-mark.con-imagen {
  width: auto; max-width: 200px; height: 40px;
  background: none; border-radius: 0;
}
.logo-mark.con-imagen img {
  width: auto; height: 100%; max-width: 200px;
  object-fit: contain;
}
.logo-texto { display: flex; flex-direction: column; line-height: 1.1; }
.logo-texto b { color: var(--navy); font-size: 19px; letter-spacing: -0.01em; }
.logo-texto span { color: var(--text-soft); font-size: 10px; letter-spacing: 0.08em; font-weight: 600; }

.buscador-header { flex: 1; max-width: 520px; }
.buscador-header form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
}
.buscador-header input {
  flex: 1; border: none; background: transparent; font-size: 14px; outline: none; color: var(--text);
}
.buscador-header button {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
}

.nav-acciones { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-accion {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); font-weight: 600;
  white-space: nowrap;
}
.nav-accion .icono { font-size: 18px; }
.nav-accion small { display: block; font-weight: 400; color: var(--text-soft); font-size: 11px; }
.carrito-wrap { position: relative; }
.carrito-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--orange); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}

.menu-toggle {
  display: none;
  background: none; border: none; font-size: 22px; color: var(--navy);
}

/* Barra de categorías */
.categorias-bar {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.categorias-bar .container {
  display: flex; align-items: center; gap: 22px; padding: 10px 20px;
  overflow-x: auto;
}
.categorias-bar a {
  font-size: 13px; color: var(--navy); white-space: nowrap; font-weight: 500;
}
.categorias-bar a:hover { color: var(--green); }
/* .categorias-bar a.dropdown-cat / .cta-ofertas: el selector con más clases
   (0,2,1) tiene que ganarle a color de ".categorias-bar a" (0,1,1) o el
   texto queda invisible (blanco sobre navy / verde sobre verde). */
.categorias-bar a.dropdown-cat {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.categorias-bar a.cta-ofertas {
  margin-left: auto; flex-shrink: 0;
  background: var(--green-light); color: var(--green-dark);
  border: 1px solid var(--green); padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm);
  padding: 13px 22px; font-size: 14.5px; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-green { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; overflow: hidden; }
/* El hero entero (imagen + texto + botón) es ahora un carrusel de slides
   completos: #heroCarrusel/#heroCarruselTrack envuelven .hero-slide-full,
   cada uno con su propio .container de 2 columnas adentro (antes .container
   colgaba directo de .hero, con un solo texto fijo y solo las fotos del
   óvalo rotando). */
/* overflow:hidden acá (no solo en .hero) es lo que efectivamente recorta
   los slides no-activos: sin esto, el badge/tag de un slide vecino (que
   cuelga con position:absolute cerca del borde de SU columna, ya
   trasladada fuera de vista) puede asomar unos px en el borde. */
#heroCarrusel { position: relative; overflow: hidden; }
.hero-carrusel-track {
  display: flex; width: 100%;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  touch-action: pan-y;
}
.hero-slide-full { flex: 0 0 100%; min-width: 0; }
.hero-slide-full .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow { color: var(--green); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.hero h1 { font-size: 42px; line-height: 1.12; color: var(--navy); margin: 0 0 6px; font-weight: 800; letter-spacing: -0.015em; }
.hero h1 .destaque { color: var(--green); }
.hero h1 .cursiva { font-style: italic; font-weight: 600; }
.hero-sub { color: var(--text-muted); font-size: 15.5px; margin: 16px 0 26px; max-width: 440px; }
.hero-visual {
  position: relative;
  background: radial-gradient(circle at 30% 30%, var(--green-light), transparent 70%);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: grid; place-items: center;
}
.hero-visual-shape {
  position: absolute; inset: 8%;
  background: linear-gradient(135deg, var(--green) 0%, #2fa365 100%);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  opacity: 0.9;
}
/* La foto de cada slide (idealmente PNG transparente) flota directamente
   sobre la forma orgánica verde, sin tarjeta blanca detrás. Ya no es un
   carrusel propio (antes .hero-carrusel anidado adentro de .hero-visual):
   ahora cada slide completo trae una sola imagen fija. */
.hero-visual-imagen {
  position: relative; z-index: 1;
  width: 74%; max-width: 280px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-imagen img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(13,43,78,0.18));
}
.hero-slide-icono { font-size: 96px; filter: drop-shadow(0 10px 14px rgba(13,43,78,0.15)); }
.hero-carrusel-flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-lg); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--navy); cursor: pointer; z-index: 3;
}
.hero-carrusel-flecha.izq { left: 4px; }
.hero-carrusel-flecha.der { right: 4px; }
.hero-carrusel-dots {
  position: absolute; bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.hero-carrusel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(13,43,78,0.18);
  border: none; padding: 0; cursor: pointer; transition: background .2s, transform .2s;
}
.hero-carrusel-dots button.activo { background: var(--green); transform: scale(1.3); }
/* Con 0 o 1 slide con contenido real no tiene sentido carrusel: sin flechas
   ni puntos (ver el filtro en construirSlidesHeroFull, public/js/huayca.js) */
#heroCarrusel.un-solo .hero-carrusel-flecha,
#heroCarrusel.un-solo .hero-carrusel-dots { display: none; }

.hero-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 700;
  padding: 8px 12px; border-radius: var(--radius-sm); text-align: center; line-height: 1.3;
  z-index: 2;
}
.hero-tag small { display: block; font-weight: 400; opacity: 0.75; font-size: 9.5px; letter-spacing: 0.06em; }

/* ---------- Tarjetas de tipo de organización ---------- */
.orgtipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 48px; }
.orgtipo-card {
  border-radius: var(--radius); padding: 22px 18px; color: #fff; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  position: relative; overflow: hidden;
}
.orgtipo-card .icono { font-size: 26px; margin-bottom: 6px; }
.orgtipo-card b { font-size: 15px; }
.orgtipo-card span { font-size: 12.5px; opacity: 0.92; }
.orgtipo-card.c1 { background: linear-gradient(160deg, #1f7a4b, #145c37); }
.orgtipo-card.c2 { background: linear-gradient(160deg, #e8801e, #c96813); }
.orgtipo-card.c3 { background: linear-gradient(160deg, #0d2b4e, #081b32); }
.orgtipo-card.c4 { background: linear-gradient(160deg, #3f7d5c, #2a5a41); }

/* ---------- Secciones ---------- */
.seccion { padding: 20px 0 48px; }
.seccion-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px;
}
.seccion-header h2 { font-size: 22px; color: var(--navy); margin: 0; font-weight: 800; }
.ver-todos { color: var(--green-dark); font-weight: 700; font-size: 13.5px; }

/* ---------- Grid / carrusel de productos ---------- */
.productos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.productos-carrusel-wrap { position: relative; }
.productos-carrusel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
  scrollbar-width: none;
}
.productos-carrusel::-webkit-scrollbar { display: none; }
.carrusel-flecha {
  position: absolute; top: 40%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--navy); z-index: 5;
}
.carrusel-flecha.izq { left: -18px; }
.carrusel-flecha.der { right: -18px; }

.producto-card {
  scroll-snap-align: start;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.producto-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.producto-img-wrap { position: relative; aspect-ratio: 1.1; background: var(--bg); }
.producto-img-wrap .placeholder-icono {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 44px;
}
.producto-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; letter-spacing: 0.03em;
}
.badge-nuevo { background: var(--navy); color: #fff; }
.badge-oferta { background: var(--orange); color: #fff; }
.producto-info { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.producto-info h3 { font-size: 13.5px; margin: 0; color: var(--text); font-weight: 600; line-height: 1.3; }
.producto-precios { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.precio-final { font-size: 16px; font-weight: 800; color: var(--navy); }
.precio-normal { font-size: 12.5px; color: var(--text-soft); text-decoration: line-through; }
.producto-apoyo { font-size: 11px; color: var(--green-dark); font-weight: 600; margin-top: 2px; }

/* ---------- Bloques de impacto ---------- */
.impacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.impacto-card {
  border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px;
}
.impacto-card.verde { background: var(--green-light); }
.impacto-card.lila { background: #f1eefb; }
.impacto-card h3 { margin: 0; font-size: 20px; color: var(--navy); font-weight: 800; }
.impacto-card p { margin: 0; color: var(--text-muted); font-size: 14px; max-width: 380px; }
.impacto-visual {
  margin-top: 8px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: rgba(255,255,255,0.5);
}
.pasos-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pasos-lista li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); font-weight: 600; }
.pasos-lista .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}

/* ---------- Confianza ---------- */
.confianza-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 30px 0; border-top: 1px solid var(--border);
}
.confianza-item { display: flex; align-items: flex-start; gap: 12px; }
.confianza-item .icono {
  width: 42px; height: 42px; border-radius: 12px; background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.confianza-item b { display: block; font-size: 13.5px; color: var(--navy); }
.confianza-item span { font-size: 12.5px; color: var(--text-soft); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy); color: #cfd8e3; padding: 48px 0 24px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo b { color: #fff; font-size: 18px; }
footer.site p.tagline { font-size: 13px; color: #9fb0c4; max-width: 240px; }
footer.site h4 { color: #fff; font-size: 13px; margin: 0 0 12px; letter-spacing: 0.04em; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
footer.site ul a { font-size: 13px; color: #b9c5d4; }
footer.site ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social span {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #8ea0b6;
}
.footer-bottom .firma { font-style: italic; color: #cfd8e3; }

/* ---------- Formularios ---------- */
.card-form {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 32px; max-width: 480px; margin: 0 auto;
}
.card-form h2 { color: var(--navy); margin: 0 0 6px; font-size: 22px; }
.card-form .sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 22px; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); outline: none; background: #fff;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--green); }
.campo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo textarea { resize: vertical; min-height: 70px; }
.form-msg { font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); margin-top: 12px; }
.form-msg.error { background: #fdeeee; color: #c0392b; }
.form-msg.ok { background: var(--green-light); color: var(--green-dark); }
.form-footer-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.form-footer-link a { color: var(--green-dark); font-weight: 700; }

/* ---------- Página genérica (breadcrumb, banner org) ---------- */
.page-header { padding: 26px 0 10px; }
.breadcrumb { font-size: 12.5px; color: var(--text-soft); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-muted); }
.org-banner {
  display: flex; align-items: center; gap: 12px; background: var(--green-light);
  border: 1px solid #c9e8d5; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px;
}
.org-banner .logo-org {
  width: 42px; height: 42px; border-radius: 10px; background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.org-banner .logo-org img { width: 100%; height: 100%; object-fit: contain; }
.org-banner p { margin: 0; font-size: 13.5px; color: var(--green-dark); }
.org-banner b { color: var(--navy); }

/* ---------- Filtros de catálogo ---------- */
.filtros-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filtro-chip {
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 13px;
  color: var(--navy); font-weight: 600; background: #fff;
}
.filtro-chip.activo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Ficha de producto ---------- */
.ficha-producto { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 10px 0 50px; }
.ficha-img { border-radius: var(--radius-lg); background: var(--bg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 90px; overflow: hidden; }
.ficha-img img { width: 100%; height: 100%; object-fit: cover; }
.ficha-info .cat-tag { font-size: 12px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.ficha-info h1 { font-size: 28px; color: var(--navy); margin: 8px 0 12px; }
.ficha-info .desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.ficha-precios { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ficha-precios .final { font-size: 32px; font-weight: 800; color: var(--navy); }
.ficha-precios .normal { font-size: 15px; color: var(--text-soft); text-decoration: line-through; }
.ficha-meta { display: flex; gap: 18px; margin: 18px 0 24px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.ficha-meta b { color: var(--navy); }

/* ---------- Checkout / resumen ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; padding: 10px 0 60px; align-items: start; }
.resumen-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); padding: 22px; position: sticky; top: 90px; }
.resumen-card h3 { margin: 0 0 14px; font-size: 15px; color: var(--navy); }
.resumen-producto { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.resumen-producto .icono { width: 56px; height: 56px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.resumen-producto b { font-size: 13.5px; color: var(--text); display: block; }
.resumen-linea { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-muted); padding: 6px 0; }
.resumen-linea.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 800; color: var(--navy); font-size: 15px; }

.confirmacion {
  max-width: 520px; margin: 60px auto; text-align: center; background: var(--surface);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 44px 32px;
}
.confirmacion .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 18px; }
/* Variantes de .check para las páginas de vuelta de Mercado Pago
   (pago-resultado.html): mismo círculo, pero en naranjo (pendiente) o rojo
   (rechazado) en vez del verde de "aprobado" por defecto. */
.confirmacion .check.pendiente { background: var(--orange-light); color: var(--orange); }
.confirmacion .check.error { background: #fdeeee; color: #c0392b; }
.confirmacion h2 { color: var(--navy); margin: 0 0 8px; }
.confirmacion .codigo { font-size: 22px; font-weight: 800; color: var(--green-dark); background: var(--green-light);
  display: inline-block; padding: 8px 18px; border-radius: var(--radius-sm); margin: 14px 0; letter-spacing: 0.02em; }
.confirmacion p.info { color: var(--text-muted); font-size: 14px; }

/* ---------- Dashboard organización ---------- */
.dash-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 10px; }
.dash-header h1 { color: var(--navy); font-size: 22px; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 26px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-tile span { font-size: 12px; color: var(--text-soft); font-weight: 600; }
.stat-tile b { display: block; font-size: 22px; color: var(--navy); margin-top: 6px; }
.link-share { display: flex; gap: 10px; align-items: center; background: var(--green-light); border: 1px solid #c9e8d5; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 26px; flex-wrap: wrap; }
.link-share code { background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--navy); flex: 1; min-width: 220px; overflow-x: auto; white-space: nowrap; }
.tabla-comisiones { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tabla-comisiones th { text-align: left; font-size: 12px; color: var(--text-soft); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tabla-comisiones td { padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--border); color: var(--text); }
.estado-pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.estado-pill.pendiente { background: #fff4e2; color: #b8720a; }
.estado-pill.solicitada { background: #eef1fb; color: #3f51b5; }
.estado-pill.aprobada { background: #e7f5ec; color: var(--green-dark); }
.estado-pill.pagada { background: #e7f5ec; color: var(--green-dark); }
.estado-pill.anulada { background: #fdeeee; color: #c0392b; }

/* ---------- Estados vacíos / cargando ---------- */
.estado-vacio { text-align: center; padding: 50px 20px; color: var(--text-soft); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-slide-full .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  /* Con texto+imagen apiladas el slide completo es mucho más alto que
     ancho; unas flechas centradas verticalmente (top:50%) quedarían
     flotando a mitad del texto en vez de al lado de la imagen. El swipe
     táctil y los puntos siguen andando igual. */
  .hero-carrusel-flecha { display: none; }
  .orgtipos { grid-template-columns: repeat(2, 1fr); }
  .impacto-grid { grid-template-columns: 1fr; }
  .confianza-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ficha-producto { grid-template-columns: 1fr; gap: 26px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .resumen-card { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .buscador-header { order: 3; max-width: 100%; flex-basis: 100%; }
  .nav-principal { flex-wrap: wrap; }
  .nav-acciones .nav-accion span.txt { display: none; }
  .categorias-bar .container { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .hero h1 { font-size: 30px; }
  .orgtipos { grid-template-columns: 1fr 1fr; }
  .confianza-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .campo-fila { grid-template-columns: 1fr; }
  .card-form { padding: 24px 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
