/* ═══════════════════════════════════════════════════════════
   Grupo AMS — Styles
   Advanced Measurement System · grupoams.co
   ═══════════════════════════════════════════════════════════ */

/* ─── BRAND TOKENS (Brand Book AMS) ──────────────────────── */
:root {
  --ams-navy:    #2C2D85;
  --ams-sky:     #268ECD;
  --ams-purple:  #731D81;
  --ams-magenta: #A2007C;
  --ams-orange:  #F9B233;
  --ams-white:   #FFFFFF;
  --ams-gray-1:  #A0A0A0;
  --ams-gray-2:  #D0D2D3;
  --ams-bg:      #F5F5F7;
  --ams-text:    #1D1D1F;
  --ams-text-2:  #6E6E73;
  --ams-border:  #D2D2D7;
  --r: 14px;
}

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

body {
  font-family: 'Comfortaa', -apple-system, 'SF Pro Text', sans-serif;
  background: var(--ams-white);
  color: var(--ams-text);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Comfortaa', sans-serif;
  letter-spacing: -0.02em;
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

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

/* Scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   1. NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ams-text);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ams-navy);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ams-navy);
  border-radius: 1px;
}

.nav-links a.smarti-link {
  color: var(--ams-navy);
  font-weight: 600;
}

.nav-cta {
  background: var(--ams-navy);
  color: white !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--ams-sky) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 110;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ams-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════
   2. HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background: var(--ams-white);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,142,205,0.06) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44,45,133,0.07);
  border: 1px solid rgba(44,45,133,0.15);
  color: var(--ams-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ams-orange), var(--ams-magenta));
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ams-text);
  max-width: 800px;
  margin: 0 auto 22px;
}

.hero h1 .blue { color: var(--ams-navy); }
.hero h1 .sky  { color: var(--ams-sky); }

.hero-sub {
  font-size: 19px;
  color: var(--ams-text-2);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-fill {
  background: var(--ams-navy);
  color: white;
  padding: 14px 28px;
  border-radius: 980px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}

.btn-fill:hover {
  background: var(--ams-sky);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--ams-navy);
  padding: 14px 28px;
  border-radius: 980px;
  border: 1.5px solid var(--ams-navy);
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(44,45,133,0.06);
}

/* Hero Dashboard */
.hero-dashboard-wrap {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.hero-dashboard {
  background: var(--ams-white);
  border-radius: 20px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06), 0 8px 40px rgba(0,0,0,0.12), 0 32px 80px rgba(44,45,133,0.08);
  overflow: hidden;
  border: 1px solid var(--ams-border);
}

.dash-titlebar {
  background: linear-gradient(90deg, var(--ams-navy) 0%, var(--ams-sky) 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-dots { display: flex; gap: 6px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dd-red   { background: #FF5F57; }
.dd-yel   { background: #FEBC2E; }
.dd-grn   { background: #28C840; }

.dash-app-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
}

.dash-status {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28C840;
}

/* Captura real de SmarTi en el hero */
.dash-screenshot {
  background: var(--ams-white);
  line-height: 0;
}
.dash-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.dash-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.dash-kpi {
  background: var(--ams-bg);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
}

.dash-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ams-text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.dash-kpi-val {
  font-family: 'Comfortaa', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ams-navy);
  line-height: 1;
}

.dash-kpi-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--ams-text-2);
}

.dash-kpi-delta {
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delta-up   { color: #1D9A5A; }
.delta-down { color: #E84040; }

.dash-chart-row {
  grid-column: 1 / -1;
  background: var(--ams-bg);
  border-radius: 12px;
  padding: 16px;
}

.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dash-chart-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ams-text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dash-chart-period {
  font-size: 11px;
  color: var(--ams-text-2);
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}

.dbar {
  flex: 1;
  border-radius: 4px 4px 0 0;
}

.dash-actions-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dash-action-btn {
  background: white;
  border: 1.5px solid var(--ams-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ams-navy);
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dash-action-btn.primary {
  background: var(--ams-navy);
  color: white;
  border-color: var(--ams-navy);
}

/* ═══════════════════════════════════════════════════════════
   3. CIFRAS STRIP
   ═══════════════════════════════════════════════════════════ */
.cifras-strip {
  background: var(--ams-bg);
  border-top: 1px solid var(--ams-border);
  border-bottom: 1px solid var(--ams-border);
  padding: 44px 24px;
}

.cifras-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cifra-item {
  text-align: center;
  padding: 0 20px;
  border-right: 1px solid var(--ams-border);
}

.cifra-item:last-child { border-right: none; }

.cifra-num {
  font-family: 'Comfortaa', sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cifra-num.navy    { color: var(--ams-navy); }
.cifra-num.sky     { color: var(--ams-sky); }
.cifra-num.magenta { color: var(--ams-magenta); }

.cifra-label {
  font-size: 13px;
  color: var(--ams-text-2);
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════
   4. SEGMENTACIÓN
   ═══════════════════════════════════════════════════════════ */
.seg-section { padding: 90px 24px; background: var(--ams-white); }

.section-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ams-sky);
  margin-bottom: 12px;
}

.section-h2 {
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ams-text);
  margin-bottom: 14px;
  line-height: 1.1;
}

.section-sub {
  text-align: center;
  font-size: 17px;
  color: var(--ams-text-2);
  max-width: 520px;
  margin: 0 auto 52px;
  font-weight: 300;
  line-height: 1.6;
}

.seg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.seg-card {
  background: var(--ams-bg);
  border: 1px solid var(--ams-border);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.seg-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 18px 18px;
}

.seg-card.energia::after { background: linear-gradient(90deg, var(--ams-orange), var(--ams-magenta)); }
.seg-card.agua::after    { background: linear-gradient(90deg, var(--ams-sky), var(--ams-navy)); }
.seg-card.gas::after     { background: linear-gradient(90deg, var(--ams-purple), var(--ams-magenta)); }

.seg-card:hover {
  background: white;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: transparent;
}

.seg-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.seg-icon-wrap.energia { background: linear-gradient(135deg, rgba(249,178,51,0.2), rgba(162,0,124,0.1)); }
.seg-icon-wrap.agua    { background: linear-gradient(135deg, rgba(38,142,205,0.2), rgba(44,45,133,0.1)); }
.seg-icon-wrap.gas     { background: linear-gradient(135deg, rgba(115,29,129,0.2), rgba(162,0,124,0.1)); }

.seg-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ams-text);
  margin-bottom: 10px;
}

.seg-card p {
  font-size: 14px;
  color: var(--ams-text-2);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}

.seg-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ams-sky);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.seg-link:hover { color: var(--ams-navy); }

/* ═══════════════════════════════════════════════════════════
   5. SMARTI
   ═══════════════════════════════════════════════════════════ */
.smarti-section {
  padding: 90px 24px;
  background: var(--ams-bg);
  overflow: hidden;
}

.smarti-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.smarti-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ams-sky);
  margin-bottom: 16px;
}

.smarti-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ams-sky), var(--ams-navy));
}

.smarti-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ams-text);
  margin-bottom: 18px;
}

.smarti-section h2 span { color: var(--ams-navy); }

.smarti-section .smarti-content p {
  font-size: 16px;
  color: var(--ams-text-2);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 300;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ams-text);
  font-weight: 400;
}

.feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ams-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
  color: white;
}

.smarti-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* SmarTi Phone Visual */
.smarti-visual { position: relative; }

.smarti-phone {
  background: var(--ams-white);
  border-radius: 24px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.07), 0 16px 60px rgba(44,45,133,0.12), 0 40px 100px rgba(0,0,0,0.08);
  border: 1px solid var(--ams-border);
  overflow: hidden;
}

.phone-header {
  background: linear-gradient(135deg, var(--ams-navy) 0%, var(--ams-sky) 100%);
  padding: 16px 18px 14px;
}

.phone-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.phone-logo {
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.phone-logo span {
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.phone-live {
  background: rgba(255,255,255,0.15);
  font-size: 10px;
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #28C840;
}

.phone-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.phone-kpi {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.phone-kpi-v {
  font-family: 'Comfortaa', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.phone-kpi-l {
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.phone-body { padding: 16px 18px; }

.phone-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ams-text-2);
  margin-bottom: 10px;
}

.phone-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  margin-bottom: 16px;
}

.pbar {
  border-radius: 3px 3px 0 0;
  flex: 1;
}

.phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.phone-btn {
  padding: 9px;
  border-radius: 10px;
  font-size: 11px;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.phone-btn.prim { background: var(--ams-navy); color: white; }
.phone-btn.sec  { background: var(--ams-bg); color: var(--ams-navy); border: 1px solid var(--ams-border); }

.phone-alerts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ams-bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.alert-icon.ok   { background: rgba(29,154,90,0.12); }
.alert-icon.warn { background: rgba(249,178,51,0.15); }

.alert-text { flex: 1; }
.alert-title { font-size: 12px; font-weight: 600; color: var(--ams-text); }
.alert-sub   { font-size: 10px; color: var(--ams-text-2); }
.alert-time  { font-size: 10px; color: var(--ams-text-2); }

/* ═══════════════════════════════════════════════════════════
   6. TRUST / TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.trust-section { padding: 90px 24px; background: var(--ams-white); }

.trust-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.testimonial-card {
  background: var(--ams-bg);
  border: 1px solid var(--ams-border);
  border-radius: 18px;
  padding: 28px 28px 24px;
  position: relative;
}

.test-quote {
  font-size: 40px;
  line-height: 1;
  color: var(--ams-navy);
  opacity: 0.15;
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: Georgia, serif;
}

.testimonial-card p {
  font-size: 15px;
  color: var(--ams-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 300;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ams-navy), var(--ams-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.test-name { font-size: 14px; font-weight: 600; color: var(--ams-text); }
.test-role { font-size: 12px; color: var(--ams-text-2); }

.cert-card {
  grid-column: 1 / -1;
  background: var(--ams-bg);
  border: 1px solid var(--ams-border);
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cert-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ams-text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-pill {
  background: white;
  border: 1px solid var(--ams-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ams-navy);
}

/* ═══════════════════════════════════════════════════════════
   7. CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--ams-navy) 0%, #1a1b6e 100%);
  text-align: center;
}

.cta-section .section-eyebrow { color: rgba(255,255,255,0.5); }
.cta-section .section-h2 { color: white; }
.cta-section .section-sub { color: rgba(255,255,255,0.5); }

.cta-cards-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cta-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: left;
  transition: all 0.3s;
}

.cta-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.cta-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.cta-card-icon.a { background: rgba(249,178,51,0.2); }
.cta-card-icon.b { background: rgba(38,142,205,0.2); }
.cta-card-icon.c { background: rgba(115,29,129,0.2); }

.cta-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 300;
}

.cta-btn {
  display: block;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-btn:hover {
  background: var(--ams-sky);
  border-color: var(--ams-sky);
}

/* ═══════════════════════════════════════════════════════════
   8. BLOG
   ═══════════════════════════════════════════════════════════ */
.blog-section { padding: 90px 24px; background: var(--ams-bg); }

.blog-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

.blog-card {
  background: white;
  border: 1px solid var(--ams-border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: transparent;
}

.blog-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.blog-thumb.h1 { height: 200px; }
.blog-thumb.h2 { height: 150px; }
.blog-thumb.energia { background: linear-gradient(135deg, var(--ams-orange), #c94b10); }
.blog-thumb.agua    { background: linear-gradient(135deg, var(--ams-sky), var(--ams-navy)); }
.blog-thumb.reg     { background: linear-gradient(135deg, var(--ams-purple), var(--ams-navy)); }

.blog-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
}

.blog-tag-pill.energia { background: rgba(0,0,0,0.35); }
.blog-tag-pill.agua    { background: rgba(0,0,0,0.3); }
.blog-tag-pill.reg     { background: rgba(0,0,0,0.3); }

.blog-body { padding: 20px 22px 22px; }

.blog-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ams-navy), var(--ams-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-au-name { font-size: 12px; font-weight: 600; color: var(--ams-text); }
.blog-au-role { font-size: 11px; color: var(--ams-text-2); }

.blog-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ams-text);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.blog-card p {
  font-size: 13px;
  color: var(--ams-text-2);
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 300;
}

.blog-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--ams-sky);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-read:hover { color: var(--ams-navy); }

/* ═══════════════════════════════════════════════════════════
   9. CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-section { padding: 90px 24px; background: var(--ams-white); }

.contact-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ams-text);
  margin-bottom: 14px;
  line-height: 1.1;
}

.contact-info > p {
  font-size: 15px;
  color: var(--ams-text-2);
  line-height: 1.7;
  margin-bottom: 30px;
  font-weight: 300;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ams-bg);
  border: 1px solid var(--ams-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.contact-item-txt strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ams-text-2);
  margin-bottom: 2px;
}

.contact-item-txt span {
  font-size: 14px;
  color: var(--ams-text);
}

.contact-item-txt a {
  color: var(--ams-sky);
  text-decoration: none;
}

.contact-item-txt a:hover { text-decoration: underline; }

.promise-badge {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(29,154,90,0.08);
  border: 1px solid rgba(29,154,90,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: #1D9A5A;
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  background: var(--ams-bg);
  border: 1px solid var(--ams-border);
  border-radius: 20px;
  padding: 32px;
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ams-text);
  margin-bottom: 4px;
}

.form-sub {
  font-size: 14px;
  color: var(--ams-text-2);
  margin-bottom: 24px;
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ams-text-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--ams-border);
  border-radius: 10px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 14px;
  color: var(--ams-text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ams-sky);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #E84040;
}

.form-group .error-msg {
  font-size: 11px;
  color: #E84040;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--ams-navy);
  color: white;
  border: none;
  border-radius: 980px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--ams-sky);
  transform: scale(1.01);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .check-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(29,154,90,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.form-success h3 {
  font-size: 20px;
  color: var(--ams-text);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--ams-text-2);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--ams-text);
  padding: 52px 24px 28px;
  color: rgba(255,255,255,0.5);
}

.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand-name {
  font-family: 'Comfortaa', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer-brand-name span { color: var(--ams-sky); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 300;
}

.footer-col ul li a:hover { color: white; }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px;
}

.footer-socials { display: flex; gap: 8px; }

.soc-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.soc-btn:hover {
  background: var(--ams-navy);
  color: white;
}

/* Brand icons */
.bk-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.bk-icon.energia { background: linear-gradient(135deg, var(--ams-orange), #e06010); }
.bk-icon.agua    { background: linear-gradient(135deg, var(--ams-sky), var(--ams-navy)); }
.bk-icon.gas     { background: linear-gradient(135deg, var(--ams-purple), var(--ams-magenta)); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px - 1024px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { padding: 80px 24px 60px; }

  .hero h1 { font-size: clamp(32px, 5vw, 56px); }

  .dash-body { gap: 10px; }
  .dash-kpi-val { font-size: 22px; }
  .dash-status { display: none; }

  .seg-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .seg-card:last-child { grid-column: 1 / -1; }

  .smarti-inner { gap: 40px; }

  .trust-grid { gap: 16px; }

  .cta-cards-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-cards-grid .cta-card:last-child { grid-column: 1 / -1; }

  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .blog-card:first-child { grid-column: 1 / -1; }
  .blog-thumb.h2 { height: 130px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (<768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  body { font-size: 15px; }

  /* Nav mobile */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 18px;
    font-weight: 600;
  }

  .nav-cta { display: none; }
  .nav-links.open + .nav-cta-mobile {
    display: block;
  }

  /* Hero mobile */
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: clamp(28px, 8vw, 44px); }
  .hero-sub { font-size: 16px; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-fill, .btn-outline { width: 100%; max-width: 300px; text-align: center; }

  .hero-dashboard-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero-dashboard { min-width: 600px; }

  /* Cifras mobile */
  .cifras-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .cifra-item { border-right: none; padding: 12px 10px; }
  .cifra-item:nth-child(odd) { border-right: 1px solid var(--ams-border); }
  .cifra-num { font-size: 32px; }
  .cifra-label { font-size: 12px; }

  /* Segmentation mobile */
  .seg-section { padding: 60px 20px; }
  .seg-grid { grid-template-columns: 1fr; gap: 16px; }

  .section-h2 { font-size: clamp(24px, 6vw, 36px); }
  .section-sub { font-size: 15px; margin-bottom: 36px; }

  /* SmarTi mobile */
  .smarti-section { padding: 60px 20px; }
  .smarti-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .smarti-visual { order: -1; }
  .smarti-phone { border-radius: 18px; }

  .smarti-ctas { flex-direction: column; }
  .smarti-ctas .btn-fill,
  .smarti-ctas .btn-outline { width: 100%; text-align: center; }

  /* Trust mobile */
  .trust-section { padding: 60px 20px; }
  .trust-grid { grid-template-columns: 1fr; }

  /* CTA mobile */
  .cta-section { padding: 60px 20px; }
  .cta-cards-grid { grid-template-columns: 1fr; }

  /* Blog mobile */
  .blog-section { padding: 60px 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-thumb.h1, .blog-thumb.h2 { height: 160px; }

  /* Contact mobile */
  .contact-section { padding: 60px 20px; }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  /* Footer mobile */
  footer { padding: 40px 20px 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════════════
   AMS Web Guardian — Parche 2026-04-21
   Skip-link / Banner cookies / Botón WhatsApp / Checkbox Ley 1581
   ════════════════════════════════════════════════════════════ */

/* Skip-link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--navy, #2C2D85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10000;
  font-size: 0.95rem;
}
.skip-link:focus {
  left: 16px;
  outline: 3px solid var(--orange, #F9B233);
  outline-offset: 2px;
}

/* Checkbox de consentimiento Ley 1581 en formulario */
.form-group-check { margin-top: 8px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text, #1E1E20);
  line-height: 1.45;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--sky, #268ECD);
}
.form-check a { color: var(--sky, #268ECD); text-decoration: underline; }
.form-check a:hover { color: var(--navy, #2C2D85); }
.form-group-check.error .form-check span { color: #C03A2B; }
.form-group-check.error input[type="checkbox"] { outline: 2px solid #C03A2B; outline-offset: 2px; }

/* Banner de cookies */
.cookies-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text, #1E1E20);
  border: 1px solid var(--border, #E4E6EF);
  border-left: 4px solid var(--sky, #268ECD);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(30, 30, 60, 0.18);
  padding: 18px 20px;
  z-index: 9998;
  font-size: 0.93rem;
  animation: ams-fade-up .4s ease-out;
}
.cookies-banner[hidden] { display: none !important; }
.cookies-banner__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookies-banner p { margin: 0; line-height: 1.5; }
.cookies-banner a { color: var(--sky, #268ECD); text-decoration: underline; font-weight: 600; }
.cookies-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-fill-sm, .btn-outline-sm {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-fill-sm {
  background: var(--navy, #2C2D85);
  color: #fff;
}
.btn-fill-sm:hover { background: #232377; transform: translateY(-1px); }
.btn-outline-sm {
  background: #fff;
  border-color: var(--border, #E4E6EF);
  color: var(--text, #1E1E20);
}
.btn-outline-sm:hover { border-color: var(--navy, #2C2D85); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  z-index: 9997;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55);
}
.wa-float:focus-visible {
  outline: 3px solid var(--orange, #F9B233);
  outline-offset: 3px;
}

@keyframes ams-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Banner responsive: acciones en fila ancha */
@media (min-width: 640px) {
  .cookies-banner__body { flex-direction: row; align-items: center; }
  .cookies-banner__body p { flex: 1; }
}

/* Al abrir banner dejar espacio al WhatsApp */
.cookies-banner:not([hidden]) ~ .wa-float,
body:has(.cookies-banner:not([hidden])) .wa-float {
  bottom: calc(20px + 0px); /* se mantiene, el banner queda arriba de WhatsApp */
}

/* Blog links marcados como próximamente */
.blog-read--coming {
  color: var(--text-2, #6E6E73);
  font-style: italic;
  display: inline-block;
  padding: 6px 10px;
  background: #f4f5fb;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0.85;
  cursor: not-allowed;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════
   AMS Web Guardian · Fase A · Páginas de producto
   energia.html · agua.html · gas.html
   ════════════════════════════════════════════════════════════ */

/* Variables por vertical — reutilizan los tokens del root */
.vertical-energia { --v-grad-start: #F9B233; --v-grad-end: #A2007C; --v-accent: #F9B233; }
.vertical-agua    { --v-grad-start: #268ECD; --v-grad-end: #2C2D85; --v-accent: #268ECD; }
.vertical-gas     { --v-grad-start: #731D81; --v-grad-end: #A2007C; --v-accent: #F9B233; }

/* Hero de página de producto */
.product-hero {
  background: linear-gradient(135deg, var(--v-grad-start), var(--v-grad-end));
  color: #fff;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.product-hero__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.product-hero__eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.product-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
}
.product-hero h1 .accent { color: var(--v-accent); }
.product-hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0 0 36px;
}
.product-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.product-hero__ctas .btn-fill {
  background: #fff;
  color: var(--navy, #2C2D85);
}
.product-hero__ctas .btn-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.product-hero__ctas .btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
}
.product-hero__ctas .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* Secciones generales */
.product-section { padding: 72px 24px; }
.product-section__inner { max-width: 1120px; margin: 0 auto; }
.product-section--gray { background: #F4F5FB; }
.product-section__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky, #268ECD);
  font-weight: 700;
  margin-bottom: 10px;
}
.product-section__h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy, #2C2D85);
  margin: 0 0 10px;
  line-height: 1.2;
}
.product-section__sub {
  font-size: 1rem;
  color: var(--text-2, #6E6E73);
  max-width: 760px;
  margin: 0 0 36px;
  line-height: 1.55;
}

/* Grid de product-cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border, #E4E6EF);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30,30,60,0.1);
  border-color: var(--v-accent, var(--sky));
}
.product-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(38,142,205,0.12);
  color: var(--sky, #268ECD);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.product-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card__title {
  font-size: 1.2rem;
  color: var(--navy, #2C2D85);
  margin: 0 0 6px;
  line-height: 1.25;
}
.product-card__subtitle {
  font-size: 0.9rem;
  color: var(--text-2, #6E6E73);
  margin: 0 0 14px;
  line-height: 1.45;
}
.product-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text, #1E1E20);
  line-height: 1.6;
}
.product-card__specs li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}
.product-card__specs li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--v-accent, var(--sky, #268ECD));
  font-weight: 700;
}
.product-card__ctas {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__ctas .btn-fill-sm,
.product-card__ctas .btn-outline-sm { flex: 1; text-align: center; text-decoration: none; }

/* Franja de certificaciones */
.cert-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.cert-pill {
  background: #fff;
  border: 1px solid var(--border, #E4E6EF);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy, #2C2D85);
  transition: all .15s ease;
}
.cert-pill small { display: block; font-size: 0.72rem; color: var(--text-2, #6E6E73); margin-top: 4px; font-weight: 400; }
.cert-pill:hover { border-color: var(--v-accent, var(--sky)); box-shadow: 0 6px 16px rgba(30,30,60,0.08); }

/* Segmentos (ESP, Constructor, Operador) */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.segment-card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  border-left: 4px solid var(--v-accent, var(--sky));
  box-shadow: 0 2px 10px rgba(30,30,60,0.04);
}
.segment-card h3 {
  font-size: 1.15rem;
  color: var(--navy, #2C2D85);
  margin: 0 0 8px;
}
.segment-card p {
  font-size: 0.93rem;
  color: var(--text-2, #6E6E73);
  line-height: 1.55;
  margin: 0;
}

/* CTA final de página de producto */
.product-final-cta {
  background: linear-gradient(135deg, var(--navy, #2C2D85), var(--sky, #268ECD));
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.product-final-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}
.product-final-cta p {
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}
.product-final-cta .btn-fill { background: #fff; color: var(--navy, #2C2D85); }
.product-final-cta .btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.7); color: #fff; }

/* Responsive */
@media (max-width: 640px) {
  .product-hero { padding: 70px 20px 50px; }
  .product-section { padding: 56px 20px; }
  .product-card__ctas { flex-direction: column; }
}

/* ── Fase A · ajuste post-feedback: centrar CTAs dentro de cada product-card ── */
.product-card__ctas {
  justify-content: center;
}
.product-card__ctas > a,
.product-card__ctas > .btn-fill-sm,
.product-card__ctas > .btn-outline-sm {
  flex: 0 1 auto;
  min-width: 135px;
}

/* ════════════════════════════════════════════════════════════
   AMS · Carrusel de clientes (marquee infinito)
   Cards tipográficas — listo para reemplazar por <img> oficiales
   ════════════════════════════════════════════════════════════ */

.clients-marquee {
  position: relative;
  margin: 0 auto 40px;
  max-width: 1180px;
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee__inner {
  width: 100%;
  overflow: hidden;
}

.clients-marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: clients-scroll 50s linear infinite;
  will-change: transform;
}

.clients-marquee:hover .clients-marquee__track {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Card tipográfica (placeholder hasta tener PNG oficiales) */
.client-card {
  flex: 0 0 auto;
  min-width: 150px;
  height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border, #E4E6EF);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(30,30,60,0.04);
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy, #2C2D85);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,30,60,0.1);
  border-color: var(--sky, #268ECD);
}

.client-card span { display: block; line-height: 1; }

/* Acento sutil por vertical: borde inferior del color del sector */
.client-card.vertical-energia { border-bottom: 3px solid var(--orange, #F9B233); }
.client-card.vertical-agua    { border-bottom: 3px solid var(--sky, #268ECD); }
.client-card.vertical-gas     { border-bottom: 3px solid var(--purple, #731D81); }

/* Fade laterales (refuerzan la sensación de carrusel infinito) */
.clients-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.clients-marquee__fade--left  { left: 0;  background: linear-gradient(90deg, var(--bg, #F4F5FB) 10%, transparent); }
.clients-marquee__fade--right { right: 0; background: linear-gradient(270deg, var(--bg, #F4F5FB) 10%, transparent); }

/* Las cards "clone" son técnicas para el loop seamless; ARIA-hidden las oculta de lectores */
.client-card--clone { /* mismo estilo que las visibles, ya cubierto */ }

/* Reduce motion: respetar la preferencia del usuario */
@media (prefers-reduced-motion: reduce) {
  .clients-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .clients-marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .client-card {
    min-width: 130px;
    height: 64px;
    font-size: 0.9rem;
    padding: 0 16px;
  }
  .clients-marquee__track {
    gap: 12px;
    animation-duration: 35s;
  }
}

/* ═══ Ajustes al carrusel cuando usa <img> (logos reales) ═══ */
.client-card {
  /* Tamaño ligeramente mayor para logos visuales */
  min-width: 170px;
  padding: 0 18px;
}

.client-card img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Efecto sutil de normalización cromática: desatura un pelín por defecto,
     para que un banner de muchos logos no se vea saturado; al hover recupera color */
  filter: grayscale(0%);
  transition: transform .18s ease, filter .18s ease;
  display: block;
}

.client-card:hover img {
  transform: scale(1.04);
}

/* Nueva categoría: constructoras / comercios (borde navy) */
.client-card.vertical-constructor {
  border-bottom: 3px solid var(--navy, #2C2D85);
}

/* Mobile: los logos se ajustan */
@media (max-width: 640px) {
  .client-card {
    min-width: 140px;
    height: 64px;
    padding: 0 12px;
  }
  .client-card img {
    max-height: 42px;
  }
}

/* ════════════════════════════════════════════════════════════
   AMS · Fase B · Certificaciones (logos reales) + Casos de éxito
   ════════════════════════════════════════════════════════════ */

/* ─── Cert-card con logos reales ─── */
.cert-card--logos {
  background: #fff;
  border: 1px solid var(--border, #E4E6EF);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cert-card--logos .cert-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2, #6E6E73);
  font-weight: 700;
}
.cert-logos--official {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 768px) {
  .cert-logos--official { grid-template-columns: repeat(4, 1fr); }
}
.cert-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 12px;
  transition: filter .18s ease, transform .18s ease;
}
.cert-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.75);
  transition: filter .18s ease, transform .18s ease;
}
.cert-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}
.cert-numbers {
  font-size: 0.78rem;
  color: var(--text-2, #6E6E73);
  line-height: 1.55;
  margin: 8px 0 0;
}
.cert-numbers strong {
  color: var(--navy, #2C2D85);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ─── Casos de éxito ─── */
.cases-section {
  padding: 80px 24px;
  background: #ffffff;
}
.cases-section__inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.cases-section .section-eyebrow,
.cases-section .section-h2,
.cases-section .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.cases-section .section-sub { max-width: 720px; margin-bottom: 44px; }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  text-align: left;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border, #E4E6EF);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 2px 6px rgba(30,30,60,0.04);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(30,30,60,0.12);
  border-color: var(--sky, #268ECD);
}

.case-card__media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--navy, #2C2D85);
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.case-card:hover .case-card__media img { transform: scale(1.03); }
.case-card__metric {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--orange, #F9B233);
  color: var(--navy, #2C2D85);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.case-card__body { padding: 22px 24px 26px; flex: 1; }
.case-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(38,142,205,0.12);
  color: var(--sky, #268ECD);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-card__title {
  font-size: 1.25rem;
  color: var(--navy, #2C2D85);
  margin: 0 0 10px;
  line-height: 1.2;
}
.case-card__copy {
  font-size: 0.93rem;
  color: var(--text, #1E1E20);
  line-height: 1.55;
  margin: 0;
}
.case-card__copy strong { color: var(--navy, #2C2D85); font-weight: 700; }

@media (max-width: 640px) {
  .cases-section { padding: 56px 20px; }
  .case-card__media { height: 180px; }
}

/* ════════════════════════════════════════════════════════════
   AMS · Galería SmarTi con tabs (capturas reales)
   ════════════════════════════════════════════════════════════ */
.smarti-gallery {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(30, 30, 60, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.smarti-gallery__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border, #E4E6EF);
  padding-bottom: 10px;
}
.smarti-tab {
  flex: 1 1 auto;
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid var(--border, #E4E6EF);
  background: #fff;
  color: var(--text, #1E1E20);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .15s ease;
  text-align: center;
}
.smarti-tab:hover { border-color: var(--sky, #268ECD); color: var(--navy, #2C2D85); }
.smarti-tab.active {
  background: var(--navy, #2C2D85);
  color: #fff;
  border-color: var(--navy, #2C2D85);
  box-shadow: 0 4px 10px rgba(44, 45, 133, 0.25);
}
.smarti-tab:focus-visible {
  outline: 3px solid var(--orange, #F9B233);
  outline-offset: 2px;
}

.smarti-gallery__panels { position: relative; }
.smarti-panel {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: smarti-fade-in .25s ease-out;
}
.smarti-panel[hidden] { display: none; }

.smarti-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border, #E4E6EF);
  background: #f4f5fb;
}
.smarti-panel figcaption {
  font-size: 0.84rem;
  color: var(--text-2, #6E6E73);
  line-height: 1.55;
  padding: 4px 6px 0;
}
.smarti-panel figcaption strong {
  color: var(--navy, #2C2D85);
  font-weight: 700;
}

@keyframes smarti-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .smarti-gallery { padding: 12px; }
  .smarti-tab { font-size: 0.76rem; padding: 8px 10px; min-width: 90px; }
}
