/* ==========================================================================
   HIELO TEREPAIMA — SISTEMA DE DISEÑO v1
   --------------------------------------------------------------------------
   1. Tokens (paleta + tipografía + espaciado + sombras)
   2. Base y tipografía
   3. Layout (containers, secciones, rejillas)
   4. Componentes (botones, badges, tarjetas, formularios, navbar, footer)
   5. Bloques de página (hero, pasos, productos, CTA)
   6. Responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* --- Paleta principal: frescura / frío --- */
  --ice-900: #06233a;   /* títulos y texto fuerte */
  --ice-800: #0a3351;
  --ice-700: #0b4a75;
  --ice-600: #1067a3;
  --ice-500: #1478c8;   /* color primario / CTA */
  --ice-400: #2c91cd;   /* azul de marca heredado */
  --ice-300: #7ec4ec;
  --ice-200: #bfe0f5;
  --ice-100: #eaf4fa;   /* fondos suaves */
  --ice-050: #f5fafd;

  /* --- Acento: rojo de marca (badges, precios, ofertas) ---
     #e11b24 en lugar de #eb1d26: contraste AA (4.8:1) con texto blanco.
     El rojo original daba 4.43:1 y fallaba en badges y botones. */
  --brand-red: #e11b24;
  --brand-red-dark: #b0161d;
  --brand-red-soft: #fdeced;

  /* --- Acento: morado (badges de estado) ---
     --purple: texto blanco 7.1:1 (AA). --purple-text sobre pastel: 7.4:1 (AA). */
  --purple: #6d28d9;        /* "Agotado" */
  --purple-dark: #4c1d95;
  --purple-soft: #ede6fb;   /* fondo pastel "Premium" */
  --purple-text: #5b21b6;

  /* --- Neutros --- */
  --white: #ffffff;
  --gray-700: #43536a;
  --gray-600: #5a6b7b;
  --gray-500: #7b8a9a;
  --gray-300: #c9d5e0;
  --gray-200: #e3eaf1;
  --gray-100: #f2f6fa;

  /* --- Estados --- */
  --success: #1f9d55;      /* iconos / decoración (3.5:1, mínimo no textual) */
  --success-text: #157a3f; /* texto sobre blanco (5.4:1, cumple AA) */
  --warning: #e8a33d;

  /* --- Tipografía --- */
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Escala fluida (crece con la ventana) */
  --fs-display: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --fs-h1: clamp(1.9rem, 1.35rem + 2.1vw, 3rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.8125rem;

  /* --- Espaciado (base 8px) --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(3.5rem, 2rem + 5vw, 6rem);

  /* --- Radios --- */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* --- Sombras (con tinte azul) --- */
  --shadow-xs: 0 1px 2px rgba(6, 35, 58, 0.06);
  --shadow-sm: 0 2px 8px rgba(6, 35, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(6, 35, 58, 0.10);
  --shadow-lg: 0 18px 44px rgba(6, 35, 58, 0.14);
  --shadow-brand: 0 10px 26px rgba(20, 120, 200, 0.28);
  --shadow-red: 0 10px 26px rgba(235, 29, 38, 0.26);

  /* --- Utilidades --- */
  --container: 1200px;
  --nav-h: 74px;
  --transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Sticky footer: el contenido estira para que el footer quede pegado
     al fondo de la ventana cuando la página es más corta que la pantalla
     (desaparece el espacio vacío blanco debajo del footer). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* El <main> absorbe el espacio sobrante y empuja el footer hacia abajo */
main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ice-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ice-500);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--ice-700); }

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

ul { margin: 0; padding: 0; list-style: none; }

strong { color: var(--ice-900); font-weight: 600; }

::selection { background: var(--ice-200); color: var(--ice-900); }

:focus-visible {
  outline: 3px solid var(--ice-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ice-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section--tint { background: var(--ice-050); }
.section--ice  { background: var(--ice-100); }
.section--dark { background: var(--ice-900); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head:not(.section-head--left) .eyebrow::before { display: none; }
.section-head:not(.section-head--left) .eyebrow { gap: var(--sp-3); }

.section-head .lead,
.lead {
  font-size: var(--fs-lead);
  color: var(--gray-600);
  line-height: 1.7;
}

.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   4. COMPONENTES
   ========================================================================== */

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), border-color var(--transition),
              color var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--ice-600), var(--ice-500));
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--ice-700), var(--ice-600));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 120, 200, 0.34);
}

.btn-accent {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-accent:hover {
  background: var(--brand-red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(235, 29, 38, 0.32);
}

/* WhatsApp: verde brillante + texto oscuro = 8.1:1 (el texto blanco no llega a AA)
   `.btn.btn-whatsapp` con doble clase para no ser sobrescrito por reglas como `.info-card a` */
.btn.btn-whatsapp {
  background: #25d366;
  color: var(--ice-900);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34);
}
.btn.btn-whatsapp:hover {
  background: #1ebe5b;
  color: var(--ice-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.42);
}

.btn-outline {
  background: transparent;
  color: var(--ice-900);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  background: var(--white);
  border-color: var(--ice-400);
  color: var(--ice-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost-light {
  background: rgba(6, 35, 58, 0.32);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: var(--white);
  color: var(--ice-900);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.25rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Badge ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--ice-100);
  color: var(--ice-700);
}
.badge-pill--red { background: var(--brand-red-soft); color: var(--brand-red-dark); }
.badge-pill--solid { background: var(--brand-red); color: var(--white); }
/* Estados: "Agotado" = morado fuerte · "Premium" = morado pastel */
.badge-pill--purple { background: var(--purple); color: var(--white); }
.badge-pill--pastel { background: var(--purple-soft); color: var(--purple-text); }
.badge-pill--glass {
  background: rgba(6, 35, 58, 0.34);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(6px);
}

/* ---------- Iconos circulares ---------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ice-100);
  color: var(--ice-500);
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.icon-circle--red { background: var(--brand-red-soft); color: var(--brand-red); }
/* Fondo azul sólido con glifo blanco (contraste 6:1, AA) */
.icon-circle--blue { background: var(--ice-600); color: var(--white); }
.icon-circle--solid { background: linear-gradient(135deg, var(--ice-500), var(--ice-400)); color: var(--white); box-shadow: var(--shadow-brand); }

/* ---------- Tarjeta ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ---------- Formularios ---------- */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ice-900);
  margin-bottom: var(--sp-2);
}
.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ice-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--gray-600); }
.form-control:focus {
  outline: none;
  border-color: var(--ice-400);
  box-shadow: 0 0 0 4px rgba(44, 145, 205, 0.16);
}
textarea.form-control { min-height: 150px; resize: vertical; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.75rem;
}

/* ==========================================================================
   5. BLOQUES DE PÁGINA
   ========================================================================== */

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--ice-900);
  color: var(--ice-200);
  font-size: var(--fs-xs);
  text-align: center; /* Asegura que cualquier texto interno esté centrado */
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* Cambiado de space-between a center */
  gap: var(--sp-4);        /* Puedes ajustar el espacio entre elementos si es necesario */
  min-height: 42px;
  padding-block: var(--sp-2);
}

.topbar a { 
  color: var(--ice-200); 
  display: inline-flex; 
  align-items: center; 
  gap: var(--sp-2); 
}

.topbar a:hover { 
  color: var(--white); 
}

.topbar-list { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; /* Centra también los elementos de la lista si los hubiera */
  gap: var(--sp-5); 
}

.topbar-social { 
  display: flex; 
  gap: var(--sp-4); 
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.is-stuck { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--nav-h);
}
.navbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.navbar-brand img { width: auto; height: 46px; object-fit: contain; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ice-900);
  padding: var(--sp-3) var(--sp-2);
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: 6px;
  height: 2.5px;
  background: var(--brand-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--ice-600); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ice-600); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ice-700);
  white-space: nowrap;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}
.nav-phone i { color: var(--brand-red); }
.nav-phone:hover {
  background: var(--ice-100);
  color: var(--ice-700);
}
.nav-phone:hover i { color: var(--brand-red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--ice-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (versión de Hieloterepaima3: texto + imagen enmarcada) ---------- */
.hero {
  /* tokens locales del hero (mismos valores que la v3) */
  --indigo: #4b62e5;
  --indigo-dark: #3a4fd1;
  --ink: #0c1b3d;
  --ink-2: #16264f;
  --muted: #5d6b8c;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(180deg, #e7edfc 0%, #f2f5fd 100%);
}

/* Burbujas de color de fondo */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 { width: 520px; height: 520px; background: #a9c4f8; top: -160px; right: -80px; }
.hero-blob--2 { width: 420px; height: 420px; background: #cdc4f8; bottom: -140px; left: -120px; opacity: 0.45; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Chapa superior tipo píldora */
.hero .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 14px 30px -22px rgba(12, 27, 61, 0.5);
}
.hero .chip i { color: var(--indigo); }

.hero-copy { color: var(--ink); }
.hero h1 {
  color: var(--ink);
  font-size: clamp(3rem, 7.2vw, 5.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 1.4rem 0 0;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #3a4fd1, #5e77f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 42ch;
}

/* Acciones del hero: Ver productos + Pedir por WhatsApp */
.hero-cta { margin-top: 2rem; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin-top: 2rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-points i { color: var(--indigo); }

/* Imagen enmarcada + chips flotantes */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(circle at 68% 30%, rgba(122, 163, 246, 0.55), transparent 60%),
    radial-gradient(circle at 25% 78%, rgba(178, 166, 246, 0.45), transparent 62%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.hero-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  background: var(--ice-100);
}
.hero-frame img {
  width: 100%;
  height: clamp(320px, 38vw, 470px);
  object-fit: cover;
  object-position: center;
}
.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 20px 45px -26px rgba(12, 27, 61, 0.55);
}
.float-chip i { color: var(--indigo); }
.float-chip--tl { top: 20px; left: -16px; }
.float-chip--br { bottom: 24px; right: -12px; }

/* ---------- Pasos del proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.step { position: relative; text-align: center; padding-inline: var(--sp-3); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-500), var(--ice-400));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--gray-600); font-size: var(--fs-sm); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% + 52px);
  width: calc(100% - 104px);
  height: 2px;
  background-image: linear-gradient(90deg, var(--ice-300) 55%, transparent 55%);
  background-size: 12px 2px;
}

/* ---------- Tarjetas de producto (contenido) ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  /* Contexto de apilamiento propio: evita que la imagen escalada al
     hacer hover pinte por encima del texto de las tarjetas vecinas. */
  position: relative;
  z-index: 0;
}
.product-card-media {
  position: relative;
  /* Fondo suave detrás de la foto (que va en blanco): degradado celeste que
     se desvanece a blanco junto al cuerpo de la tarjeta, sin costura dura. */
  background: linear-gradient(165deg, #dfeffa 0%, var(--ice-100) 50%, #f7fbfe 100%);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
}
.product-card-media img {
  max-height: 165px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-media img { transform: scale(1.07) rotate(-2deg); }
/* La insignia siempre por encima de la imagen (que se transforma al hacer hover) */
.product-card-media .badge-pill { position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 3; }
.product-card-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.product-card-body h3 { margin-bottom: var(--sp-2); }
.product-card-body p { color: var(--gray-600); font-size: var(--fs-sm); flex: 1; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-top: var(--sp-4);
}
.card-link i { transition: transform var(--transition); }
.card-link:hover i { transform: translateX(5px); }

/* ---------- Bloque texto + imagen ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.split-float {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.split-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--ice-900);
}
/* Solo el subtítulo. Igual que en .trust-item: este selector alcanzaba también
   al <span class="icon-circle"> y pisaba su color (quedaba gris) y su tamaño. */
.split-float div span { font-size: var(--fs-xs); color: var(--gray-600); }
/* Glifo blanco sobre el círculo azul */
.split-float .icon-circle { color: var(--white); font-size: 1.35rem; }

.check-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.check-list li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); }
.check-list i { color: var(--success); margin-top: 0.32em; }

/* ---------- Quiénes Somos: foto de la planta ---------- */
/* Móvil / tablet: la foto ocupa todo el ancho disponible con su alto natural. */
.about-media { width: 100%; max-width: 460px; margin-inline: auto; }
/* Escritorio: columna más ancha y foto con el MISMO alto que siempre (690px),
   recortada con object-fit: cover para que solo gane ancho, no alto. */
@media (min-width: 993px) {
  .split--about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .split--about .about-media { max-width: 100%; margin-inline: 0; }
  .split--about .about-media img {
    width: 100%;
    height: 690px;
    object-fit: cover;
    object-position: center;
  }
}

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  background: linear-gradient(120deg, var(--ice-800), var(--ice-600));
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(235, 29, 38, 0.28);
}
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin-inline: auto; margin-bottom: var(--sp-6); }
.cta-band .btn-group { justify-content: center; }

/* ---------- Banda de confianza ---------- */
.trust-strip {
  background: var(--white);
  border-block: 1px solid var(--gray-200);
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.trust-item { display: flex; align-items: center; gap: var(--sp-3); }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  /* Negro puro + peso 800 para que el título resalte sobre los iconos azules */
  color: #000000;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
/* Solo el subtítulo. Ojo: con ".trust-item span" esta regla también alcanzaba
   al <span class="icon-circle"> y pisaba su color (quedaba gris) y su
   tamaño de fuente (el glifo salía diminuto). */
.trust-item div span { font-size: var(--fs-xs); color: var(--gray-600); }
/* Garantiza el glifo blanco sobre el círculo azul */
.trust-item .icon-circle { color: var(--white); font-size: 1.35rem; }

/* ---------- Tienda ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--ice-900), var(--ice-700));
  color: var(--white);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(126, 196, 236, 0.22);
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
.page-hero p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 640px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--ice-300); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: 0.65rem; opacity: 0.6; }

.shop-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  align-items: start;
}
.filters { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: var(--sp-5); }
.filter-card { padding: var(--sp-5); border-radius: var(--radius); background: var(--ice-050); border: 1px solid var(--gray-200); }
.filter-card h2 { margin-bottom: var(--sp-4); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.filter-card--sales { background: var(--ice-100); border-color: var(--ice-200); }
.filter-card--sales p { font-size: var(--fs-sm); color: var(--gray-600); margin-bottom: var(--sp-4); }
.filter-card--sales .btn + .btn { margin-top: var(--sp-3); }

/* Aviso: precios y disponibilidad por el equipo de ventas */
.sales-note {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1rem + 1vw, 2rem);
  margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  padding: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  background: var(--ice-100);
  border: 1px solid var(--ice-200);
  border-radius: var(--radius-lg);
}
.sales-note > div { flex: 1; }
.sales-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ice-900);
  margin-bottom: var(--sp-1);
}
.sales-note p { font-size: var(--fs-sm); color: var(--gray-600); margin: 0; }
.sales-note .btn { flex-shrink: 0; }
.filter-list { display: grid; gap: var(--sp-2); }
.filter-list label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.filter-list label:hover { background: var(--white); color: var(--ice-700); }
.filter-list input { accent-color: var(--ice-500); width: 16px; height: 16px; }
.filter-list .count { margin-left: auto; font-size: var(--fs-xs); color: var(--gray-600); }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--gray-200);
}
.shop-toolbar p { margin: 0; font-size: var(--fs-sm); color: var(--gray-600); }
.shop-toolbar strong { color: var(--ice-900); }

.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 1rem + 1vw, 1.75rem); }

.shop-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.shop-card-media {
  position: relative;
  /* Mismo fondo celeste que en el inicio para que las tarjetas sean iguales */
  background: linear-gradient(165deg, #dfeffa 0%, var(--ice-100) 50%, #f7fbfe 100%);
  padding: var(--sp-6);
  display: grid;
  place-items: center;
  min-height: 200px;
  /* Recorta la imagen escalada para que no desborde sobre el texto */
  overflow: hidden;
}
.shop-card-media img { max-height: 150px; width: auto; object-fit: contain; border-radius: 10px; transition: transform 0.4s var(--transition); }
.shop-card:hover .shop-card-media img { transform: scale(1.06); }
.shop-card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; position: relative; z-index: 1; }
.shop-card-cat { font-size: var(--fs-xs); color: var(--ice-500); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.shop-card-body h3 { font-size: 1.125rem; margin: 0; }
.shop-card-desc { font-size: var(--fs-sm); color: var(--gray-600); flex: 1; margin: 0; }
.shop-card .btn { margin-top: var(--sp-3); align-self: flex-start; }
.shop-card .badge-pill { position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 3; }
/* Filtro de categorías */
.shop-card.is-hidden { display: none; }
.shop-empty {
  margin: var(--sp-6) 0 0;
  padding: var(--sp-5);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gray-600);
  background: var(--ice-050);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
}
.shop-empty[hidden] { display: none; }

/* ---------- Contacto ---------- */
.info-card { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-card h3 { margin-bottom: var(--sp-1); font-size: 1.0625rem; font-weight: 600; }
.info-card p { font-size: var(--fs-sm); color: var(--gray-600); margin: 0; }
.info-card a { color: var(--ice-600); font-weight: 500; }

.map-card {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  background: var(--ice-100);
}
.map-card iframe { display: block; width: 100%; height: 360px; border: 0; }
/* ---------- Footer ---------- */
.footer {
  background: var(--ice-900);
  color: rgba(255, 255, 255, 0.76);
  /* Reducido al mínimo (puedes cambiar 0.8rem a 0.5rem si lo quieres aún más pegado) */
  padding-top: clamp(0.5rem, 0.5rem + 0.5vw, 1.2rem);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.footer h3 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  position: relative;
  padding-bottom: var(--sp-3);
}

/* Forzar que el contenedor del footer se alinee completamente a la izquierda */
.footer .container {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 9rem;
  padding-right: 2rem;
}

/* El margen izquierdo grande solo aplica en escritorio; en móvil se reduce */
@media (max-width: 1200px) {
  .footer .container { padding-left: clamp(2rem, 7vw, 9rem); }
}
@media (max-width: 768px) {
  .footer .container {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }
}

.footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-red);
}

/* Ajustamos el grid principal: cambiamos align-items a 'center' o 'end' para empujar el contenido hacia abajo */
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem; /* Aumenta este valor (ej. 3rem, 4rem, 5rem) para alejar la info de la marca */
  align-items: flex-end;
}

/* Permite que los hijos del grid se reduzcan por debajo de su contenido mínimo */
.footer-brand,
.footer-info-section,
.footer-info-item > div { min-width: 0; }

.footer-brand img { 
  height: 52px; 
  width: auto; 
  object-fit: contain; 
  margin-bottom: var(--sp-2); /* Reducido un poco para acortar distancia arriba */
}

.footer-brand p { 
  color: rgba(255, 255, 255, 0.66); 
  max-width: 100%; 
  margin-bottom: 0; /* Quitamos márgenes innecesarios abajo */
}

.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-4);
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: rgba(255, 255, 255, 0.76);
}

.footer-info-item i {
  color: var(--ice-300);
  margin-top: 0.3em;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-info-item p {
  margin-top: var(--sp-1); /* Reducido para compactar */
  margin-bottom: var(--sp-1);
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.footer-info-item .nb { white-space: nowrap; }
@media (max-width: 768px) {
  .footer-info-item .nb { white-space: normal; }
}

.footer-info-item strong {
  color: var(--white);
}

.footer-info-section h3 {
  text-align: center;
}

.footer-info-section h3::after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--brand-red); color: var(--white); transform: translateY(-3px); }

.footer-bottom {
  /* Reducimos el margen superior y el padding para que la línea divisoria esté más cerca del contenido */
  margin-top: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  padding-block: var(--sp-2); /* Reducido de sp-3 o sp-5 a sp-2 para compactar la zona de derechos reservados */
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}

.footer-bottom p { 
  margin: 0; 
  font-size: var(--fs-xs); 
  color: var(--white);       /* Cambia el color a blanco puro */
  font-weight: 700;          /* Aplica la negrita (o 'bold') */
}

/* Enlace a la política de privacidad dentro del footer */
.footer-bottom a {
  font-size: var(--fs-xs);
  color: var(--ice-300);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover { color: var(--white); }

/* Responsivo para celulares (vuelve todo una sola columna en pantallas pequeñas) */
@media (max-width: 768px) {
  .footer-grid, 
  .footer-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-phone-text { display: none; }
  .nav-phone { padding: var(--sp-2); width: 44px; height: 44px; justify-content: center; border: 1.5px solid var(--gray-200); }
}

@media (max-width: 1080px) {
  .shop-layout { grid-template-columns: 230px 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-6); }
}

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 560px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* En tablet el bloque de información queda muyestrecho: apilamos dirección
     y horarios para que los horarios (nowrap) no desborden */
  .footer-info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--sp-6); }
  .step:not(:last-child)::after { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin-top: var(--sp-2); }

  /* Menú móvil */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-3) clamp(1rem, 4vw, 2rem) var(--sp-5);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-link { padding: var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--gray-100); }
  /* El subrayado ya NO se oculta en móvil: el enlace activo se resalta
     igual que en escritorio (antes solo cambiaba de color). */
  .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }

  /* En pantalla angosta los botones deben verse de inmediato bajo el título:
     reordenamos la copia (título → acciones → descripción → puntos) */
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy > .chip { order: 1; align-self: flex-start; }
  .hero-copy > h1 { order: 2; }
  .hero-copy > .hero-cta { order: 3; }
  .hero-copy > .hero-lead { order: 4; }
  .hero-copy > .hero-points { order: 5; }

  /* La foto es un banner ancho: con proporción 1.9:1 y alineada a la derecha
     se ve toda la línea de productos sin el vacío del fondo a la izquierda */
  .hero-frame img {
    height: auto;
    aspect-ratio: 1.9 / 1;
    object-position: right center;
  }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sales-note { flex-direction: column; align-items: stretch; text-align: center; }
  .sales-note .icon-circle { margin-inline: auto; }
  .sales-note .btn { width: 100%; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .split-float { right: 12px; bottom: -18px; }
  .map-card iframe { height: 280px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  /* Ojo: la regla de 992px (.footer-grid a 2 columnas) se declara después que
     la de 768px, así que aquí se vuelve a forzar a una sola columna */
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-points { flex-direction: column; gap: var(--sp-3); }
  .float-chip--tl { left: 10px; }
  .float-chip--br { right: 10px; }
  .navbar-brand img { height: 38px; }
}

/* Accesibilidad: movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
