/* GasfiterOnline.cl — main.css v2.0 | Azul + Cobre · SEO-first · Enhanced Design */
:root {
  --ink:         oklch(0.18 0.012 250);
  --ink-soft:    oklch(0.40 0.015 250);
  --ink-muted:   oklch(0.56 0.012 250);
  --line:        oklch(0.92 0.004 250);
  --line-strong: oklch(0.86 0.006 250);
  --paper:       oklch(1 0 0);
  --paper-tint:  oklch(0.975 0.003 250);

  --brand:       oklch(0.42 0.14 252);
  --brand-deep:  oklch(0.30 0.12 252);
  --brand-soft:  oklch(0.96 0.025 252);

  --accent:      oklch(0.62 0.14 48);
  --accent-deep: oklch(0.52 0.14 42);
  --accent-soft: oklch(0.96 0.025 55);

  --wa:          oklch(0.62 0.15 145);
  --wa-deep:     oklch(0.50 0.14 145);
  --ok:          oklch(0.62 0.13 150);

  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(20,24,40,.05);
  --shadow:    0 6px 18px -8px rgba(20,24,40,.18), 0 2px 4px rgba(20,24,40,.04);
  --shadow-lg: 0 24px 48px -20px rgba(20,24,40,.30), 0 6px 12px -8px rgba(20,24,40,.10);

  --font-sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ======== KEYFRAMES ======== */
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(98,200,130,.6) }
  70%      { box-shadow: 0 0 0 8px rgba(98,200,130,0) }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmerSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes heroShimmer {
  0%   { opacity: 0; transform: translateX(-100%) skewX(-15deg); }
  50%  { opacity: 0.04; }
  100% { opacity: 0; transform: translateX(200%) skewX(-15deg); }
}

@keyframes urgencyPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.85; }
}

/* ======== SCROLL ANIMATION CLASSES ======== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ======== BASE ======== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-feature-settings: "cv02","cv03","cv04","cv11";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ======== LAYOUT ======== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

/* Enhanced bg-tint with subtle gradient */
.bg-tint {
  background: linear-gradient(135deg, oklch(0.97 0.01 252) 0%, oklch(0.95 0.02 252) 100%);
}

/* Enhanced bg-dark with richer gradient */
.bg-dark {
  background: linear-gradient(160deg, oklch(0.18 0.08 252) 0%, oklch(0.14 0.06 252) 100%);
  color: white;
}
.border-block { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ======== URGENCY BAR ======== */
.urgbar {
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%);
  background-size: 200% 100%;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: urgencyPulse 3s ease-in-out infinite;
}
.urgbar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: shimmerSlide 3.5s ease-in-out infinite;
  pointer-events: none;
}
.urgbar a { color: white; font-weight: 700; text-decoration: underline; }
.urgbar-close {
  position: absolute; right: 14px; background: transparent; border: none;
  color: white; font-size: 16px; cursor: pointer; opacity: .7;
}
.urgbar-close:hover { opacity: 1; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(98,200,130,.6);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* ======== NAV ======== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand);
  display: grid; place-items: center; color: white;
}
.logo-text { font-size: 18px; color: var(--brand); }
.logo-text strong { font-weight: 800; }
.logo-text .tld { color: var(--ink-muted); font-weight: 500; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: var(--r); font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s, background .15s;
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--brand); background: var(--brand-soft); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; background: white;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 8px; min-width: 260px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  z-index: 100; list-style: none; margin: 0;
}
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown a { display: block; padding: 8px 12px; border-radius: var(--r); font-size: 13px; color: var(--ink); }
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown a small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }
.nav-cta { display: flex; gap: 8px; margin-left: 16px; }
.nav-hamburger { display: none; flex-direction: column; gap: 4px; background: transparent; border: none; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ======== BUTTONS — PREMIUM ======== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; border: none; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn:active { transform: translateY(0px) scale(0.98) !important; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* Primary button — spring effect + gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(160,90,30,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(160,90,30,.38);
  background: linear-gradient(135deg, oklch(0.66 0.14 48) 0%, var(--accent) 100%);
}

/* WhatsApp button — spring effect + gradient */
.btn-wa {
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-deep) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(37,211,102,.22);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,.38);
  background: linear-gradient(135deg, oklch(0.68 0.15 145) 0%, var(--wa) 100%);
}

.btn-ghost {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  transition: all 0.2s ease;
}
.btn-ghost:hover { background: var(--paper-tint); transform: translateY(-1px); }

.btn-ghost-light {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: white;
  transition: all 0.2s ease;
}
.btn-ghost-light:hover { border-color: white; transform: translateY(-1px); }

/* ======== HERO ======== */
.hero {
  padding: 88px 0 96px;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,58,95,0.85) 60%, rgba(30,58,95,0.50) 100%),
    url('https://images.pexels.com/photos/6419128/pexels-photo-6419128.jpeg?auto=compress&cs=tinysrgb&w=1400') center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Shimmer overlay on hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  animation: heroShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.hero h1, .hero h1 em { color: white; }
.hero-lede, .hero-lede strong { color: rgba(255,255,255,0.92); }
.hero-eyebrow { color: rgba(255,255,255,0.9); }
.hero-meta, .hero-meta div { color: rgba(255,255,255,0.85); }
.hero-meta .num { color: white; }
.hero-compact { padding: 52px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; justify-content: space-between; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.spark-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(98,200,130,.2);
  animation: pulse 1.8s infinite;
}

/* Typography refinements */
h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  font-feature-settings: "cv02","cv03","cv04","cv11";
}
h1 em { font-style: italic; font-family: var(--font-serif); font-weight: 500; color: var(--accent); }
h2 {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  font-feature-settings: "cv02","cv03","cv04","cv11";
}

.hero-lede { font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 28px; max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta > div { font-size: 13px; color: var(--ink-muted); }
.num { display: block; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-family: var(--font-serif); }

/* ======== HERO CARD / FORM ======== */
.hero-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 4px 12px rgba(0,0,0,0.12);
  justify-self: end;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}
.hero-card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  background: oklch(0.96 0.04 145); color: oklch(0.42 0.13 145);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.hero-card .muted { color: var(--ink-muted); font-size: 14px; margin: 0 0 20px; }

/* ======== FORM ======== */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-family: var(--font-sans); font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r); outline: none;
  background: var(--paper); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(60,90,200,.12);
}
.form-privacy {
  text-align: center; font-size: 12px; color: var(--ink-muted); margin: 4px 0 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.lead-success { text-align: center; padding: 24px 0; }
.success-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ok);
  color: white; font-size: 22px; display: grid; place-items: center; margin: 0 auto 14px;
}
.lead-success h4 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }

/* ======== TRUST STRIP — ENHANCED ======== */
.trust {
  background: linear-gradient(135deg, oklch(0.97 0.01 252) 0%, oklch(0.96 0.015 252) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s;
}
.trust-item:hover { color: var(--brand); }
.trust-item:hover .trust-icon {
  background: var(--brand-soft);
  transform: scale(1.1);
}
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  transition: background .15s, transform .15s;
}
.trust-inline { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: var(--ink-muted); }
.trust-inline span::before { content: '✓ '; color: var(--ok); font-weight: 700; }

/* ======== SECTION HEADINGS ======== */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head.left-align { text-align: left; }
.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.kicker-light { color: rgba(255,255,255,.65); }

/* Decorative underline on h2 inside .sec-head */
.sec-head h2 { position: relative; display: inline-block; }
.sec-head h2::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 10px auto 0;
}
.sec-head.left-align h2::after { margin: 10px 0 0; }

.sec-head p { font-size: 16px; color: var(--ink-soft); max-width: 600px; margin: 0 auto; }

/* ======== SERVICES GRID — PREMIUM CARDS ======== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.svc-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(60,90,200,.03) 0%, rgba(60,90,200,.0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.svc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand);
}
.svc-card:hover::before { opacity: 1; }
.svc-card.featured { border-color: var(--accent); border-width: 2px; position: relative; }
.svc-card.featured::before {
  content: "Más solicitado";
  position: absolute; top: -1px; right: 20px;
  font-size: 11px; font-weight: 700;
  background: var(--accent); color: white;
  padding: 3px 10px; border-radius: 0 0 8px 8px;
  opacity: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.svc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
  transition: transform .2s ease, background .2s ease;
}
.svc-card:hover .svc-icon { transform: scale(1.1); background: var(--brand); color: white; }
.svc-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.svc-card h3 a { color: inherit; }
.svc-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.5; }
.svc-price { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.svc-link { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); margin-top: auto; }
.svc-link:hover { color: var(--accent); }

/* ======== WHY US — PREMIUM CARDS ======== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(60,90,200,.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 16px;
  transition: transform .2s ease, background .2s ease;
}
.why-card:hover .why-icon { transform: scale(1.1); background: var(--brand); color: white; }
.why-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.why-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ======== SPLIT GRID ======== */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.urgency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.urgency-card {
  padding: 18px; background: white;
  border: 1px solid var(--line); border-radius: 12px;
  display: flex; gap: 12px; align-items: center;
  font-weight: 600; font-size: 14px;
  transition: all 0.25s ease;
}
.urgency-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.cta-pair { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ======== COMUNAS — ENHANCED CHIPS ======== */
.comunas-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.comuna-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 500;
  transition: all 0.15s ease;
}
.bg-tint .comuna-chip { border-color: var(--line-strong); color: var(--ink-soft); }
.comuna-chip:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.bg-tint .comuna-chip:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(60,90,200,.22);
}

/* ======== TESTIMONIALS ======== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testi {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  transition: all 0.3s ease;
}
.testi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testi-stars { font-size: 15px; color: #f59e0b; margin-bottom: 12px; }
.testi-body { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 18px; font-style: italic; }
.testi-meta { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; display: grid; place-items: center;
  font-size: 15px; flex-shrink: 0;
}
.testi-meta strong { font-size: 14px; }
.testi-meta small { font-size: 12px; color: var(--ink-muted); }

/* ======== FAQ — ENHANCED ACCORDION ======== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-max { max-width: 900px; margin-left: auto; margin-right: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%; background: transparent; border: none;
  padding: 20px 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  text-align: left; cursor: pointer;
  transition: color .2s ease, background .2s ease;
  border-radius: var(--r-sm);
}
.faq-q:hover {
  color: var(--brand);
  background: rgba(60,90,200,.04);
}
.chev {
  flex-shrink: 0;
  transition: transform .35s ease;
  color: var(--ink-muted);
}
.faq-item.open .chev { transform: rotate(180deg); }
/* Smooth accordion height transition */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 12px;
  font-size: 15px; color: var(--ink-soft); line-height: 1.65;
}
.faq-a[hidden] { display: none; }
/* When accordion is open, override max-height via JS by adding .open to .faq-item */
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 12px 20px;
}

/* ======== CTA STRIP — RICHER GRADIENT ======== */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, oklch(0.50 0.16 252) 100%);
  color: white;
  border-radius: var(--r-xl);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(30,58,150,.30);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-strip h3 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.cta-strip p { margin: 0; opacity: .8; font-size: 15px; }
.cta-strip-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.cta-strip .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.cta-strip .btn-wa {
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-deep) 100%);
}

/* ======== CONTENT COLUMNS ======== */
.content-cols { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.main-content h2 { font-size: 24px; margin: 0 0 16px; }
.main-content p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.main-content ul { color: var(--ink-soft); line-height: 1.7; padding-left: 20px; }
.main-content li { margin-bottom: 8px; }
.sidebar-card { background: white; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.sidebar-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.sidebar-card h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 0 0 12px; }
.sidebar-card p { font-size: 14px; color: var(--ink-muted); margin: 0 0 16px; }
.sidebar-link { display: block; font-size: 14px; color: var(--brand); padding: 6px 0; border-bottom: 1px solid var(--line); }
.sidebar-link:last-child { border-bottom: none; }
.sticky-cta { position: sticky; top: 100px; }
.btn-full + .btn-full { margin-top: 8px; }

/* ======== SERVICE HERO ======== */
.svc-hero { padding: 56px 0 64px; background: linear-gradient(160deg, var(--paper) 60%, var(--brand-soft)); }
.svc-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.svc-hero-price { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 20px; }

/* ======== BREADCRUMB ======== */
.breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--line); }
.breadcrumb .container { font-size: 13px; color: var(--ink-muted); }
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { text-decoration: underline; }

/* ======== BLOG ======== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.post-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all 0.3s ease;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-img { aspect-ratio: 16/9; background: var(--paper-tint); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 24px; }
.post-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.post-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.post-card h3 a { color: inherit; }
.post-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.post-card-meta { font-size: 12px; color: var(--ink-muted); }

/* ======== FOOTER ======== */
.footer { background: oklch(0.16 0.018 252); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin: 14px 0 20px; }
.footer-ctas { display: flex; gap: 10px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.badge-sec { font-size: 11px; font-weight: 600; background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 999px; }
.footer h5 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 16px; }
.footer a { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 8px; transition: color .15s; }
.footer a:hover { color: white; }
.footer-phone { font-size: 18px !important; font-weight: 700; color: white !important; }
.footer-address { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; line-height: 1.6; }
.footer-address address { font-style: normal; }
.footer-secondary-nav { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-secondary-nav a { display: inline; margin-right: 12px; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom a { display: inline; font-size: 12px; color: rgba(255,255,255,.35); margin-bottom: 0; }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }

/* ======== FAB WhatsApp ======== */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wa) 0%, var(--wa-deep) 100%);
  color: white; display: grid; place-items: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s;
}
.fab-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}

/* ======== PROSE ======== */
.prose-max { max-width: 780px; margin-left: auto; margin-right: auto; }
.page-content p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 16px; }
.page-content ul { color: var(--ink-soft); line-height: 1.7; padding-left: 20px; }
.page-content li { margin-bottom: 8px; }
.page-content h2, .page-content h3 { margin: 32px 0 14px; }

/* ======== MOBILE ======== */
@media (max-width: 900px) {
  .hero-grid, .svc-hero-grid, .split-grid, .content-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--line);
    padding: 12px; flex-direction: column;
  }
  .nav-links.open { display: flex; }
  .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; padding-left: 12px; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-cta .nav-phone span { display: none; }
}

@media (max-width: 720px) {
  section { padding: 52px 0; }
  h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  h2 { font-size: 22px; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { gap: 40px; }
  .btn-lg { padding: 14px 20px; font-size: 15px; width: 100%; justify-content: center; }
  .btn-full { padding: 14px 20px; }
  .cta-strip { padding: 28px 24px; flex-direction: column; text-align: center; }
  .cta-strip-actions { width: 100%; }
  .cta-strip-actions .btn { flex: 1; justify-content: center; }
  .urgency-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
}

@media (max-width: 640px) {
  section { padding: 48px 0; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .cta-strip { padding: 28px 24px; flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testi-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .field.row { grid-template-columns: 1fr; }
  .split-grid { gap: 32px; }
  .urgency-grid { grid-template-columns: 1fr; }
  .cta-strip-actions { width: 100%; }
  .cta-strip-actions .btn { flex: 1; justify-content: center; }
}

/* ======== ADMIN / WP ======== */
.wp-block img { max-width: 100%; }


/* Hero text contrast over image bg */
.hero h1, .hero .hero-lede { color: #fff; }
.hero .hero-eyebrow { color: #fff; }
.hero h1 em { color: #ffd089; }
.hero .hero-lede strong { color: #fff; }
.hero-meta, .hero-meta div, .hero-meta .num { color: #fff !important; }

/* === HERO LAYOUT OVERRIDE FORM A LA DERECHA === */
.hero .hero-grid { 
  display: grid !important; 
  grid-template-columns: 1.2fr 440px !important; 
  gap: 60px !important; 
  align-items: start !important; 
}
.hero .hero-content { grid-column: 1 !important; }
.hero .hero-card { 
  grid-column: 2 !important; 
  justify-self: end !important; 
  width: 100% !important; 
  max-width: 440px !important;
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.10) !important;
}
@media (max-width: 900px) {
  /* HERO MOBILE — NUCLEAR FLEX STACK */
  .hero .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  .hero .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: unset !important;
  }
  .hero .hero-card {
    grid-column: unset !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: unset !important;
    align-self: unset !important;
    box-sizing: border-box !important;
  }
}


/* ====== INTERLINKS SECTION ====== */
.interlinks-section {
  background: linear-gradient(160deg, oklch(0.16 0.04 252) 0%, oklch(0.12 0.05 252) 100%);
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.interlinks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.interlinks-col h3 { color: white; font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent, #c87533); }
.interlinks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.interlinks-list a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; transition: color .2s, padding-left .2s; }
.interlinks-list a:hover { color: var(--accent, #c87533); padding-left: 4px; }
@media (max-width: 640px) { .interlinks-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ====== INTERSECTION OBSERVER SCROLL ANIMATIONS ====== */
/* Added via inline script in footer — classes applied by JS */
.svc-card, .why-card, .urgency-card, .faq-item, .testi {
  --anim-delay: 0s;
}
.svc-card:nth-child(1), .why-card:nth-child(1) { --anim-delay: 0.0s; }
.svc-card:nth-child(2), .why-card:nth-child(2) { --anim-delay: 0.1s; }
.svc-card:nth-child(3), .why-card:nth-child(3) { --anim-delay: 0.2s; }
.svc-card:nth-child(4), .why-card:nth-child(4) { --anim-delay: 0.3s; }
.svc-card:nth-child(5), .why-card:nth-child(5) { --anim-delay: 0.4s; }
.svc-card:nth-child(6), .why-card:nth-child(6) { --anim-delay: 0.5s; }

/* Stagger animation class (applied by JS observer) */
.anim-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease var(--anim-delay, 0s), transform 0.5s ease var(--anim-delay, 0s);
}
.anim-ready.anim-in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   PREMIUM ENHANCEMENTS — v2.1 (agent upgrade)
   ============================================================= */

/* ----------------------------------------------------------
   gfo-pcard: scroll-triggered entrance animation
   ---------------------------------------------------------- */
.gfo-pcard {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease var(--pcard-delay, 0s),
    transform 0.55s ease var(--pcard-delay, 0s),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.gfo-pcard.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance delays */
.gfo-pcard:nth-child(1) { --pcard-delay: 0ms;   }
.gfo-pcard:nth-child(2) { --pcard-delay: 80ms;  }
.gfo-pcard:nth-child(3) { --pcard-delay: 160ms; }
.gfo-pcard:nth-child(4) { --pcard-delay: 240ms; }
.gfo-pcard:nth-child(5) { --pcard-delay: 320ms; }
.gfo-pcard:nth-child(6) { --pcard-delay: 400ms; }

/* ----------------------------------------------------------
   gfo-pcard.enterprise: shimmer border effect
   ---------------------------------------------------------- */
@keyframes borderShimmer {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

.gfo-pcard.enterprise {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.gfo-pcard.enterprise::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #1a6fe8 0%,
    #38bdf8 30%,
    #ffffff 50%,
    #38bdf8 70%,
    #1a6fe8 100%
  );
  background-size: 300% 300%;
  animation: borderShimmer 3.5s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------
   gfo-pcard-icon: rotate on hover
   ---------------------------------------------------------- */
.gfo-pcard-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gfo-pcard:hover .gfo-pcard-icon {
  transform: rotate(-8deg) scale(1.1);
}

/* ----------------------------------------------------------
   .faq-q — improved styling
   ---------------------------------------------------------- */
.faq-q {
  padding: 20px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}
.faq-q:hover {
  background: rgba(26, 111, 232, 0.06);
  color: #1a6fe8;
  box-shadow: 0 2px 8px rgba(26, 111, 232, 0.08);
}
.faq-item.open .faq-q {
  background: rgba(26, 111, 232, 0.08);
  color: #1a6fe8;
  border-radius: 10px 10px 0 0;
}

/* ----------------------------------------------------------
   .comuna-chip — refined typography
   ---------------------------------------------------------- */
.comuna-chip {
  letter-spacing: 0.01em;
  font-size: 0.8rem;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.comuna-chip:hover {
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   .review-card / .reviews — softer shadow
   ---------------------------------------------------------- */
.review-card {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.review-card:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.reviews {
  /* subtle section breathing room */
  padding-block: clamp(40px, 6vw, 80px);
}

/* ----------------------------------------------------------
   .btn — refined typography & feel
   ---------------------------------------------------------- */
.btn,
button.btn,
a.btn {
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.btn:hover,
button.btn:hover,
a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 111, 232, 0.25);
}
.btn:active,
button.btn:active,
a.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ----------------------------------------------------------
   .trust-item — brand color on hover
   ---------------------------------------------------------- */
.trust-item {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.trust-item:hover {
  color: #1a6fe8;
  transform: scale(1.03);
}

/* ----------------------------------------------------------
   Mobile refinements (<480px)
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .gfo-pcard-price {
    font-size: 1.8rem;
  }
  .gfo-pcard {
    /* reduce entrance distance on small screens */
    transform: translateY(16px);
  }
  .faq-q {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  .btn,
  button.btn,
  a.btn {
    font-size: 0.88rem;
  }
}

/* =============================================================
   END PREMIUM ENHANCEMENTS v2.1
   ============================================================= */

/* ===================================
   MOBILE FIX COMPLETO — gasfiteronline.cl
   Target: 390px (iPhone 14 Pro)
   Applied: 2026-06-27
   =================================== */

/* Global: evitar overflow horizontal */
html, body { overflow-x: hidden; max-width: 100%; }

/* Admin bar en mobile */
@media (max-width: 782px) {
  #wpadminbar { display: none !important; }
  html { margin-top: 0 !important; }
}

/* Proof bar top */
@media (max-width: 768px) {
  #gfo-proof-bar {
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
    text-align: center !important;
  }
}

/* HERO SECTION — contenedor y texto */
@media (max-width: 768px) {
  #inicio,
  .hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .hero h1 {
    font-size: clamp(1.45rem, 5.5vw, 2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  .hero .hero-lede {
    font-size: 0.9rem !important;
  }
  /* Botones hero en columna */
  .hero-ctas {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .hero-ctas .btn {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
}

/* URGENCY TICKER */
@media (max-width: 768px) {
  #gfo-urgency-ticker {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
  }
}

/* COUNTER STRIP — 2 cols en mobile, items sin border-right que rompe layout */
@media (max-width: 768px) {
  #gfo-counter-strip {
    padding: 28px 16px !important;
  }
  /* Forzar 2 columnas en el grid inline */
  #gfo-counter-strip > div > div {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }
  /* Reducir tamaño de números contador */
  #gfo-counter-strip .gfo-counter,
  #gfo-counter-strip div[style*="2.2rem"] {
    font-size: 1.65rem !important;
  }
  #gfo-counter-strip div[style*="0.75rem"] {
    font-size: 0.68rem !important;
  }
}
@media (max-width: 400px) {
  #gfo-counter-strip > div > div {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* SERVICIOS — cards en 1 col */
@media (max-width: 768px) {
  #servicios {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .svc-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* PRICING CARDS — quitar noindex de móvil */
@media (max-width: 600px) {
  #precios {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .gfo-pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .gfo-pcard {
    padding: 20px 18px 18px !important;
  }
}

/* COMO FUNCIONA — steps en 1 col en mobile
   (el grid inline ya se cambió a auto-fit, esto refuerza con CSS class) */
@media (max-width: 700px) {
  /* Ocultar línea conectora horizontal que no tiene sentido en 1 col */
  #gfo-como-grid .connector-line,
  section[style*="dbeafe"] > div > div > div[style*="absolute"][style*="height:2px"] {
    display: none !important;
  }
  /* Cualquier grid auto-fit de 240px → 1 col en pantallas pequeñas */
  div[style*="minmax(240px"] {
    grid-template-columns: 1fr !important;
  }
}

/* RESEÑAS / REVIEWS */
@media (max-width: 768px) {
  #resenas {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Rating bars box — ancho completo */
  #resenas > div > div[style*="max-width:420px"] {
    max-width: 100% !important;
    padding: 18px 16px !important;
  }
  /* Testimonials grid: auto-fit ya está en 260px, forzar 1 col en <560 */
  #resenas div[style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  #resenas div[style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* COMUNAS CHIPS */
@media (max-width: 768px) {
  #comunas {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .comunas-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .comuna-chip {
    font-size: 0.78rem !important;
    padding: 8px 10px !important;
  }
}

/* FAQ */
@media (max-width: 768px) {
  .faq-q {
    font-size: 0.88rem !important;
    padding: 13px 16px !important;
  }
  .faq-a {
    font-size: 0.85rem !important;
    padding: 10px 16px !important;
  }
}

/* FOOTER SEO */
@media (max-width: 600px) {
  #gfo-footer-seo > div[style*="grid"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  #gfo-footer-seo {
    padding: 28px 16px 20px !important;
  }
}
@media (max-width: 400px) {
  #gfo-footer-seo > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* GENERIC OVERRIDE: grids de 3 o 5 columnas fijas en inline style */
@media (max-width: 600px) {
  [style*="repeat(3,1fr)"],
  [style*="repeat(3, 1fr)"],
  [style*="repeat(5,1fr)"],
  [style*="repeat(5, 1fr)"] {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }
}

/* Imágenes responsive */
img {
  max-width: 100%;
  height: auto;
}

/* WhatsApp FAB — posición mobile */
@media (max-width: 768px) {
  #whatsapp-fab {
    bottom: 16px !important;
    right: 16px !important;
    width: 54px !important;
    height: 54px !important;
  }
}

/* Headings responsivos en mobile */
@media (max-width: 768px) {
  section h2[style*="1.85rem"],
  section > div > h2[style*="1.85rem"] {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem) !important;
    margin-bottom: 28px !important;
  }
}

/* Padding horizontal de secciones en general */
@media (max-width: 768px) {
  section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Trust strip — wrap en mobile */
@media (max-width: 600px) {
  .trust {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    padding: 12px 16px !important;
  }
  .trust-item {
    font-size: 0.75rem !important;
  }
}

/* Hero card form — ajustar en mobile */
@media (max-width: 900px) {
  .hero .hero-card {
    padding: 20px 16px !important;
  }
  .field.row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Sección precios — reducir gaps */
@media (max-width: 768px) {
  .gfo-pcard-features li {
    font-size: 0.82rem !important;
  }
  .gfo-pcard-price {
    font-size: 1.9rem !important;
  }
}

/* ===================================
   END MOBILE FIX — gasfiteronline.cl
   =================================== */
