/* =========================================================
   TERRA – TEMA CORPORATIVO CLARO
   ========================================================= */

/* ---------- Variables base ---------- */
:root {
  --font-display: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --terra-green-50: #ecfdf3;
  --terra-green-100: #d1fae5;
  --terra-green-200: #a7f3d0;
  --terra-green-500: #00c15a;   /* Verde corporativo Terra */
  --terra-green-600: #009247;
  --terra-green-700: #047857;
  --terra-green-800: #065f46;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  --bg-soft: #f7f9fc;

  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 45px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.22s ease;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

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

a:hover {
  text-decoration: none;
}

/* ---------- Layout general ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 840px;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.4rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--gray-600);
  margin: 0;
}

.text-center {
  text-align: center;
}

.mt-xl {
  margin-top: 2.75rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.terra-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #f3f4f6;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.header-logo img {
  height: 40px;
  width: auto;
}

/* Nav desktop */
.header-nav {
  display: flex;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--terra-green-600);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.header-nav a:hover {
  color: var(--terra-green-700);
}

.header-nav a:hover::after {
  width: 100%;
}

/* Burger mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--gray-800);
}

/* Nav mobile (header) */
.mobile-nav {
  display: none;
  background: #f9fafb;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.5rem 1rem;
}

.mobile-nav li + li {
  margin-top: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--gray-800);
}

/* Estado abierto */
.mobile-nav.is-open {
  display: block;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background:
  radial-gradient(circle at 0% 0%, rgba(0, 193, 90, 0.25) 0, transparent 55%),
  radial-gradient(circle at 100% 0%, rgba(0, 193, 90, 0.20) 0, transparent 55%),
  linear-gradient(130deg, #00c15a 0%, #00954f 40%, #00683b 100%);
  color: #f9fafb;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #e5f3ea;
  margin-bottom: 2rem;
}

.hero-subtitle strong {
  color: #ffffff;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Botón base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast);
}

/* Botones principales */
.btn-primary {
  background: var(--terra-green-500);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 193, 90, 0.4);
}

.btn-primary:hover {
  background: var(--terra-green-600);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 193, 90, 0.45);
}

.btn-secondary {
  background: #f9fafb;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--terra-green-500);
  color: var(--terra-green-700);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.btn-whatsapp {
  background: var(--terra-green-500);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--terra-green-600);
}

/* Tamaños */
.btn-lg {
  padding: 1rem 2.2rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

/* Badge del hero (estático) */
.hero-badge {
  position: relative;
}

.hero-badge img {
  width: 190px;
  height: auto;
}

/* Badge flotante (clonado por JS) */
.badge-floating {
  position: fixed;
  right: 2.25rem;
  top: 50%;
  transform: translateY(-50%) translateX(40px);
  width: 120px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.badge-floating.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* =========================================================
   Nuestras Soluciones Profesionales
   ========================================================= */
.productos-section {
  background: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}

/* Hover animado premium */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(34, 197, 94, 0.35);
}

/* Card PREMIUM (TerraPower) - glow un poco más suave */
.card-premium {
  margin-top: -14px;
  z-index: 10;
  transform: translateY(-8px);
  border-radius: 18px;
  border: 2px solid rgba(0, 193, 90, 0.3);
  box-shadow:
    0 15px 35px rgba(0,0,0,0.07),
    0 0 14px rgba(0, 255, 150, 0.2);
}

.card-premium:hover {
  transform: translateY(-16px) scale(1.02);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.11),
    0 0 22px rgba(0, 255, 150, 0.28);
  border-color: rgba(0, 255, 150, 0.5);
}

/* Badge de categoría (Bestseller, Premium, etc.) */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #022c22;
}

.badge-bestseller {
  background: #fef3c7;
}

.badge-premium {
  background: #e0e7ff;
}

.badge-eco {
  background: #dcfce7;
}

.product-image {
  margin-top: 1.75rem;
  text-align: center;
  order: -1;
}

.product-image img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
}

/* Textos card */
.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-600);
  margin-top: 1rem;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.35rem 0 0.8rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.product-price-current {
  font-weight: 800;
  color: var(--terra-green-700);
}

.product-price-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Ideal para */
.product-ideal-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.3rem;
}

.product-ideal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.product-ideal-tag {
  font-size: 0.7rem;
  background: var(--bg-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* Bullet list */
.product-features {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--gray-700);
  flex-grow: 1;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

/* =========================================================
   Componentes y Químicos Terra
   ========================================================= */
.componentes-section {
  background: var(--bg-soft);
}

.componentes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.componente-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.1rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.componente-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(34, 197, 94, 0.4);
}

.componente-img img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.8rem;
}

.componente-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.componente-desc {
  font-size: 0.78rem;
  color: var(--gray-600);
  min-height: 48px;
}

.componente-precio {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--terra-green-700);
  font-size: 0.9rem;
}

.btn-componente {
  margin-top: 0.65rem;
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #ffffff;
  transition: all var(--transition-fast);
}

.btn-componente:hover {
  border-color: var(--terra-green-500);
  color: var(--terra-green-700);
}

/* =========================================================
   Auditoría Técnica
   ========================================================= */
.audit-section {
  background: #ffffff;
}

.audit-stat {
  text-align: center;
  margin-bottom: 2.2rem;
}

.audit-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--terra-green-600);
}

.audit-stat-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Cards de beneficios (iconos) */
.audit-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.audit-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 0.9rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.audit-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terra-green-100);
  color: var(--terra-green-700);
  font-size: 1rem;
}

.audit-benefit-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-800);
}

.audit-benefit-desc {
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* Cards: Duración – Inversión – Cobertura */
.audit-info-cards {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin: 0 auto 2.5rem;
  max-width: 900px;
}

.audit-info-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  width: 260px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.audit-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.audit-info-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.audit-info-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.audit-info-text {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.audit-info-text.highlight {
  color: var(--terra-green-700);
  font-weight: 800;
  font-size: 1rem;
}

/* Caja "Ideal para" */
.audit-ideal-box {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  background: var(--terra-green-800);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-soft);
}

.audit-ideal-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.audit-ideal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.83rem;
}

.audit-description {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-buttons-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Caja "Señales de alerta" */
.audit-warning-box {
  max-width: 900px;
  margin: 0 auto 2.2rem;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-soft);
}

.audit-warning-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #b91c1c;
  margin-bottom: 1rem;
}

.audit-warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.83rem;
  color: #7f1d1d;
}

.audit-warning-list li {
  margin-bottom: 0.45rem;
  position: relative;
  padding-left: 1.2rem;
}

.audit-warning-list li::before {
  content: "✖";
  position: absolute;
  left: 0;
  top: 0;
  color: #dc2626;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  padding: 0.9rem 1.3rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  margin-left: 1rem;
  font-weight: 700;
  color: var(--gray-500);
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.3rem;
  font-size: 0.86rem;
  color: var(--gray-700);
  transition: max-height 0.25s ease;
}

.faq-item.active .faq-answer {
  padding-bottom: 0.9rem;
  max-height: 240px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #022c22;
  color: #e2e8f0;
  padding: 2.5rem 0 2rem;
  font-size: 0.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 1.6rem;
  max-width: 1120px;
  margin: 0 auto 1.7rem;
  padding: 0 1.5rem;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.logo-icon {
  font-size: 1.5rem;
}

.footer-brand p {
  margin-top: 0.6rem;
  color: #cbd5f5;
  font-size: 0.8rem;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a {
  color: #cbd5f5;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-certifications {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.footer-cert {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.1rem 0.6rem;
  font-size: 0.7rem;
}

/* =========================================================
   BOTTOM NAVIGATION MOBILE + SIDEBAR
   ========================================================= */
.bottom-nav {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -6px 22px rgba(0,0,0,0.08);
  display: none; /* se activa solo en mobile */
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  z-index: 9999;
  transition: bottom .35s ease;
}

.bottom-nav.show {
  bottom: 0;
}

.bottom-nav .nav-item {
  text-align: center;
  color: #5a5a5a;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-nav .nav-item i {
  display: block;
  font-size: 22px;
  margin-bottom: 2px;
  transition: color .25s ease;
}

.bottom-nav .nav-item:hover i {
  color: #00C15A;
}

/* Floating center button */
.menu-fab {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #00C15A;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: #00C15A;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.menu-fab:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

/* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 14px rgba(0,0,0,0.15);
  padding: 20px;
  transition: right .35s ease;
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

.sidebar-menu.show {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-header h3 {
  margin: 0;
  color: var(--gray-900);
}

.close-sidebar {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-700);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar-links li {
  margin-bottom: 15px;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--gray-800);
  font-size: 16px;
  transition: color .2s ease;
  display: block;
  padding: 8px 0;
}

.sidebar-links a:hover {
  color: #00C15A;
}

/* Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 9999;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .componentes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audit-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-ideal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 3.2rem 1.5rem 3.5rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  /* En mobile: ocultar badge del hero, solo se ve el flotante al hacer scroll */
  .hero-badge {
    display: none;
  }

  /* Productos como carousel con peek */
  .products-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1.2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .products-grid::-webkit-scrollbar {
    display: none;
  }
  
  .products-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .product-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    margin-top: 0;
    transform: translateY(0);
  }

  .card-premium {
    transform: translateY(0);
    margin-top: 0;
  }

  .componentes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-benefits {
    grid-template-columns: 1fr;
  }

  .audit-info-card {
    width: 100%;
  }

  .audit-ideal-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer no se muestra en mobile */
  .footer {
    display: none;
  }

  /* Activar bottom nav y reservar espacio, respetando safe area */
  .bottom-nav {
    display: flex;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .componentes-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons-container {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons-container .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Apagar cualquier hero viejo si existía */
section.hero {
  display: none !important;
}
/* ===============================
   Header hide / show on scroll
   =============================== */
.terra-header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: transform 0.3s ease;
}

.terra-header.is-hidden {
  transform: translateY(-100%);
}
/* ===============================
   Products grid → swipe mobile
   =============================== */
@media (max-width: 768px) {
  .products-grid {
    display: flex;                /* ← sobrescribe el grid */
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .products-grid::-webkit-scrollbar {
    display: none;
  }

  .products-grid > .product-card {
    flex: 0 0 80%;                /* ancho de cada card */
    scroll-snap-align: start;
  }
}
/* ===============================
   Componentes químicos – imágenes horizontales (800x600)
   =============================== */
.componente-card .componente-img {
  width: 100%;
  aspect-ratio: 4 / 3;       /* 800 x 600 es 4:3 */
  overflow: hidden;
  border-radius: 12px;
}

.componente-card .componente-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* llena el espacio sin deformar */
  object-position: center;   /* centra mejor la imagen */
  display: block;
}
/* ============================================================
   AJUSTES PRODUCTOS PRINCIPALES + QUÍMICOS TERRA
   ============================================================ */

/* Imágenes productos principales (TerraMax / TerraPower) */
.product-card .product-image {
  width: 100%;
  aspect-ratio: 4 / 3;      /* 800x600 ≈ 4:3 */
  overflow: hidden;
  border-radius: 14px;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Imágenes componentes químicos */
.componente-card .componente-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.componente-card .componente-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Botón verde para WhatsApp en químicos */
.btn-whatsapp {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  background-color: #00a859;
  color: #fff !important;
  font-weight: 600;
  border-radius: 999px;
  text-align: center;
  transition: 0.25s;
  box-shadow: 0px 6px 18px rgba(0, 168, 89, 0.35);
}

.btn-whatsapp:hover {
  background-color: #00914e;
  transform: translateY(-2px);
}
/* ============================================================
   TABLA COMPARATIVA PREMIUM – Tecnología TerraMax
   ============================================================ */

.comparativa-section {
  margin: 4rem auto;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, #f8fafc, #eef2f6);
  border-radius: 28px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.comparativa-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.6rem;
  color: #1a202c;
  letter-spacing: -0.5px;
}

/* Contenedor tabla */
.comparativa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;       /* filas separadas estilo premium */
  font-size: 1.05rem;
}

/* Encabezados */
.comparativa-table th {
  background: #1a202c;
  color: #ffffff;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Celdas */
.comparativa-table td {
  background: #ffffff;
  padding: 1.2rem;
  color: #2d3748;
  border-left: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.5;
}

/* Primera columna (aspectos) */
.comparativa-table td:first-child {
  font-weight: 600;
  color: #1a202c;
  width: 32%;
}

/* Filas premium (elevación al hover) */
.comparativa-table tr:hover td {
  background: #f1f5f9;
  transition: 0.25s ease;
}

/* Redondeado en la última fila */
.comparativa-table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
.comparativa-table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* Mobile optimizado */
@media (max-width: 768px) {
  .comparativa-title {
    font-size: 1.7rem;
  }

  .comparativa-table {
    border-spacing: 0 8px;
  }

  .comparativa-table th,
  .comparativa-table td {
    font-size: 0.95rem;
    padding: 0.9rem;
  }

  /* Hacer scroll horizontal suave */
  .comparativa-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
