/* ============================================================
   Inpolymer de México — UI/UX PRO-MAX DESIGN SYSTEM (inpolymer.pro)
   Arquitectura visual B2B de grado industrial superior
   ============================================================ */

:root {
  /* Paleta Corporativa Principal */
  --primary: #081a33;
  --primary-light: #102a4e;
  --primary-dark: #040d1a;
  --accent: #0284c7;
  --accent-light: #38bdf8;
  --accent-hover: #0369a1;
  --accent-glow: rgba(56, 189, 248, 0.25);

  /* Acentos de Familia Polimérica */
  --pp-color: #0284c7;
  --pp-bg: #e0f2fe;
  --pe-color: #10b981;
  --pe-bg: #dcfce7;
  --ps-color: #f59e0b;
  --ps-bg: #fef3c7;

  /* Estado y Contacto */
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebc57;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Superficies y Neutros */
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #07162c;
  --bg-surface: #f1f5f9;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-cyan: #38bdf8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #38bdf8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Sombras de Elevación */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 14px -2px rgba(8, 26, 51, 0.08), 0 2px 6px -1px rgba(8, 26, 51, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(8, 26, 51, 0.1), 0 6px 12px -2px rgba(8, 26, 51, 0.05);
  --shadow-xl: 0 24px 44px -8px rgba(8, 26, 51, 0.14), 0 10px 20px -3px rgba(8, 26, 51, 0.06);

  --header-height: 72px;
  --header-height-scrolled: 62px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET Y TIPOGRAFÍA BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-scrolled) + 20px);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
  font-weight: 700;
}

.skip-link:focus {
  top: 20px;
}

/* Contenedor Universal */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER & NAVBAR ULTRA-PULIDO
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(8, 26, 51, 0.04);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 22px rgba(8, 26, 51, 0.1);
  border-bottom-color: rgba(2, 132, 199, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  transition: height 0.2s ease;
}

header.scrolled .nav-container {
  height: var(--header-height-scrolled);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.6px;
}

.logo-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-in { color: var(--primary); }
.logo-polymer { color: var(--accent); }

.logo-badge {
  font-size: 0.68rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Indicador de Estado en Vivo */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-left: 0.8rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--accent);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px var(--accent-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cta-nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-nav:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

/* ============================================================
   SECCIONES Y ESPACIADOS
   ============================================================ */
.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-height-scrolled) + 16px);
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  margin-bottom: 2.6rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.6;
}

/* ============================================================
   HERO SECTION ULTRA-PREMIUM
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.16) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.12) 0%, transparent 55%),
              linear-gradient(145deg, #051224 0%, #081f3d 50%, #0c2b53 100%);
  color: #ffffff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  scroll-margin-top: 0;
}

/* Trama geométrica de fondo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-title-highlight {
  background: linear-gradient(120deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.22rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 2.4rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 3.2rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25d366 0%, #1ebc57 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 18px var(--whatsapp-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae771 0%, #25d366 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

/* Tarjetas de Estadísticas del Hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2.2rem;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
}

.hero-stat-card strong {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-stat-card span {
  font-size: 0.92rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Ticker de Confianza / Certificaciones */
.trust-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-xs);
}

.trust-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-item svg {
  color: var(--accent);
}

/* ============================================================
   SECCIÓN COMPARATIVA B2B (TRADICIONAL VS INPOLYMER)
   ============================================================ */
.comparison-section {
  background: #ffffff;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 1.2rem 1.4rem;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: #f8fafc;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.comparison-table th.col-highlight {
  background: #081a33;
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 900;
}

.comparison-table td.col-highlight {
  background: rgba(2, 132, 199, 0.04);
  font-weight: 700;
  color: #0b2545;
  border-left: 2px solid rgba(2, 132, 199, 0.2);
  border-right: 2px solid rgba(2, 132, 199, 0.2);
}

.badge-win {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: #166534;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.8rem;
}

.badge-lose {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fee2e2;
  color: #991b1b;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ============================================================
   ASISTENTE / SELECTOR INTELIGENTE DE RESINAS
   ============================================================ */
.resin-wizard {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.8rem;
  box-shadow: var(--shadow-sm);
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.wizard-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-desc {
  font-size: 0.92rem;
  color: #0284c7;
}

.wizard-steps {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.wizard-btn {
  background: #ffffff;
  border: 1.5px solid #7dd3fc;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wizard-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.wizard-btn.active {
  background: #0b2545;
  color: #ffffff;
  border-color: #0b2545;
  box-shadow: var(--shadow-sm);
}

/* Barra de Búsqueda y Filtros del Catálogo */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.search-box-wrapper {
  position: relative;
  max-width: 440px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.catalog-filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-btn .filter-count {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ============================================================
   GRID Y TARJETAS DE CATÁLOGO PRO-MAX (COMPACTAS Y RICAS)
   ============================================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-pp { border-top: 4px solid var(--pp-color); }
.card-pe { border-top: 4px solid var(--pe-color); }
.card-ps { border-top: 4px solid var(--ps-color); }

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

.product-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.product-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-pp { background: var(--pp-bg); color: var(--pp-color); border: 1px solid rgba(2, 132, 199, 0.2); }
.badge-pe { background: var(--pe-bg); color: #047857; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-ps { background: var(--ps-bg); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.2); }

.product-process-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-title {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 0.45rem;
  line-height: 1.3;
  font-weight: 800;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.95rem;
  line-height: 1.45;
}

/* ESPECIFICACIONES TÉCNICAS EN GRID 2X2 */
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-val {
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-top: auto;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-download:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
  color: var(--accent);
}

.btn-quote-card {
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
}

/* ============================================================
   SECCIÓN NOSOTROS Y PILARES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
  margin-top: 1.8rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.feature-card h4 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ============================================================
   CASOS DE ÉXITO INDUSTRIALES
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
}

.case-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.case-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
}

.case-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.case-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.case-stat {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.case-stat strong {
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 900;
}

.case-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   ZONAS LOGÍSTICAS Y PARQUES INDUSTRIALES
   ============================================================ */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.zone-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.zone-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent-light);
}

.zone-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 800;
}

.zone-card ul {
  list-style: none;
}

.zone-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.94rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zone-card li::before {
  content: '📍';
  font-size: 0.85rem;
}

.zone-card li:last-child {
  border-bottom: none;
}

/* ============================================================
   PREGUNTAS FRECUENTES (FAQ)
   ============================================================ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  transition: var(--transition);
}

details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background: #fbfdff;
}

summary {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

details p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ============================================================
   FORMULARIO Y CONTACTO PRO-MAX (CON CALCULADORA RÁPIDA)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.contact-item h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-hours {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
}

/* Tarjeta de Calculadora de Equivalencias */
.calc-card {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.calc-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #38bdf8;
}

.calc-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.calc-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  text-align: center;
}

.calc-box-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.calc-box-lbl {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-check input {
  width: auto;
  margin-top: 0.25rem;
}

.form-check label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.08rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.form-alt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
}

/* ============================================================
   PIE DE PÁGINA (FOOTER)
   ============================================================ */
footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-in { color: #ffffff; }

.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.94rem;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 820px;
}

.footer-bottom a {
  color: var(--accent-light);
}

.footer-disclaimer {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* ============================================================
   WIDGET FLOTANTE WHATSAPP CON TOOLTIP INTERACTIVO
   ============================================================ */
.whatsapp-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1000;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.8rem;
}

.whatsapp-float {
  background-color: var(--whatsapp);
  width: 62px;
  height: 62px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--whatsapp-glow);
  transition: var(--transition);
  position: relative;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: var(--whatsapp-hover);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  background-color: #ef4444;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
}

.whatsapp-tooltip {
  background: #ffffff;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-widget:hover .whatsapp-tooltip,
.whatsapp-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #ffffff;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.success {
  background: #065f46;
  border-left: 5px solid #10b981;
}

.toast.error {
  background: #991b1b;
  border-left: 5px solid #ef4444;
}

/* ============================================================
   RESPONSIVE DESIGN (MOBILE FIRST AUDIT)
   ============================================================ */
@media (max-width: 992px) {
  .nav-container nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.8rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }

  .nav-container nav.open { display: flex; }
  .menu-toggle { display: block; }
  .cta-nav { display: none; }
  .live-status-pill { display: none; }

  .hero h1 { font-size: 2.45rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .btn-primary, .btn-whatsapp { width: 100%; }
  .product-actions { grid-template-columns: 1fr; }
  .whatsapp-tooltip { display: none; }
}
