/* ============================================================
   TERMICRACK – STYLES
   Paleta: carbón industrial + rojo explosivo + grises neutros
   ============================================================ */

/* 1. VARIABLES ------------------------------------------------ */
:root {
  /* Primary – rojo intenso */
  --c-primary: #DC2626;
  --c-primary-dark: #991B1B;
  --c-primary-light: #FCA5A5;
  --c-primary-bg: #FEF2F2;

  /* Neutrals – carbón y grises */
  --c-carbon: #111827;
  --c-ink: #1F2937;
  --c-body: #374151;
  --c-muted: #6B7280;
  --c-border: #E5E7EB;
  --c-surface: #F9FAFB;
  --c-white: #FFFFFF;

  /* Accent – ámbar industrial */
  --c-accent: #F59E0B;
  --c-accent-dark: #D97706;

  /* Danger – para sección seguridad */
  --c-danger: #B91C1C;
  --c-danger-bg: #FEF2F2;
  --c-danger-border: #FECACA;

  /* Success */
  --c-success: #059669;
  --c-success-bg: #ECFDF5;

  /* WhatsApp */
  --c-whatsapp: #1B6E37;
  --c-whatsapp-hover: #155A2C;

  /* Typography */
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.06);
}

/* 2. RESET ---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }

/* 3. UTILITIES ------------------------------------------------ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* 4. TOP NAV -------------------------------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--c-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--c-white);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--c-primary) !important;
  color: var(--c-white) !important;
  padding: var(--space-xs) var(--space-md) !important;
  border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
  background: var(--c-primary-dark) !important;
}

/* Nav backdrop — hidden on desktop */
.nav-backdrop {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 200;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-carbon);
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s ease;
    overflow-y: auto;
    z-index: 150;
  }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
  }

  /* Dark overlay behind mobile nav */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(0,0,0,.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  /* Hamburger → X animation */
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* 5. HERO ----------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-carbon) 0%, #1a1a2e 50%, var(--c-primary-dark) 100%);
  color: var(--c-white);
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-3xl);
  overflow: hidden;
  min-height: 520px;
}

/* Crack SVG */
.hero-crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
}

.crack-main {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: crackDraw 3s ease-out forwards, crackPulse 4s ease-in-out 3.5s infinite;
}

.crack-branch {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: branchDraw 2s ease-out 1.5s forwards;
}

@keyframes crackDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes branchDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes crackPulse {
  0%, 100% { opacity: .45; }
  50% { opacity: .7; }
}

.hero-crack::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(220,38,38,.03) 50%, transparent 60%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(220, 38, 38, .15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(245, 158, 11, .08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero h1 em {
  font-style: normal;
  color: var(--c-primary-light);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  list-style: none;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,.1);
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-white);
}

.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 480px) {
  .hero-stats { gap: var(--space-lg); }
}

/* 6. BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--ff-sans);
  font-size: .95rem;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  line-height: 1.3;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: var(--c-white);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.35);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: var(--c-white);
}

.btn-whatsapp {
  background: var(--c-whatsapp);
  color: var(--c-white);
  border-color: var(--c-whatsapp);
  width: 100%;
}

.btn-whatsapp:hover {
  background: var(--c-whatsapp-hover);
  border-color: var(--c-whatsapp-hover);
  color: var(--c-white);
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

.btn-whatsapp-calc {
  margin-top: var(--space-lg);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.btn-full { width: 100%; }

/* 7. SECTIONS ------------------------------------------------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--c-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  background: var(--c-primary-bg);
  color: var(--c-primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.tag-danger {
  background: var(--c-danger-bg);
  color: var(--c-danger);
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--c-carbon);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* 8. INFO CARDS (¿Qué es?) ------------------------------------ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.info-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}

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

.info-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-carbon);
  margin-bottom: var(--space-sm);
}

.info-card p {
  font-size: .925rem;
  color: var(--c-muted);
}

/* Product specs */
.product-specs {
  background: var(--c-carbon);
  color: var(--c-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.product-specs h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--c-white);
}

.specs-row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

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

.spec-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-primary-light);
}

.spec-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: var(--space-xs);
}

/* 9. BENEFITS ------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.benefit {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow .2s;
}

.benefit:hover { box-shadow: var(--shadow-md); }

.benefit-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--c-success-bg);
  color: var(--c-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.benefit h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-carbon);
  margin-bottom: var(--space-xs);
}

.benefit p {
  font-size: .9rem;
  color: var(--c-muted);
}

/* 10. APPLICATIONS -------------------------------------------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.app-card {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: .925rem;
  font-weight: 500;
  color: var(--c-body);
  transition: box-shadow .2s, border-color .2s;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary-light);
}

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

/* 11. DRILL TABLE --------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.drill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .925rem;
}

.drill-table thead {
  background: var(--c-carbon);
  color: var(--c-white);
}

.drill-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.drill-table td {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--c-border);
}

.drill-table tbody tr {
  transition: background .15s;
}

.drill-table tbody tr:hover {
  background: var(--c-primary-bg);
}

.drill-notes {
  background: var(--c-surface);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-lg);
  font-size: .925rem;
}

.drill-notes p + p { margin-top: var(--space-sm); }

/* 12. STEPS (Mezcla & Procedimiento) -------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: var(--c-border);
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-carbon);
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: .925rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* Tips box */
.tips-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.tips-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-accent-dark);
  margin-bottom: var(--space-md);
}

.tips-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tips-box li {
  font-size: .925rem;
  color: var(--c-body);
  padding-left: var(--space-lg);
  position: relative;
}

.tips-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* 13. SAFETY -------------------------------------------------- */
.section-danger {
  background: var(--c-danger-bg);
  border-top: 3px solid var(--c-danger);
  border-bottom: 3px solid var(--c-danger);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.safety-card {
  background: var(--c-white);
  border: 1px solid var(--c-danger-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}

.safety-icon {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

.safety-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-danger);
  margin-bottom: var(--space-sm);
}

.safety-card p {
  font-size: .9rem;
  color: var(--c-body);
  line-height: 1.6;
}

.safety-storage {
  background: var(--c-white);
  border: 1px solid var(--c-danger-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
}

.safety-storage h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-danger);
  margin-bottom: var(--space-sm);
}

.safety-storage ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.safety-storage li {
  font-size: .925rem;
  color: var(--c-body);
}

.safety-storage li::before {
  content: '⚠ ';
  color: var(--c-danger);
}

/* 14. PRICING ------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 680px;
  margin: 0 auto;
}

.price-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: var(--c-white);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
}

.price-header {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--space-lg);
}

.price-label {
  display: block;
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: var(--space-xs);
}

.price-amount {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--c-carbon);
  letter-spacing: -0.02em;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.price-features li {
  font-size: .9rem;
  color: var(--c-body);
  padding-left: var(--space-lg);
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-success);
  font-weight: 700;
}

/* 15. GALLERY ------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Zoom icon overlay */
.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,24,39,.0);
  transition: background .25s;
  pointer-events: none;
}

.gallery-zoom svg {
  width: 36px;
  height: 36px;
  color: var(--c-white);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s, transform .25s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

.gallery-item:hover .gallery-zoom {
  background: rgba(17,24,39,.35);
}

.gallery-item:hover .gallery-zoom svg {
  opacity: 1;
  transform: scale(1);
}

/* Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  opacity: 0;
  transform: scale(.92);
  transition: opacity .35s, transform .35s;
}

.gallery-modal.active #modal-img {
  opacity: 1;
  transform: scale(1);
}

.modal-close,
.modal-nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--c-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}

.modal-close:hover,
.modal-nav:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

.modal-close svg,
.modal-nav svg {
  width: 20px;
  height: 20px;
}

.modal-close {
  top: -56px;
  right: 0;
}

.modal-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.modal-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.modal-counter {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

@media (max-width: 768px) {
  .modal-close {
    top: 12px;
    right: 12px;
  }
  .modal-prev {
    left: 8px;
  }
  .modal-next {
    right: 8px;
  }
  .modal-counter {
    bottom: 12px;
  }
  #modal-img {
    max-width: 96vw;
    max-height: 80vh;
    border-radius: var(--radius-sm);
  }
}

/* 15b. COVERAGE ACCORDION ------------------------------------- */
.coverage-accordion {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.coverage-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}

.coverage-item:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-sm);
}

.coverage-item[open] {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.coverage-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-carbon);
  list-style: none;
  user-select: none;
}

.coverage-item summary::-webkit-details-marker { display: none; }

.coverage-item summary::after {
  content: '';
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%236B7280' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform .25s;
}

.coverage-item[open] summary::after {
  transform: rotate(180deg);
}

.coverage-item summary:hover {
  background: var(--c-surface);
}

.coverage-item p {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  margin: 0;
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.coverage-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.badge-origin {
  background: var(--c-primary-bg);
  color: var(--c-primary);
}

.badge-near {
  background: #ECFDF5;
  color: #059669;
}

.badge-reg {
  background: #EFF6FF;
  color: #2563EB;
}

.badge-intl {
  background: #F5F3FF;
  color: #7C3AED;
}

@media (max-width: 480px) {
  .coverage-item summary {
    padding: var(--space-md);
    font-size: .9rem;
  }
  .coverage-item p {
    padding: 0 var(--space-md) var(--space-md);
  }
}

/* 16. CALCULATOR ---------------------------------------------- */
.calc-wrapper {
  max-width: 580px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-carbon);
}

.calc-form input,
.calc-form textarea,
.calc-form select {
  padding: .65rem .85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--ff-sans);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  background: var(--c-white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
}

.calc-form input:focus,
.calc-form textarea:focus,
.calc-form select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.calc-hint {
  font-size: .825rem;
  color: var(--c-muted);
  margin-top: -0.75rem;
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.result-kilo {
  text-align: center;
  padding: var(--space-lg);
  background: var(--c-carbon);
  color: var(--c-white);
}

.result-kilo .result-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.result-kilo-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--c-primary-light);
  letter-spacing: -0.02em;
}

.quotes-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  padding: var(--space-md) var(--space-md) var(--space-xs);
}

.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  position: relative;
}

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

/* Quote card */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, background .25s;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,38,38,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.quote-card:hover::before {
  opacity: 1;
}

.quote-card:hover {
  border-color: var(--c-primary-light);
  transform: translateY(-1px);
}

.quote-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-card.selected {
  border-color: var(--c-primary);
  border-width: 3px;
  background: var(--c-primary-bg);
  box-shadow: 0 0 0 4px rgba(220,38,38,.15), var(--shadow-lg);
  transform: translateY(-2px);
  z-index: 2;
}

.quote-card.selected::before {
  opacity: 1;
}

.quote-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.badge-exact {
  background: var(--c-surface);
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}

.badge-suggest {
  background: var(--c-success-bg);
  color: var(--c-success);
}

.badge-practical {
  background: #EFF6FF;
  color: #2563EB;
}

.quote-savings {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-success);
  margin-top: var(--space-xs);
}

.quote-note {
  font-size: .72rem;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: var(--space-xs);
  text-align: center;
}

.quote-combo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
  min-height: 36px;
}

.quote-cost {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-carbon);
  letter-spacing: -0.01em;
}

.quote-savings {
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-success);
  margin-top: var(--space-xs);
}

/* Crack SVG inside selected card */
.card-crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .35s;
}

.quote-card.selected .card-crack {
  opacity: 1;
}

.card-crack path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.quote-card.selected .card-crack path {
  animation: cardCrack .8s ease-out forwards;
}

.card-crack path:nth-child(2) {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation-delay: .3s !important;
}

.card-crack path:nth-child(3) {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation-delay: .5s !important;
}

@keyframes cardCrack {
  to { stroke-dashoffset: 0; }
}

.quote-badge {
  position: relative;
  z-index: 2;
}

.quote-combo,
.quote-cost,
.quote-note,
.quote-header {
  position: relative;
  z-index: 2;
}

/* Shared chips (used inside quote-combo) */
.result-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  padding: .35rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-body);
  white-space: nowrap;
}

.chip-icon { font-size: 1rem; }

.result-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* 17. CONTACT ------------------------------------------------- */
.contact-section {
  background: var(--c-carbon);
  color: var(--c-white);
}

.contact-section .section-header h2 { color: var(--c-white); }
.contact-section .section-desc { color: rgba(255,255,255,.65); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-data-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: background .2s;
}

.contact-data-card:hover {
  background: rgba(255,255,255,.08);
}

.contact-data-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-md);
}

.contact-data-card h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-sm);
}

.contact-data-card p {
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-data-card a {
  color: var(--c-white);
}

.contact-data-card a:hover {
  color: var(--c-primary-light);
}

.contact-manufacturer {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,.08);
}

.contact-manufacturer a {
  color: rgba(255,255,255,.55);
}

.contact-manufacturer a:hover {
  color: var(--c-primary-light);
}

/* 17b. FAQ ---------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}

.faq-item:hover {
  border-color: var(--c-primary-light);
}

.faq-item[open] {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-carbon);
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%236B7280' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform .25s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: var(--c-surface);
}

.faq-item > p {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: .925rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin: 0;
}

.faq-item > p a {
  color: var(--c-primary);
  text-decoration: underline;
}

/* 18. FOOTER -------------------------------------------------- */
footer {
  background: #0A0E17;
  color: rgba(255,255,255,.6);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
}

.footer-col h4 {
  color: var(--c-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-col h4 span { color: var(--c-primary); }

.footer-col p {
  font-size: .875rem;
  line-height: 1.7;
}

.footer-col a {
  color: rgba(255,255,255,.6);
}

.footer-col a:hover {
  color: var(--c-primary-light);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   RESPONSIVE — consolidated media queries
   ============================================================ */

/* ---------- 768px: tablets & large phones -------------------- */
@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    min-height: 400px;
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .stat-num {
    font-size: 1.25rem;
  }

  .step:not(:last-child)::after {
    left: 19px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .drill-table {
    font-size: .85rem;
  }

  .drill-table th,
  .drill-table td {
    padding: var(--space-sm) var(--space-md);
  }
}

/* ---------- 640px: phones ------------------------------------ */
@media (max-width: 640px) {
  .hero {
    min-height: 360px;
  }

  .hero-badge {
    font-size: .7rem;
    padding: var(--space-xs) var(--space-sm);
  }

  .section-header h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .section-desc {
    font-size: .95rem;
  }

  .info-grid,
  .benefits-grid,
  .safety-grid,
  .apps-grid,
  .pricing-grid,
  .gallery,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    max-width: 400px;
  }

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

  .calc-wrapper {
    padding: var(--space-lg);
  }

  .result-kilo-value {
    font-size: 1.75rem;
  }

  .quote-cost {
    font-size: 1.15rem;
  }

  .tips-box {
    padding: var(--space-lg);
  }

  .product-specs {
    padding: var(--space-lg) var(--space-md);
  }

  .specs-row {
    gap: var(--space-lg);
  }

  .spec-value {
    font-size: 1.4rem;
  }

  .price-amount {
    font-size: 1.75rem;
  }
}

/* ---------- 480px: small phones ------------------------------ */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    min-height: 320px;
    padding: var(--space-xl) var(--space-md);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: .9rem;
    margin-bottom: var(--space-lg);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: var(--space-md);
    padding-top: var(--space-lg);
  }

  .stat-num {
    font-size: 1.1rem;
  }

  .stat-label {
    font-size: .7rem;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .section-tag {
    font-size: .7rem;
  }

  /* Steps: compact timeline */
  .step {
    gap: var(--space-md);
    padding: var(--space-md) 0;
  }

  .step:not(:last-child)::after {
    left: 17px;
    top: 48px;
  }

  .step-num {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }

  .step-content h4 {
    font-size: 1rem;
  }

  .step-content p {
    font-size: .85rem;
  }

  /* Calculator */
  .calc-wrapper {
    padding: var(--space-md);
  }

  .form-row {
    gap: var(--space-sm);
  }

  .form-group label {
    font-size: .8rem;
  }

  .calc-form input,
  .calc-form select {
    padding: .55rem .7rem;
    font-size: .9rem;
  }

  .result-kilo {
    padding: var(--space-md);
  }

  .result-kilo-value {
    font-size: 1.5rem;
  }

  .quotes-grid {
    padding: var(--space-sm) var(--space-sm) var(--space-md);
  }

  .quote-card {
    padding: var(--space-md) var(--space-xs) var(--space-sm);
  }

  /* Gallery single column */
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* FAQ */
  .faq-item summary {
    font-size: .9rem;
    padding: var(--space-md);
  }

  .faq-item > p {
    padding: 0 var(--space-md) var(--space-md);
    font-size: .85rem;
  }

  /* Footer */
  .footer-bottom {
    font-size: .75rem;
  }

  .footer-bottom a {
    display: inline;
  }
}


.contact-contrast {
        background: rgba(255,255,255,0.85);
        color: #222 !important;
        border-radius: 12px;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
        padding: 1.5em 1em;
        margin-bottom: 1em;
      }
      .contact-contrast a {
        color: #0d47a1;
        text-decoration: underline;
      }
      .contact-contrast strong {
        color: #b71c1c;
      }

      .contact-contrast h3 {
  color: #222 !important;
}