/* ═══════════════════════════════════════════
   AMERICA GIS — Shared Stylesheet
   Font: Raleway (titles) + DM Sans (body)
   Brand: #2563eb (blue) / #f8faff (offwhite)
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #f8faff;
  color: #0f172a;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── CSS VARIABLES ── */
:root {
  --blue: #2563eb;
  --blue-dark: #1a4fd8;
  --blue-light: #3b82f6;
  --sky: #60a5fa;
  --offwhite: #f8faff;
  --white: #ffffff;
  --light-bg: #eef4ff;
  --lighter-bg: #f0f6ff;
  --text: #0f172a;
  --muted: #475569;
  --gray: #64748b;
  --border: rgba(37,99,235,0.12);
  --border-hover: rgba(37,99,235,0.28);
  --shadow-sm: 0 2px 12px rgba(37,99,235,0.06);
  --shadow-md: 0 8px 32px rgba(37,99,235,0.1);
  --shadow-lg: 0 20px 60px rgba(37,99,235,0.13);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p { color: var(--muted); line-height: 1.75; }
strong { color: var(--text); font-weight: 600; }

/* ── LAYOUT ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.8rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(37,99,235,0.3);
}
.btn-secondary:hover {
  border-color: var(--blue);
  background: rgba(37,99,235,0.05);
  color: var(--blue);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.15);
}
.card-icon-teal { background: rgba(14,165,233,0.07); border-color: rgba(14,165,233,0.2); }
.card-icon-purple { background: rgba(139,92,246,0.07); border-color: rgba(139,92,246,0.2); }
.card-icon-green { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.2); }

/* ── BADGE / TAG ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.22);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(14,165,233,0.07);
  border: 1px solid rgba(14,165,233,0.2);
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  margin: 0 0.3rem 0.4rem 0;
}

/* ── LINK ARROW ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.7rem; color: var(--blue); }

/* ── FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(37,99,235,0.15);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; cursor: pointer; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 3rem 0;
}

/* ── FAQ ACCORDION ── */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--blue); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ── STATS ROW ── */
.stats-row {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── SECTION BACKGROUNDS ── */
.bg-white { background: var(--white); }
.bg-offwhite { background: var(--offwhite); }
.bg-light { background: var(--light-bg); }
.bg-lighter { background: var(--lighter-bg); }
.bg-blue {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  color: #fff;
}
.bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue p { color: #fff; }
.bg-blue .section-label { color: rgba(255,255,255,0.7); }

/* ── HERO ORBS ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width:500px;height:500px;background:#93c5fd;opacity:0.28;top:-10%;right:5%; }
.orb-2 { width:350px;height:350px;background:#bfdbfe;opacity:0.22;bottom:5%;left:-5%;animation-delay:-3s; }
.orb-3 { width:250px;height:250px;background:#7dd3fc;opacity:0.14;top:40%;right:30%;animation-delay:-6s; }

/* ── HEADER / NAV ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37,99,235,0.08);
  transition: box-shadow 0.3s;
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(37,99,235,0.08);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--blue); }
.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--blue); background: rgba(37,99,235,0.06); }
.nav-links .chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
  opacity: 0.5;
}
.nav-links > li:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 680px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  display: none;
  gap: 1.5rem;
  z-index: 100;
}
/* Área invisible que conecta el <li> con el dropdown sin gap */
.nav-links > li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  z-index: 101;
}
.nav-dropdown.narrow { min-width: 360px; }
.nav-links > li.nav-open .nav-dropdown { display: grid; }
.nav-links > li:focus-within .nav-dropdown { display: grid; }
.nav-dropdown.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.nav-dropdown.cols-2 { grid-template-columns: 1fr 1fr; }
.nav-dropdown.cols-1 { grid-template-columns: 1fr; }

.dropdown-group h6 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dropdown-group ul { list-style: none; }
.dropdown-group ul li a {
  display: block;
  padding: 0.38rem 0;
  font-size: 0.83rem;
  color: var(--muted);
  transition: color 0.2s;
}
.dropdown-group ul li a:hover { color: var(--blue); }
.dropdown-group ul li a strong { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav-actions .btn-sm { font-size: 0.82rem; padding: 0.48rem 1.1rem; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem 5%;
  border-top: 1px solid var(--border);
}
#mobile-nav.open { display: block; }
.mobile-nav-links { list-style: none; }
.mobile-nav-links > li { border-bottom: 1px solid var(--border); }
.mobile-nav-links > li > a {
  display: block;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}
.mobile-nav-sub { list-style: none; padding: 0 0 0.8rem 1rem; }
.mobile-nav-sub li a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.mobile-nav-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ── PAGE HERO (shared inner pages) ── */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 40%, #dbeafe 100%);
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero p { font-size: 1.05rem; max-width: 540px; margin-bottom: 2rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { opacity: 0.5; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #1e40af 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
#site-footer {
  background: #e8f0fe;
  border-top: 1px solid rgba(37,99,235,0.12);
  padding: 3.5rem 0 0;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.footer-brand-logo span { color: var(--blue); }
.footer-brand-logo img { height: 36px; width: auto; }
.footer-desc { font-size: 0.83rem; line-height: 1.75; color: var(--muted); margin-bottom: 1.2rem; }
.footer-contact { font-size: 0.8rem; color: var(--muted); line-height: 2; }
.footer-contact strong { color: var(--text); display: block; margin-top: 0.5rem; }
.footer-contact a { color: var(--blue); }

.footer-col h5 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  max-width: 1180px;
  margin: 2.5rem auto 0;
  padding: 1.4rem 5%;
  border-top: 1px solid rgba(37,99,235,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-bottom p { font-size: 0.77rem; color: var(--muted); }
.footer-certs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cert-mini {
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 0.18rem 0.6rem;
  border-radius: 5px;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── WHATSAPP BUTTON ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 26px; height: 26px; fill: white; }

/* ── RUBRO CARDS ── */
.rubro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.rubro-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-sm);
}
.rubro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.rubro-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 9px; }
.rubro-card h4 { font-size: 0.95rem; color: var(--text); }
.rubro-card p { font-size: 0.82rem; color: var(--muted); }

/* ── BENEFIT ITEMS ── */
.benefit-list { display: flex; flex-direction: column; gap: 1rem; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.benefit-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.benefit-item h4 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.benefit-item p { font-size: 0.83rem; color: var(--muted); margin: 0; }

/* ── CERTIFICATIONS ── */
.certs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.cert-badge:hover { opacity: 1; }
.cert-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.cert-name { font-size: 0.68rem; color: var(--muted); font-weight: 600; text-align: center; }

/* ── ANIMATIONS ── */
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.04); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes barGrow {
  from { width: 0 !important; }
}

.anim-fadeup { animation: fadeUp 0.6s ease both; }
.anim-fadeup-1 { animation: fadeUp 0.6s 0.1s ease both; }
.anim-fadeup-2 { animation: fadeUp 0.6s 0.2s ease both; }
.anim-fadeup-3 { animation: fadeUp 0.6s 0.3s ease both; }
.anim-fadeup-4 { animation: fadeUp 0.6s 0.4s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .rubro-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .rubro-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 1.5rem; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .certs-row { gap: 1.5rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 6rem 0 3rem; }
}


/* ═══════════════════════════════════════
   MOBILE RESPONSIVE — SINGLE CLEAN BLOCK
═══════════════════════════════════════ */

/* Orbs — hide on mobile, they cause overflow */
@media (max-width: 1024px) {
  .orb { display: none !important; }
  
  .nav-links, .nav-actions { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* 2-col hero grids → 1 col */
  [style*="grid-template-columns:1fr 400px"],
  [style*="grid-template-columns: 1fr 400px"],
  [style*="grid-template-columns:1.1fr 0.9fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  .hero-rubro-inner,
  .hero-soft-inner,
  .hero-agro-inner,
  .hero-ia-inner {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* All 2-col content grids */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* 3+ col grids → 2 col */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Steps */
  .steps-grid, .proceso-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .steps-grid::before, .proceso-grid::before { display: none; }

  /* Sticky forms → relative */
  [style*="position:sticky"],
  [style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* Feature panels */
  .feature-panel.active { grid-template-columns: 1fr !important; }

  /* Tabs vertical → block */
  [style*="grid-template-columns:280px"] {
    display: block !important;
  }

  /* Phone mockups */
  .phone-mockup { max-width: 220px !important; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr !important; gap: 2rem !important; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden !important; }
  section, .container { max-width: 100vw; overflow-x: hidden; }
  
  /* ALL multi-col → 1 col */
  [style*="grid-template-columns:repeat("],
  [style*="grid-template-columns: repeat("],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  .grid-3, .grid-4, .steps-grid, .proceso-grid {
    grid-template-columns: 1fr !important;
  }

  /* Form rows */
  .form-row-2,
  [style*="grid-template-columns:1fr 1fr;gap:0.8rem"],
  [style*="grid-template-columns:1fr 1fr;gap:1rem"] {
    grid-template-columns: 1fr !important;
  }

  /* User tabs vertical */
  .user-tabs { flex-direction: column; }
  .user-tab { min-width: 100% !important; }

  /* Stats wrap */
  .stats-row { flex-wrap: wrap !important; gap: 1rem !important; }

  /* CTA buttons stack */
  .cta-banner-actions {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }
  .cta-banner-actions .btn { width: 80%; justify-content: center; text-align: center; }

  /* Hero buttons stack */
  [style*="display:flex;gap:1rem;flex-wrap:wrap"],
  [style*="display: flex; gap: 1rem; flex-wrap: wrap"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Reduce padding */
  .section { padding: 3rem 0 !important; }
  .page-hero,
  [class*="hero-"] { padding-top: 5.5rem !important; padding-bottom: 2rem !important; }
  
  /* Gaps smaller */
  [style*="gap:4rem"], [style*="gap: 4rem"] { gap: 2rem !important; }
  [style*="gap:3rem"], [style*="gap: 3rem"] { gap: 1.5rem !important; }

  /* Images */
  img { max-width: 100% !important; }
  [style*="max-height:500px"], [style*="max-height:480px"],
  [style*="max-height:420px"], [style*="max-height:380px"] {
    max-height: 250px !important;
  }

  /* Nav */
  .nav-inner { height: 60px !important; }

  /* Hide hero image on index */
  .hero-home-visual { display: none !important; }
  .hero-home-inner { grid-template-columns: 1fr !important; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.72rem; flex-wrap: wrap; }

  /* Footer 1 col */
  .footer-inner { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* WhatsApp float */
  .whatsapp-float { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }

  /* Table scroll */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  /* Dark section cards stay 2-col */
  [style*="background:rgba(255,255,255,0.06)"] {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }
  .container { padding: 0 4% !important; }
  .card { padding: 1.2rem; }
  .btn-lg { padding: 0.75rem 1.4rem !important; font-size: 0.88rem !important; }
  .stat-number { font-size: 1.5rem !important; }
  .faq-item summary { padding: 1rem; font-size: 0.88rem; }
  .faq-item p { padding: 0 1rem 1rem; font-size: 0.83rem; }
  [style*="padding:2.5rem"], [style*="padding: 2.5rem"] { padding: 1.3rem !important; }
  [style*="padding:2rem"], [style*="padding: 2rem"] { padding: 1.2rem !important; }
  .section { padding: 2.5rem 0 !important; }
}


/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — SINGLE SOURCE OF TRUTH
═══════════════════════════════════════════ */

/* ── Orbs: hide on mobile, prevent overflow ── */
@media (max-width: 1024px) {
  .orb { display: none !important; }
}

/* ── 1024px: Tablet ── */
@media (max-width: 1024px) {
  /* Desktop nav hidden */
  .nav-links, .nav-actions { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Grid utilities collapse */
  .grid-2 { grid-template-columns: 1fr !important; gap: 2rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .rubro-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-inner { grid-template-columns: 1fr 1fr !important; gap: 2rem; }

  /* Hero home */
  .hero-home-inner { grid-template-columns: 1fr !important; }
  .hero-home-visual { display: none !important; }

  /* Feature panels */
  .feature-panel.active { grid-template-columns: 1fr !important; }
  .phone-mockup { max-width: 220px !important; }

  /* Steps */
  .steps-grid, .proceso-grid { grid-template-columns: 1fr 1fr !important; }
  .steps-grid::before, .proceso-grid::before { display: none; }

  /* Tabs vertical -> stacked */
  .ia-grid { grid-template-columns: 1fr !important; }
}

/* ── 768px: Mobile ── */
@media (max-width: 768px) {
  /* Body no horizontal scroll */
  html, body { overflow-x: hidden !important; }

  /* ALL inline grids → 1 column via attribute selectors */
  [style*="grid-template-columns:1fr 400px"],
  [style*="grid-template-columns: 1fr 400px"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns: 1fr auto"],
  [style*="grid-template-columns:1.1fr 0.9fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  [style*="grid-template-columns:280px 1fr"],
  [style*="grid-template-columns: 280px 1fr"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* 3-col grids → 1 col */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* 4-col grids → 2 col */
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  .grid-4 {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Form row 2 col → 1 */
  .form-row-2,
  [style*="grid-template-columns:1fr 1fr;gap:0.8rem"],
  [style*="grid-template-columns:1fr 1fr;gap:1rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Sticky forms → relative */
  [style*="position:sticky"],
  [style*="position: sticky"] {
    position: relative !important;
    top: auto !important;
  }

  /* Hero padding */
  .hero-home, .page-hero, .hero-rubro, .hero-soft, .hero-agro,
  .hero-ventas, .hero-ia, .hero-contacto, .hero-service,
  section[class*="hero"] {
    padding: 5.5rem 0 2rem !important;
  }

  /* Section padding */
  .section { padding: 2.5rem 0 !important; }

  /* Gap reductions */
  [style*="gap:4rem"], [style*="gap: 4rem"] { gap: 2rem !important; }
  [style*="gap:3rem"], [style*="gap: 3rem"] { gap: 1.5rem !important; }

  /* All images constrained */
  img { max-width: 100% !important; }
  [style*="max-height:500px"], [style*="max-height:480px"],
  [style*="max-height:420px"], [style*="max-height:380px"] {
    max-height: 260px !important;
  }

  /* Stats row */
  .stats-row { flex-wrap: wrap !important; gap: 1.2rem !important; }

  /* CTA buttons stack */
  .cta-banner-actions {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }
  .cta-banner-actions .btn { width: 100%; justify-content: center; }

  /* User tabs stack */
  .user-tabs { flex-direction: column !important; }
  .user-tab { min-width: 100% !important; }

  /* Rubro tabs horizontal scroll */
  .rubro-tab { min-width: 140px !important; white-space: nowrap; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.72rem; flex-wrap: wrap; }

  /* Nav */
  .nav-inner { height: 60px; }

  /* WhatsApp float */
  .whatsapp-float { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }

  /* Max-width containers */
  [style*="max-width:900px"], [style*="max-width:1000px"],
  [style*="max-width:1180px"], [style*="max-width: 900px"],
  [style*="max-width: 1000px"] {
    max-width: 100% !important;
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  /* Buttons stack in hero */
  div[style*="display:flex"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  div[style*="display:flex"][style*="flex-wrap:wrap"] .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Mobile nav */
  #mobile-nav {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(37,99,235,0.08);
  }
  #mobile-nav.open { display: block !important; }
  .mobile-nav-sub { display: none; }
}

/* ── 480px: Small phone ── */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }
  .container { padding: 0 4% !important; }
  .section { padding: 2rem 0 !important; }

  .grid-4, [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  .card { padding: 1.2rem; }
  [style*="padding:2.5rem"], [style*="padding: 2.5rem"] { padding: 1.2rem !important; }
  [style*="padding:2rem"], [style*="padding: 2rem"] { padding: 1rem !important; }

  .btn-lg { padding: 0.75rem 1.4rem !important; font-size: 0.88rem !important; }
  .stat-number { font-size: 1.5rem !important; }

  .faq-item summary { padding: 0.9rem 1rem; font-size: 0.85rem; }
  .faq-item p { padding: 0 1rem 0.9rem; font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════
   MOBILE FIXES — April 2026 patch
═══════════════════════════════════════════ */

/* ── Fix: Badge "40 años" overlapping text on mobile (index.html) ── */
@media (max-width: 768px) {
  /* Nosotros section: stack images/text and contain badge */
  [style*="position:absolute"][style*="bottom:-1.8rem"] {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-top: 0.5rem;
  }
  [style*="position:absolute"][style*="top:1.5rem"][style*="left:1.5rem"] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0.8rem;
    display: inline-flex !important;
  }
  /* Fix image height on mobile */
  [style*="height:380px"][style*="object-fit:cover"] {
    height: 220px !important;
  }

  /* ── Fix: Scoring section 2-col grid overflow ── */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:4rem"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap:4rem"],
  [style*="grid-template-columns:1fr 1fr"][style*="gap:5rem"],
  [style*="grid-template-columns: 1fr 1fr"][style*="gap:5rem"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* ── Fix: Form card (ERP, AGIS Ventas) overflow ── */
  [style*="grid-template-columns:1fr 400px"],
  [style*="grid-template-columns: 1fr 400px"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  [style*="position:sticky"][style*="top:90px"] {
    position: relative !important;
    top: auto !important;
  }
  
  /* ── Fix: Dashcams section grid ── */
  [style*="grid-template-columns:1.2fr 0.8fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns:0.8fr 1.2fr"],
  [style*="grid-template-columns: 0.8fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Fix: Plans table horizontal scroll on mobile ── */
  [style*="overflow-x:auto"] {
    -webkit-overflow-scrolling: touch;
  }
  table[style*="min-width:560px"] {
    min-width: 480px !important;
    font-size: 0.78rem;
  }

  /* ── Fix: All remaining 2-col inline grids ── */
  div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Fix: Section with position:relative that clips content ── */
  section[style*="overflow:hidden"] {
    overflow: visible !important;
  }
  
  /* ── Fix: Mobile nav visibility and scroll ── */
  #mobile-nav {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3rem !important;
  }
  
  /* ── Fix: Ensure all containers don't overflow ── */
  .container, section, div[style*="max-width:1180px"] {
    max-width: 100vw !important;
    overflow-x: hidden;
  }
  
  /* ── Fix: AGIS Ventas / Integración section cards grid ── */
  div[style*="display:grid"][style*="gap:0.8rem"][style*="margin-bottom:2rem"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* ── Fix: 2x2 stat grids → 1 col on small phones ── */
  div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"][style*="gap:1rem"] {
    grid-template-columns: 1fr !important;
  }
}
