/* ==========================================================================
   Tienda Solidaria — Fundación Amigos por Siempre (Crowe Colombia)
   Misma línea gráfica oficial de fundacionamigosporsiempre.web.app
   Azul Marino #011E41 & Ámbar #D7761D
   ========================================================================== */

:root {
  --navy: #011E41;
  --navy-deep: #00132B;
  --navy-mid: #0A2E5C;
  --navy-tint: #EEF3F9;

  --amber: #D7761D;
  --amber-hover: #BA6112;
  --amber-soft: #F6B97E;
  --amber-tint: #FDF3E7;
  --amber-border: #F3D1AE;

  --emerald: #146C43;
  --emerald-bg: #E7F6EE;
  --emerald-border: #BEE5CF;

  --white: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-cool: #F4F6FA;
  --ink: #0C1B2E;
  --ink-body: #334155;
  --ink-muted: #5B6B7F;
  --border: #E2E8F0;
  --border-warm: #EDE6DC;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(1, 30, 65, 0.05);
  --shadow-md: 0 12px 32px rgba(1, 30, 65, 0.09);
  --shadow-lg: 0 22px 54px rgba(1, 30, 65, 0.16);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --container: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

/* ==========================================================================
   Utilidades Editoriales y Botones
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.02rem;
  color: var(--ink-body);
  line-height: 1.72;
  max-width: 68ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(215, 118, 29, 0.32);
}

.btn-primary:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(215, 118, 29, 0.42);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(1, 30, 65, 0.22);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(1, 30, 65, 0.24);
}

.btn-outline-navy:hover {
  background: var(--navy-tint);
  border-color: var(--navy);
}

/* ==========================================================================
   Header / Barra Superior (Azul Marino Oficial #011E41)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  background: rgba(1, 30, 65, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 14, 34, 0.28);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-logo-fundacion {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.24);
}

.brand-logo-crowe {
  height: 21px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.header-search {
  flex: 1;
  max-width: 430px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 42px;
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--amber-soft);
}

.header-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.68);
  pointer-events: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-back-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-back-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.currency-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.currency-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.currency-btn.is-active {
  background: var(--white);
  color: var(--navy);
}

.cart-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(215, 118, 29, 0.34);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.cart-trigger-btn:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
}

.cart-trigger-btn svg {
  width: 18px;
  height: 18px;
}

.cart-badge {
  background: var(--navy);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Tienda Solidaria (Mismo lenguaje que el sitio principal)
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 45%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(1, 30, 65, 0.97) 0%,
    rgba(1, 30, 65, 0.92) 42%,
    rgba(1, 30, 65, 0.56) 72%,
    rgba(1, 30, 65, 0.22) 100%
  );
}

.hero-glow {
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 118, 29, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 68px 0 52px;
}

.hero-copy {
  max-width: 630px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-title {
  font-size: clamp(2.15rem, 4.3vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  color: var(--amber-soft);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-slogan::before {
  content: '';
  width: 34px;
  height: 3px;
  background: var(--amber);
  border-radius: 3px;
  flex-shrink: 0;
}

.hero-desc {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.72;
  margin-bottom: 28px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-pillars {
  position: relative;
  z-index: 2;
  background: rgba(0, 19, 43, 0.76);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-pillar-item:last-child {
  border-right: none;
}

.hero-pillar-stat {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--amber-soft);
  line-height: 1;
  min-width: 68px;
}

.hero-pillar-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.hero-pillar-text span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   Catálogo Solidario
   ========================================================================== */

.catalog-section {
  padding: 64px 0 80px;
  background: var(--white);
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.catalog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.cat-tab:hover {
  border-color: var(--navy);
}

.cat-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.sort-select {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--navy);
}

/* Grid de Productos (2x2 equilibrado para el catálogo oficial) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Selector de variante de color (ej. Gorra Arena / Azul Marino / Negro) */
.variant-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.variant-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.variant-chip:hover {
  border-color: var(--navy);
}

.variant-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.variant-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--amber-border);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-cool);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(1, 30, 65, 0.88);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.product-tag--amber {
  background: rgba(215, 118, 29, 0.94);
  color: var(--white);
}

.product-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--ink-body);
  line-height: 1.62;
  margin-bottom: 16px;
  flex: 1;
}

.product-benefit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border-left: 3px solid var(--amber);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.45;
}

.product-benefit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 5px;
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.price-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.add-cart-btn:hover {
  background: var(--amber);
  transform: translateY(-1px);
}

/* ==========================================================================
   Bloque Aporte Libre Solidario (Tú eliges el monto)
   ========================================================================== */

.custom-donation-bar {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, #062853 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.custom-donation-bar h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
}

.custom-donation-bar p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.62;
}

.custom-donation-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.preset-btn:hover,
.preset-btn.is-active {
  background: var(--amber);
  border-color: var(--amber);
}

.custom-input-row {
  display: flex;
  gap: 10px;
}

.custom-amount-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.custom-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.custom-amount-input:focus {
  border-color: var(--amber-soft);
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Sección Canales de Aporte Sin Comisiones Excesivas (Bre-B, QR, PSE, Banco)
   ========================================================================== */

.channels-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 80px 0;
}

.channels-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.channels-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.qr-spotlight-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.qr-spotlight-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.qr-spotlight-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.qr-spotlight-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}

.qr-key-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-bottom: 10px;
}

.payment-breb-split {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
}

.payment-breb-qr {
  width: 132px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.ref-pill-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--amber-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  color: var(--navy);
}

.channel-card {
  background: var(--white);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.channel-card--featured {
  border-color: var(--amber-border);
  box-shadow: 0 10px 26px rgba(215, 118, 29, 0.1);
}

.channel-fee-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.channel-fee-badge--navy {
  background: var(--navy-tint);
  color: var(--navy);
  border-color: #D2DFEE;
}

.channel-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}

.channel-card p {
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.6;
  flex: 1;
}

.channel-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-hover);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Carrito Lateral (Drawer)
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 19, 43, 0.56);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  box-shadow: -12px 0 40px rgba(1, 30, 65, 0.22);
}

.cart-drawer-overlay.is-open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  background: var(--navy);
  color: var(--white);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-size: 1.08rem;
  font-weight: 800;
}

.icon-close-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-close-btn--dark {
  background: var(--bg-cool);
  color: var(--navy);
}

.icon-close-btn--dark:hover {
  background: var(--border);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-cart-box {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-muted);
}

.empty-cart-box strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
}

.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.cart-item-price {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--amber-hover);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  border-color: var(--navy);
}

.qty-val {
  min-width: 18px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-drawer-footer {
  padding: 20px 24px 24px;
  background: var(--bg-cool);
  border-top: 1px solid var(--border);
}

.cart-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.cart-meta-badge {
  color: var(--emerald);
  font-weight: 700;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  padding-top: 12px;
  margin: 12px 0 18px;
  border-top: 1px dashed #CBD5E1;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Modal de Confirmación y Pago Exprés
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 19, 43, 0.64);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-cool);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}

.form-input:focus {
  background: var(--white);
  border-color: var(--navy);
}

.payment-preview-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
  font-size: 0.86rem;
  color: var(--navy);
  line-height: 1.58;
}

.payment-preview-box strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.payment-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.qr-preview-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: var(--white);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 10px;
}

.habeas-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.habeas-check input {
  margin-top: 3px;
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.habeas-check a {
  color: var(--amber-hover);
  font-weight: 700;
  text-decoration: underline;
}

.checkout-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy-tint);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin: 14px 0;
  font-weight: 800;
  color: var(--navy);
}

.success-box {
  text-align: center;
  padding: 12px 0 4px;
}

.success-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--emerald-bg);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.success-box h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.success-box p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.ref-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 16px;
}

.ref-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

/* ==========================================================================
   Footer & Franja Discreta de Información Legal
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 56px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-logo-fundacion {
  height: 58px;
  width: auto;
}

.footer-logo-crowe {
  height: 22px;
  width: auto;
  opacity: 0.88;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--amber-soft);
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.64);
  max-width: 38ch;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: var(--amber-soft);
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
  background: rgba(0, 12, 28, 0.45);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.44);
}

.legal-links-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.legal-label {
  color: rgba(255, 255, 255, 0.36);
  font-weight: 600;
}

.legal-link {
  color: rgba(255, 255, 255, 0.46);
}

.legal-link:hover {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
}

.legal-sep {
  color: rgba(255, 255, 255, 0.22);
}

.copy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4000;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(215, 118, 29, 0.6);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .channels-layout {
    grid-template-columns: 1fr;
  }
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-donation-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .payment-breb-split {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }
  .header-back-link {
    display: none;
  }
  .hero-pillars-grid,
  .products-grid,
  .channels-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .hero-pillar-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-pillar-item:last-child {
    border-bottom: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
}

@media (max-width: 540px) {
  .brand-logo-fundacion {
    height: 44px;
  }
  .brand-logo-crowe {
    height: 17px;
  }
  .custom-donation-bar {
    padding: 26px 20px;
  }
  .custom-input-row {
    flex-direction: column;
  }
  .modal-card {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   Checkout Exprés en 1 Sola Pantalla (QR Bre-B + 3 Datos + WhatsApp)
   ========================================================================== */

.product-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quick-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.quick-cart-btn:hover {
  border-color: var(--navy);
  background: var(--navy-tint);
}

.buy-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(215, 118, 29, 0.28);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.buy-now-btn:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
}

.modal-card--express {
  max-width: 840px;
  padding: 0;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.express-modal-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
}

.express-pay-pane {
  background: linear-gradient(155deg, var(--navy) 0%, #052652 60%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.express-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-soft);
}

.express-total-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-top: 2px;
}

.express-items-summary {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 3px;
  line-height: 1.35;
}

.express-qr-img {
  width: 100%;
  max-width: 172px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.express-key-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
}

.express-key-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.express-pay-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.express-form-pane {
  background: var(--white);
  padding: 20px 24px 22px;
}

.express-form-pane .form-label {
  margin-bottom: 4px;
}

.express-form-pane .form-input {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.express-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.express-form-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.express-form-head p {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.express-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.express-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.express-toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.express-toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

.express-alt-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: underline;
  display: block;
  width: 100%;
  text-align: center;
}

.express-alt-link:hover {
  color: var(--navy);
}

.btn-whatsapp {
  background: #16A34A;
  color: var(--white);
  border-color: #16A34A;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}

.btn-whatsapp:hover {
  background: #15803D;
  border-color: #15803D;
  transform: translateY(-1px);
}

.express-success-pane {
  padding: 34px 32px;
  text-align: center;
}

.express-secondary-mail {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: underline;
  margin-top: 6px;
  display: inline-block;
}

.express-secondary-mail:hover {
  color: var(--navy);
}

@media (max-width: 780px) {
  .modal-card--express {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
  }
  .express-modal-grid {
    grid-template-columns: 1fr;
  }
  .express-row-2 {
    grid-template-columns: 1fr;
  }
  .express-pay-pane {
    padding: 20px 18px;
  }
  .express-qr-img {
    max-width: 164px;
  }
  .express-form-pane {
    padding: 20px 18px 24px;
  }
  #close-checkout-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
  }
  #close-checkout-modal:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}
