/* ═══════════════════════════════════════════════════════
   FELTREX — Design System compartido para todos los landings
   ═══════════════════════════════════════════════════════ */

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

/* Los controles de formulario no heredan la tipografia: el navegador les
   impone la suya, asi que inputs y selects salian en Arial y el textarea en
   monoespaciada mientras el resto de la pagina es Inter. En una landing de
   captura el formulario es lo que mas se mira, no puede desentonar. */
input, select, textarea, button { font-family: inherit; }

/* La seleccion de texto tambien es parte del diseno */
::selection { background: rgba(0,128,145,.18); color: inherit; }

:root {
  --primary: #008091;
  --primary-dark: #006570;
  --primary-light: #e6f4f6;
  --text: #1a1a1a;
  --gray: #6b7280;
  --light: #f7f9fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow: 0 4px 24px rgba(0,128,145,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.22);
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── Grilla y campos (reemplaza a Bootstrap 3) ──────────
   Bootstrap se quito junto con jQuery y ParsleyJS: el sitio no usaba
   ningun componente JS suyo ni mas clases que estas cuatro. Los
   breakpoints replican el comportamiento que ya tenia el sitio, no el
   de Bootstrap: col-xs-6 pasaba a 100% bajo 600px por un override
   propio, y col-sm-6 cambia a 768px como en Bootstrap. */
.form-control { display: block; width: 100%; }

.row { display: flex; flex-wrap: wrap; gap: 0 30px; }
.row > [class*="col-"] { flex: 0 0 100%; min-width: 0; }

@media (min-width: 601px) {
  .row > .col-xs-6 { flex-basis: calc(50% - 15px); }
}
@media (min-width: 768px) {
  .row > .col-sm-6 { flex-basis: calc(50% - 15px); }
}

/* ─── MARCAS DE PRODUCTO ─────────────────────
   Reemplazan los emoji que se usaban como icono. Un solo sistema de trazo,
   definido en el sprite inline de cada pagina (feltrex-marcas.svg).
   Va declarado aca arriba a proposito: los breakpoints que ajustan el
   tamano viven mas abajo en el archivo y con igual especificidad gana el
   ultimo, asi que la base tiene que precederlos.
   PARA PONER FOTO REAL: agregar background-image al .product-card-header
   (ya trae background-size: cover) y la clase con-foto para ocultar la marca. */
.product-mark {
  display: block;
  width: 30px; height: 30px;
  /* sin esto el SVG se comprime cuando la tarjeta lo pone en un flex row
     junto al texto: en collection-card-header bajaba de 26px a 12,6px */
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(255,255,255,.92);
}
.product-mark--marca { color: var(--primary); width: 34px; height: 34px; }

/* ─── HEADER ─────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { display: block; height: 40px; width: auto; }
.header-contact { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-phone:hover { color: var(--primary); }
.header-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-dark); }
.header-nav { display: flex; align-items: center; gap: 16px; }
.cta-small {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.cta-small:hover { background: var(--primary-dark); }

/* ─── HERO ───────────────────────────────── */
.hero {
  padding: 56px 0 0;
  overflow: hidden;
}
.hero .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.hero-copy,
.hero-content { padding-bottom: 60px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.25);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -1px;
}
.hero h1 em { font-style: normal; }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 3px;
  font-weight: 500;
}

/* Form card */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: -40px;
}
.form-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.form-card-sub {
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-card-sub::before {
  content: '⏱';
  font-size: 14px;
}
.form-card .form-control {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  height: 44px;
  font-size: 14px;
  color: var(--text);
  padding: 0 14px !important;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: none !important;
}
.form-card .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0,128,145,.1) !important;
  outline: none;
}
.form-card .form-group { margin-bottom: 10px; }
/* iOS Safari hace zoom al enfocar un campo con font-size < 16px.
   Se aplica por tipo de puntero para cubrir tambien el telefono en horizontal,
   donde el ancho supera el breakpoint movil. */
@media (hover: none) and (pointer: coarse) {
  .form-card .form-control { font-size: 16px; }
}
.btn-submit {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin: 8px 0 0;
}
.consent-check {
  margin: 14px 0 12px;
  padding: 10px 12px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.consent-check label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}
.consent-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent-check a { color: var(--primary); text-decoration: underline; }
/* Honeypot: invisible para humanos, visible para bots */
.form-trap { position: absolute; left: -9999px; top: -9999px; width: 0; height: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-trap input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; border: none; padding: 0; }
.payment-methods {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pm-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  height: 54px;
}
.pm-badge img {
  max-height: 38px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.form-privacy {
  text-align: center;
  font-size: 11px;
  color: var(--gray);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ─── TRUST BAR ──────────────────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 50px;
}
.trust-bar .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.trust-icon {
  width: 34px; height: 34px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.trust-divider { width: 1px; height: 28px; background: var(--border); }

/* ─── GENERIC INNER CONTAINER ───────────── */
.inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── SECTIONS ───────────────────────────── */
.section { padding: 64px 0; }
.section.bg-light { background: var(--light); }
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.section-sub {
  font-size: 15px;
  color: var(--gray);
  margin: 0 0 36px;
  max-width: 560px;
  line-height: 1.6;
}

/* ─── PRODUCT CARDS ──────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
/* Modificadores opcionales (fallback) */
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.product-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.product-card .badge-top {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: .5px;
  white-space: nowrap;
  text-transform: uppercase;
}
.product-card-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.product-card-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}
.product-card-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.product-card-features li {
  font-size: 12px;
  color: var(--text);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.product-card-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.product-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Group header inside products */
.group-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-label:first-child { margin-top: 0; }
.group-label-icon {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── USE CASES ──────────────────────────── */
.uso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.uso-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.uso-emoji { font-size: 28px; flex-shrink: 0; }
.uso-name { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.uso-desc { font-size: 12px; color: var(--gray); margin: 0; line-height: 1.5; }
.uso-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 6px;
  text-transform: uppercase;
}

/* ─── BENEFITS ───────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.benefit-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.benefit-title { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.benefit-desc { font-size: 12px; color: var(--gray); line-height: 1.55; margin: 0; }

/* ─── BRAND STRIP ────────────────────────── */
.brands-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.brands-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.brand-pill {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
}

/* ─── CTA SECTION ────────────────────────── */
.cta-section {
  background: var(--primary);
  padding: 52px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}
.cta-section p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 0 24px; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .1s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  background: #0d1117;
  padding: 44px 0 24px;
}
.site-footer .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-logo { font-size: 22px; font-weight: 800; color: var(--primary); }
.footer-logo span { color: #fff; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── COMMUNE SELECT ─────────────────────── */
/* Shared commune list is injected per page via hidden template */


/* ─── Form AJAX: success / error states ─── */
.form-success { text-align: center; padding: 40px 20px; }
.form-success-icon { color: var(--primary); margin-bottom: 16px; }
.form-success h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.form-success p { font-size: 14px; color: var(--gray); margin: 0; line-height: 1.5; }
.form-error-msg { font-size: 13px; color: #e53e3e; background: #fff5f5; border: 1px solid #fed7d7; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }


  .hero h1 { font-size: 24px; }
  /* product-grid mantiene 4 cols en tablet */
  /* Todos los grids → 2 columnas en mobile */
  .product-grid,
  .product-grid.cols-2,
  .product-grid.cols-3,
  .product-grid.cols-4,
  .benefits-grid,
  .uso-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .header-cta { display: none; }
  .trust-bar .inner { justify-content: flex-start; }
  .hero-stats { gap: 20px; }
}


/* ─── RESPONSIVE ─────────────────────────── */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .hero .inner {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    padding-bottom: 0;
  }
  .hero h1 { font-size: 28px; }
  .hero-copy, .hero-content { padding-bottom: 28px; }
  .form-card {
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .product-grid.cols-3 { grid-template-columns: repeat(4, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .uso-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-divider { display: none; }
  .footer-top { flex-direction: column; gap: 24px; }
  .testimonials-track { animation-duration: 35s; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  body { font-size: 15px; }

  /* Header */
  .site-header .inner { padding: 0 16px; }
  .header-cta { display: none; }
  .site-logo img { height: 34px; }

  /* Hero — texto con padding, form card full-width */
  .hero { padding: 24px 0 0; }
  .hero .inner { padding: 0; gap: 0; grid-template-columns: 1fr !important; }
  .hero-copy, .hero-content { padding: 0 16px 24px; }
  .hero h1 { font-size: 21px; line-height: 1.25; }
  .hero-sub { font-size: 14px; margin-bottom: 16px; }
  .badge-tag { font-size: 10px; padding: 4px 10px; margin-bottom: 10px; }
  .hero-meta { gap: 6px; margin-bottom: 16px; }
  .hero-meta span { font-size: 11px; padding: 4px 9px; gap: 4px; }
  .hero-meta span svg { width: 11px; height: 11px; }
  .cta-btn {
    display: block;
    text-align: center;
    padding: 13px 20px;
    font-size: 15px;
  }

  /* Form card — edge to edge en mobile */
  .form-card {
    margin: 0 !important;
    padding: 24px 16px !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    box-shadow: 0 -2px 20px rgba(0,0,0,.1);
    border-top: 3px solid var(--primary);
  }
  /* min-height en vez de height fija: mantiene el area tactil sobre los 44px
     recomendados sin impedir que el campo crezca si el texto lo necesita */
  .form-card .form-control { font-size: 16px; height: auto; min-height: 44px; }
  .form-row { flex-direction: column; gap: 0; }
  /* En movil las columnas del form se apilan: la grilla base ya deja
     flex-basis 100% bajo 601px, aca solo se anula el gap horizontal. */
  .form-card .row { margin: 0; gap: 0; }
  .payment-methods { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pm-badge { height: 46px; }
  .pm-badge img { max-height: 30px; }
  .consent-check label { font-size: 11px; }

  /* Secciones */
  .inner { padding: 0 16px; }
  .section-title { font-size: 20px; }
  .section-header h2 { font-size: 22px; }
  /* Todos los grids → 2 columnas en mobile */
  .product-grid,
  .product-grid.cols-2,
  .product-grid.cols-3,
  .product-grid.cols-4,
  .benefits-grid,
  .uso-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  /* Product cards compactos en 2 cols */
  .product-card { padding: 14px 12px; }
  .product-card-header { margin: -14px -12px 12px; padding: 14px 12px; }
  .product-card-header h3 { font-size: 13px; }
  .product-mark { width: 24px; height: 24px; }
  .product-features { display: none; }
  .variant-chips { margin-top: 8px; }
  .chip { font-size: 10px; padding: 2px 6px; }
  .product-badge { font-size: 10px; }
  .product-card p:not(.chip) { font-size: 12px; line-height: 1.45; }
  /* Todos los grids → 2 columnas en mobile */
  .product-grid,
  .product-grid.cols-2,
  .product-grid.cols-3,
  .product-grid.cols-4,
  .benefits-grid,
  .uso-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  /* Trust bar — scroll horizontal */
  .trust-bar .inner {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 16px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trust-bar .inner::-webkit-scrollbar { display: none; }
  .trust-item { flex-shrink: 0; }

  /* Todas las grillas → 2 columnas con gap */
  .product-grid,
  .product-grid.cols-2,
  .product-grid.cols-3,
  .product-grid.cols-4,
  .benefits-grid,
  .uso-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  /* Cards compactos en 2 cols */
  .product-card { padding: 12px 10px; }
  /* min-height calculada para el peor caso en movil (titulo de dos lineas
     mas badge): mantiene la banda de color alineada en toda la fila. */
  .product-card-header { margin: -12px -10px 10px; padding: 12px 10px; min-height: 118px; }
  .product-card-header h3 { font-size: 12px; }
  .product-mark { width: 22px; height: 22px; }
  .product-mark--marca { width: 26px; height: 26px; }
  .product-features { display: none; }
  .benefit-card, .benefit-item { padding: 14px 12px; }
  .uso-card { padding: 12px; }

  /* Testimonials */
  .testimonial-card { width: 240px; }
  .testimonials-track { animation-duration: 30s; }

  /* CTA section */
  .cta-section .inner { flex-direction: column; gap: 16px; text-align: center; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-cols { flex-direction: column; gap: 16px; }
  .footer-col { min-width: unset; }
  .footer-bottom .inner { flex-direction: column; gap: 8px; text-align: center; }
}

/* Touch devices — sin pause-on-hover en marquee */
@media (hover: none) {
  .testimonials-track:hover { animation-play-state: running; }
}

/* ─── NEW PAGE COMPONENTS ────────────────── */

/* Hero eyebrow badge */
.badge-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 16px; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.25);
}

/* Hero meta pill row */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 13px; font-weight: 500;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18);
  line-height: 1;
}
.hero-meta span svg { flex-shrink: 0; }

/* Trust bar stats (new pages: big number + label) */
.trust-num { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1; }
.trust-label { font-size: 12px; color: var(--gray); font-weight: 500; }
.trust-item:has(.trust-num) { flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 100px; }

/* Form card header */
.form-card-header { margin-bottom: 20px; }
.form-card-header h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.form-card-header p { font-size: 13px; color: var(--gray); margin: 0; }

/* Section header */
.section-header { margin-bottom: 32px; text-align: center; }
.section-header h2 {
  font-size: 28px; font-weight: 800; color: var(--text);
  letter-spacing: -.5px; margin: 0 0 8px;
}
.section-header p { font-size: 15px; color: var(--gray); margin: 0 auto; line-height: 1.6; max-width: 560px; }

/* Product card with colored header */
/* Banda de medios de la tarjeta. La altura minima es uniforme para que el
   bloque de color termine a la misma altura en todas las tarjetas de una
   fila: antes variaba entre 124 y 155px segun si el titulo ocupaba una o
   dos lineas, y la fila se leia desalineada. La marca queda arriba y el
   titulo anclado abajo, asi el encabezado tolera titulos de distinto largo
   sin romper la alineacion. Es tambien el area donde entra la foto. */
.product-card-header {
  margin: -24px -20px 16px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  padding: 20px;
  background-size: cover;
  background-position: center;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product-card-header h3 {
  font-size: 16px; font-weight: 700; color: #fff;
  margin: auto 0 0;
  text-wrap: balance;
}
.product-card-header h3 + .product-badge { margin-top: 8px; }

.product-card-header.con-foto .product-mark,
.product-card-header.con-foto h3 + .product-mark { display: none; }
.product-card-header.con-foto { position: relative; }
.product-card-header.con-foto::after {
  /* velo para que el texto blanco siga legible sobre cualquier foto */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1));
  border-radius: inherit;
}
.product-card-header.con-foto > * { position: relative; z-index: 1; }
.product-features { list-style: none; padding: 0; margin: 12px 0 0; }
.product-features li {
  font-size: 13px; color: var(--text); padding: 3px 0;
  display: flex; align-items: flex-start; gap: 7px;
}
.product-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* Variant chips */
.variant-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  background: rgba(255,255,255,.2); color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}

/* Uso cards — new vertical layout (new pages use uso-icon + h4/p directly) */
.uso-icon { font-size: 28px; flex-shrink: 0; }
.uso-card:has(.uso-icon) { flex-direction: column; align-items: flex-start; gap: 6px; }
.uso-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.uso-card > p { font-size: 12px; color: var(--gray); margin: 0; line-height: 1.5; }

/* Benefit items (new pages use .benefit-item instead of .benefit-card) */
.benefit-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
}
.benefit-item h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 8px 0 6px; }
.benefit-item p { font-size: 12px; color: var(--gray); line-height: 1.55; margin: 0; }

/* CTA button large */
.cta-btn-large {
  display: inline-block;
  background: #fff;
  color: var(--primary) !important;
  font-weight: 700; font-size: 16px;
  padding: 14px 32px; border-radius: 10px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.cta-btn-large:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* Footer (simplified version for new pages) */
.footer-brand { margin-bottom: 16px; }
.footer-brand .footer-logo { font-size: 18px; font-weight: 800; color: var(--primary); }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.45); margin: 4px 0 0; }
.footer-legal { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }

/* ─── CTA FIJO EN MOVIL ─────────────────────── */
/* feltrex-forms.js lo muestra cuando la tarjeta del formulario sale de
   pantalla. El padding inferior suma el area segura para que en iPhone el
   boton no quede debajo de la barra de gestos. */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--primary);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  text-align: center;
}
.sticky-cta a {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: .2px;
}
.sticky-cta a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── TESTIMONIALS ──────────────────────────── */
.testimonials-section { padding-bottom: 48px; }
.rating-summary { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 8px; }
.rating-stars { color: #f59e0b; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.rating-num { font-size: 22px; font-weight: 800; color: var(--text); }
.rating-count { font-size: 13px; color: var(--gray); }
.testimonials-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  margin-top: 36px;
}
.testimonials-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-testimonials 50s linear infinite;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes scroll-testimonials {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* Quien pidio menos movimiento no deberia recibir un carrusel en bucle
   infinito: se detiene y los testimonios pasan a poder recorrerse a mano. */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
  .testimonials-track-wrap {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
.testimonial-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.tc-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.tc-text { font-size: 13px; color: var(--text); line-height: 1.65; margin: 0 0 16px; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 10px; }
.tc-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tc-author strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.tc-author span { font-size: 11px; color: var(--gray); }

/* ─── COOKIE BANNER ─────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a2430;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
}
#cookie-banner p {
  margin: 0; font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.5;
  display: flex; align-items: center; gap: 8px;
}
#cookie-banner p svg { flex-shrink: 0; color: #4dd0de; }
#cookie-banner .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
#cookie-banner .btn-cookie-accept {
  background: var(--primary); color: #fff; border: none;
  font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 6px;
  cursor: pointer; transition: background .2s;
}
#cookie-banner .btn-cookie-accept:hover { background: var(--primary-dark); }
#cookie-banner .btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.15);
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 6px;
  cursor: pointer; transition: color .2s, border-color .2s;
}
#cookie-banner .btn-cookie-decline:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════
   AJUSTES MOVILES DE TARJETA — deben ir al final
   ═══════════════════════════════════════════════════════
   Este archivo mezcla media queries (~780-900) con reglas base que vienen
   despues (~940). Con igual especificidad gana la ultima, asi que las
   versiones compactas declaradas alla arriba nunca se aplicaban: el header
   quedaba con el margen negativo de escritorio (-20px) dentro de una
   tarjeta con 10px de padding, y la banda de color sobresalia 10px por lado.
   Redeclarar aca al final es lo que efectivamente gana. */
@media (max-width: 600px) {
  .product-card-header {
    margin: -12px -10px 10px;
    padding: 12px 10px;
    min-height: 118px;
  }
  .product-card-header h3 { font-size: 12px; }
  .product-mark { width: 22px; height: 22px; }
  .product-mark--marca { width: 26px; height: 26px; }
}

/* ═══════════════════════════════════════════════════════
   TARJETA QUE ABRE EL FORMULARIO
   ═══════════════════════════════════════════════════════
   Va al final por la misma razon que el bloque de arriba: en este archivo
   gana la ultima regla de igual especificidad. */
[data-cotizar] { cursor: pointer; }
[data-cotizar]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
/* La invitacion a pinchar: aparece al final de la tarjeta */
.card-cotizar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.card-cotizar svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
[data-cotizar]:hover .card-cotizar svg { transform: translateX(3px); }

/* El campo que quedo elegido tras pinchar una tarjeta */
.campo-destacado {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 128, 145, .18);
}
@media (prefers-reduced-motion: reduce) {
  .card-cotizar svg { transition: none; }
}

/* Icono de grupo: la marca SVG reemplaza al emoji */
.group-label-icon .product-mark {
  width: 18px; height: 18px;
  color: #fff;
  stroke-width: 1.7;
}

/* El scroll suave lo pone el CSS, no el JS: asi vale igual para los enlaces
   #cotizar del encabezado y del CTA fijo, y para el salto desde una tarjeta. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
