/* ==========================================================================
   SALUDGEN ESCOLAR STYLES
   Genoslab + Genodent Alianza de Salud Preventiva Escolar
   ========================================================================== */

:root {
  --sg-cyan: #00A3E0;
  --sg-cyan-light: #e0f4fc;
  --sg-cyan-dark: #0277a8;
  --sg-coral: #E6396E;
  --sg-coral-light: #fdebf1;
  --sg-gold: #EEBC17;
  --sg-gold-light: #fef8e7;
  --sg-navy: #0e183f;
  --sg-navy-mid: #172671;
  --sg-navy-card: #142050;
  --sg-border: rgba(31, 147, 191, 0.2);
  --sg-card-shadow: 0 10px 30px -10px rgba(14, 24, 63, 0.08), 0 4px 6px -2px rgba(14, 24, 63, 0.04);
  --sg-glow: 0 0 40px rgba(0, 163, 224, 0.15);
}

:root[data-theme="dark"] {
  --sg-cyan-light: rgba(0, 163, 224, 0.15);
  --sg-coral-light: rgba(230, 57, 110, 0.18);
  --sg-gold-light: rgba(238, 188, 23, 0.15);
  --sg-border: rgba(255, 255, 255, 0.12);
  --sg-card-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  --sg-glow: 0 0 40px rgba(0, 163, 224, 0.25);
}

/* ── NAVBAR ENHANCEMENTS FOR SALUDGEN ───────────────── */
.nav-saludgen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 163, 224, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-left: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link-back:hover {
  color: var(--sg-cyan);
}

.logo-saludgen-nav {
  height: 44px;
  width: auto;
  display: block;
}

/* ── HERO SALUDGEN ──────────────────────────────────── */
.sg-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #1f4287 0%, #0e183f 60%, #080d24 100%);
  color: #ffffff;
  padding: 120px 5% 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 163, 224, 0.2);
}

.sg-hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

.sg-hero-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  filter: blur(40px);
}

.sg-hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 188, 23, 0.15) 0%, transparent 70%);
  bottom: 0;
  left: 10%;
  pointer-events: none;
  filter: blur(50px);
}

.sg-hero-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  z-index: 2;
}

.sg-hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 163, 224, 0.35);
  backdrop-filter: blur(12px);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.sg-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.sg-badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e0f2fe;
  letter-spacing: 0.02em;
}

.sg-hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.sg-hero h1 span.sg-title-highlight {
  color: var(--sg-cyan);
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sg-hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 580px;
}

.sg-hero-lead strong {
  color: #ffffff;
}

.sg-price-pill {
  display: inline-flex;
  align-items: baseline;
  background: linear-gradient(135deg, rgba(238, 188, 23, 0.15) 0%, rgba(238, 188, 23, 0.05) 100%);
  border: 1px solid rgba(238, 188, 23, 0.4);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  margin-right: 0.5rem;
  color: #fde047;
  font-weight: 700;
}

.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-sg-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--sg-gold);
  color: var(--sg-navy) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(238, 188, 23, 0.4);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-sg-primary:hover {
  background: #facc15;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(238, 188, 23, 0.55);
}

.btn-sg-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--sg-cyan);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(0, 163, 224, 0.45);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-sg-cyan:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

.btn-sg-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-sg-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.sg-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sg-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.sg-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 163, 224, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.sg-highlight-text h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.sg-highlight-text p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── HERO IMAGE CARD ────────────────────────────────── */
.sg-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.sg-hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #18275c 0%, #0b122e 100%);
  border-radius: 24px;
  border: 2px solid rgba(0, 163, 224, 0.35);
  padding: 1.25rem 1.25rem 0.75rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), var(--sg-glow);
  text-align: center;
  overflow: hidden;
}

.sg-hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.sg-hero-card-bottom {
  padding: 1rem 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.sg-hero-alliance-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
}

.sg-hero-alliance-tag span.partner-label {
  color: var(--sg-cyan);
}

.sg-float-badge {
  position: absolute;
  background: rgba(14, 24, 63, 0.85);
  border: 1px solid rgba(238, 188, 23, 0.4);
  backdrop-filter: blur(12px);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 3;
}

.sg-float-badge-top {
  top: 15px;
  left: -20px;
  border-color: rgba(0, 163, 224, 0.4);
}

.sg-float-badge-bottom {
  bottom: 25px;
  right: -20px;
  border-color: rgba(238, 188, 23, 0.5);
}

.sg-float-badge-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.1;
}

.sg-float-badge-num span.accent-cyan {
  color: #38bdf8;
}

.sg-float-badge-num span.accent-gold {
  color: #fde047;
}

.sg-float-badge-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── 4 PILARES / VALUE PROPOSITION SECTION ──────────── */
.sg-section {
  padding: 90px 5%;
  position: relative;
}

.sg-section-light {
  background: var(--off-white);
}

.sg-section-white {
  background: var(--white);
}

.sg-section-dark {
  background: var(--navy-dark);
  color: #ffffff;
}

.sg-container {
  max-width: 1240px;
  margin: 0 auto;
}

.sg-header-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.sg-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sg-cyan);
  margin-bottom: 0.75rem;
}

.sg-eyebrow.gold {
  color: var(--sg-gold);
}

.sg-eyebrow.coral {
  color: var(--sg-coral);
}

.sg-section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sg-section-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

:root[data-theme="dark"] .sg-section-desc {
  color: #94a3b8;
}

.sg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sg-pillar-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--sg-card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

:root[data-theme="dark"] .sg-pillar-card {
  background: var(--dark-card);
  border-color: var(--sg-border);
}

.sg-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(23, 38, 113, 0.12);
  border-color: var(--sg-cyan);
}

.sg-pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sg-pillar-icon-box.cyan {
  background: rgba(0, 163, 224, 0.12);
  color: var(--sg-cyan);
}

.sg-pillar-icon-box.coral {
  background: rgba(230, 57, 110, 0.12);
  color: var(--sg-coral);
}

.sg-pillar-icon-box.gold {
  background: rgba(238, 188, 23, 0.16);
  color: #d97706;
}

.sg-pillar-icon-box.green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.sg-pillar-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.sg-pillar-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── COMPARISON PRICING SECTION (DUAL SERVICES) ─────── */
.sg-dual-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.sg-service-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--light-gray);
  box-shadow: var(--sg-card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s;
}

:root[data-theme="dark"] .sg-service-card {
  background: var(--dark-card);
  border-color: var(--sg-border);
}

.sg-service-card.dental {
  border-top: 5px solid var(--sg-cyan);
}

.sg-service-card.lab {
  border-top: 5px solid var(--sg-coral);
}

.sg-service-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--light-gray);
}

:root[data-theme="dark"] .sg-service-header {
  border-bottom-color: var(--sg-border);
}

.sg-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.sg-brand-badge.dental-badge {
  background: var(--sg-cyan-light);
  color: var(--sg-cyan-dark);
}

.sg-brand-badge.lab-badge {
  background: var(--sg-coral-light);
  color: var(--sg-coral);
}

:root[data-theme="dark"] .sg-brand-badge.dental-badge {
  color: #38bdf8;
}

:root[data-theme="dark"] .sg-brand-badge.lab-badge {
  color: #fb7185;
}

.sg-service-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.sg-service-slogan {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.sg-service-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Copago callout banner */
.sg-copago-callout {
  background: linear-gradient(135deg, rgba(0, 163, 224, 0.08) 0%, rgba(0, 163, 224, 0.02) 100%);
  border: 1px solid rgba(0, 163, 224, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.sg-copago-callout.coral {
  background: linear-gradient(135deg, rgba(230, 57, 110, 0.08) 0%, rgba(230, 57, 110, 0.02) 100%);
  border-color: rgba(230, 57, 110, 0.3);
}

.sg-copago-figure {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--sg-navy);
}

:root[data-theme="dark"] .sg-copago-figure {
  color: #ffffff;
}

.sg-copago-figure span.pct {
  font-size: 1.3rem;
  color: var(--sg-cyan);
}

.sg-copago-figure.coral-fig span.pct {
  color: var(--sg-coral);
}

.sg-copago-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sg-copago-details p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── TABLE STYLES FOR DENTAL PROCEDURES ─────────────── */
.sg-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--light-gray);
  margin-bottom: 1.75rem;
}

:root[data-theme="dark"] .sg-table-container {
  border-color: var(--sg-border);
}

.sg-pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.sg-pricing-table th {
  background: var(--off-white);
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  border-bottom: 1px solid var(--light-gray);
}

:root[data-theme="dark"] .sg-pricing-table th {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--sg-border);
  color: #e2e8f0;
}

.sg-pricing-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-dark);
}

:root[data-theme="dark"] .sg-pricing-table td {
  border-bottom-color: var(--sg-border);
  color: #cbd5e1;
}

.sg-pricing-table tr:last-child td {
  border-bottom: none;
}

.sg-pricing-table tr:hover td {
  background: rgba(0, 163, 224, 0.04);
}

.sg-price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.82rem;
}

.sg-price-new {
  font-weight: 700;
  color: #059669;
  font-size: 0.95rem;
}

:root[data-theme="dark"] .sg-price-new {
  color: #34d399;
}

.sg-badge-discount {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

/* Specialties card */
.sg-specialties-box {
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--light-gray);
  margin-top: auto;
}

:root[data-theme="dark"] .sg-specialties-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--sg-border);
}

.sg-specialties-box h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sg-specialties-tag {
  background: rgba(0, 163, 224, 0.15);
  color: var(--sg-cyan);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.sg-specialties-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-dark);
}

:root[data-theme="dark"] .sg-specialties-list {
  color: #cbd5e1;
}

.sg-specialties-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sg-specialties-list li::before {
  content: "✓";
  color: var(--sg-cyan);
  font-weight: 800;
}

/* ── LAB HIGHLIGHT SECTION ──────────────────────────── */
.sg-lab-feature-box {
  background: linear-gradient(135deg, #172671 0%, #0e183f 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(0, 163, 224, 0.3);
}

.sg-lab-feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sg-lab-pill {
  background: var(--sg-coral);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(230, 57, 110, 0.4);
}

.sg-lab-feature-box h4 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.sg-lab-tests-included {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.25rem;
}

.sg-test-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.sg-lab-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sg-lab-price-current {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: #fde047;
  line-height: 1;
}

.sg-lab-price-current span.currency {
  font-size: 1.3rem;
}

.sg-lab-price-regular {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.sg-lab-discounts-box {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

:root[data-theme="dark"] .sg-lab-discounts-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--sg-border);
}

.sg-lab-discount-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sg-discount-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 163, 224, 0.12);
  color: var(--sg-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.sg-discount-info h5 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.sg-discount-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sg-jornadas-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(238, 188, 23, 0.1);
  border: 1px solid rgba(238, 188, 23, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-top: auto;
}

:root[data-theme="dark"] .sg-jornadas-note {
  color: #fde047;
}

/* ── CALCULATOR SECTION ─────────────────────────────── */
.sg-calculator-wrapper {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 24px;
  box-shadow: var(--sg-card-shadow);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

:root[data-theme="dark"] .sg-calculator-wrapper {
  background: var(--dark-card);
  border-color: var(--sg-border);
}

.sg-calc-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sg-calc-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

:root[data-theme="dark"] .sg-calc-checkbox-label {
  border-color: var(--sg-border);
}

.sg-calc-checkbox-label:hover {
  border-color: var(--sg-cyan);
  background: rgba(0, 163, 224, 0.04);
}

.sg-calc-checkbox-label.is-checked {
  border-color: var(--sg-cyan);
  background: rgba(0, 163, 224, 0.08);
}

.sg-calc-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sg-calc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--sg-cyan);
  cursor: pointer;
}

.sg-calc-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

:root[data-theme="dark"] .sg-calc-item-title {
  color: #f8fafc;
}

.sg-calc-item-right {
  text-align: right;
  font-size: 0.85rem;
}

.sg-calc-res-box {
  background: linear-gradient(135deg, #172671 0%, #0c1538 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 2.25rem;
  border: 1px solid rgba(0, 163, 224, 0.35);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.sg-calc-res-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 1.5rem;
}

.sg-calc-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.sg-calc-metric-row.total-savings {
  border-bottom: none;
  padding: 1.25rem 0 0.5rem;
  flex-direction: column;
  gap: 0.35rem;
}

.sg-savings-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fde047;
  line-height: 1;
}

.sg-calc-payoff-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 1rem;
  line-height: 1.45;
}

/* ── FOR SCHOOLS / INSTITUTIONS SECTION ─────────────── */
.sg-schools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.sg-schools-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.sg-schools-content p.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.sg-school-perks-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sg-school-perk {
  display: flex;
  gap: 1rem;
}

.sg-perk-bullet {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 163, 224, 0.12);
  color: var(--sg-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.sg-perk-text h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sg-perk-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sg-school-img-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #18275c 0%, #0b122e 100%);
  border: 2px solid rgba(0, 163, 224, 0.3);
  box-shadow: var(--sg-card-shadow), var(--sg-glow);
  padding: 1.25rem;
}

.sg-school-img-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.sg-school-badge-overlay {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  background: rgba(14, 24, 63, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #ffffff;
}

.sg-school-badge-overlay h6 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fde047;
  margin-bottom: 0.2rem;
}

.sg-school-badge-overlay p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* ── HOW IT WORKS (4 STEPS) ─────────────────────────── */
.sg-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.sg-step-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 2.25rem 1.5rem 1.75rem;
  box-shadow: var(--sg-card-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
}

:root[data-theme="dark"] .sg-step-card {
  background: var(--dark-card);
  border-color: var(--sg-border);
}

.sg-step-num {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sg-cyan);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -2px rgba(0, 163, 224, 0.5);
}

.sg-step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
}

.sg-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── SUCURSALES & CONTACT BAR ───────────────────────── */
.sg-contact-banner {
  background: linear-gradient(135deg, #0e183f 0%, #172671 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(0, 163, 224, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.sg-contact-banner h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.sg-contact-banner p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sg-phones-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sg-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.sg-phone-chip:hover {
  background: var(--sg-gold);
  color: var(--sg-navy) !important;
  border-color: var(--sg-gold);
}

.sg-location-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.5rem;
}

.sg-loc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sg-loc-item:last-child {
  margin-bottom: 0;
}

.sg-loc-item svg {
  color: var(--sg-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.sg-loc-item h6 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde047;
  margin-bottom: 0.2rem;
}

.sg-loc-item p {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 0;
}

/* ── FAQ ACCORDION ──────────────────────────────────── */
.sg-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sg-faq-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

:root[data-theme="dark"] .sg-faq-item {
  background: var(--dark-card);
  border-color: var(--sg-border);
}

.sg-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

:root[data-theme="dark"] .sg-faq-question {
  color: #f8fafc;
}

.sg-faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 163, 224, 0.12);
  color: var(--sg-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.sg-faq-item.is-open .sg-faq-icon {
  transform: rotate(45deg);
  background: rgba(230, 57, 110, 0.15);
  color: var(--sg-coral);
}

.sg-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

:root[data-theme="dark"] .sg-faq-answer {
  color: #94a3b8;
}

.sg-faq-item.is-open .sg-faq-answer {
  padding-bottom: 1.25rem;
}

/* ── LEAD CAPTURE FORM ──────────────────────────────── */
.sg-form-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--sg-card-shadow);
  max-width: 720px;
  margin: 0 auto;
}

:root[data-theme="dark"] .sg-form-card {
  background: var(--dark-card);
  border-color: var(--sg-border);
}

.sg-form-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 1rem;
}

:root[data-theme="dark"] .sg-form-tabs {
  border-bottom-color: var(--sg-border);
}

.sg-tab-btn {
  background: none;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sg-tab-btn.active {
  background: rgba(0, 163, 224, 0.12);
  color: var(--sg-cyan);
}

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

.sg-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

:root[data-theme="dark"] .sg-form-group label {
  color: #e2e8f0;
}

.sg-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.2s;
}

:root[data-theme="dark"] .sg-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--sg-border);
  color: #ffffff;
}

.sg-input:focus {
  outline: none;
  border-color: var(--sg-cyan);
}

/* ── RESPONSIVE RULES ───────────────────────────────── */
@media (max-width: 1024px) {
  .sg-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .sg-hero-lead {
    margin: 0 auto 2rem;
  }

  .sg-hero-actions {
    justify-content: center;
  }

  .sg-hero-highlights {
    margin: 0 auto;
    text-align: left;
  }

  .sg-float-badge-top {
    left: 0;
  }

  .sg-float-badge-bottom {
    right: 0;
  }

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

  .sg-dual-services {
    grid-template-columns: 1fr;
  }

  .sg-calculator-wrapper {
    grid-template-columns: 1fr;
  }

  .sg-schools-grid {
    grid-template-columns: 1fr;
  }

  .sg-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .sg-contact-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sg-phones-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .sg-hero {
    padding: 100px 5% 60px;
  }

  .sg-hero-highlights {
    grid-template-columns: 1fr;
  }

  .sg-pillars-grid {
    grid-template-columns: 1fr;
  }

  .sg-steps-grid {
    grid-template-columns: 1fr;
  }

  .sg-calculator-wrapper {
    padding: 1.5rem;
  }

  .sg-savings-amount {
    font-size: 2.2rem;
  }

  .sg-specialties-list {
    grid-template-columns: 1fr;
  }

  .sg-contact-banner {
    padding: 1.75rem 1.25rem;
  }

  .sg-form-card {
    padding: 1.75rem 1.25rem;
  }
}
