/* ============================================================
   ANDES POWER — HOJA DE ESTILOS GLOBAL
   ============================================================ */

:root {
  --navy: #2D3B8E;
  --navy-dark: #202a66;
  --blue-deep: #023D7F;
  --teal: #2A7E89;
  --teal-dark: #216570;
  --bg-light: #F5F7FA;
  --bg-card: #FFFFFF;
  --border-soft: #E3E7EF;
  --text-dark: #1F2430;
  --text-gray: #5B6472;
  --text-muted: #8891A0;
  --white: #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 30px rgba(45, 59, 142, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(45, 59, 142, 0.14);
  --container-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-gray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 0 0 16px;
  line-height: 1.22;
  font-weight: 700;
}

p { margin: 0 0 16px; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-tight { padding: 56px 0; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-intro.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.section-intro p {
  font-size: 17px;
  color: var(--text-gray);
}

.accent-line {
  width: 56px;
  height: 4px;
  background: var(--teal);
  border-radius: 4px;
  margin: 18px 0 20px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.brand img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dark);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta .btn { padding: 12px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2,30,66,0.88) 10%, rgba(2,61,127,0.55) 48%, rgba(42,126,137,0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 24px 56px;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 52px);
  max-width: 820px;
  margin-bottom: 18px;
}

.hero .hero-sub {
  color: #E8ECF8;
  font-size: 19px;
  max-width: 620px;
  margin-bottom: 0;
}

.hero-split {
  align-items: center;
}
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: flex-end;
}

.hero-simple { min-height: 420px; }
.hero-simple h1 { max-width: 680px; }

/* banner highlight bar under hero (Inicio page) */
.highlight-bar {
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: var(--white);
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  max-width: var(--container-width);
  margin: -46px auto 0;
  position: relative;
  z-index: 3;
}
.highlight-bar p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--white);
  margin: 0;
  line-height: 1.4;
}

/* ---------- STATS ---------- */
.stats-wrap {
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 46px);
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}

/* ---------- MODELO / PROCESO ---------- */
.modelo-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.proceso-list { display: flex; flex-direction: column; gap: 22px; }
.proceso-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.proceso-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proceso-text h4 {
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.proceso-text p { margin: 0; font-size: 15px; }
.proceso-item:not(:last-child) .proceso-num { position: relative; }

/* ---------- CARDS ---------- */
.cards-grid {
  display: grid;
  gap: 28px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.card p { font-size: 15px; margin: 0; }

/* ---------- SOLUCIONES (bloques imagen + texto) ---------- */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}
.solution-block:last-child { border-bottom: none; }
.solution-block.reverse .solution-media { order: 2; }
.solution-block.reverse .solution-text { order: 1; }
.solution-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.solution-text h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--navy);
}
.solution-text p { font-size: 16px; }

/* ---------- BENEFICIOS CARDS ---------- */
.benefit-card .card-subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal);
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

/* ---------- ALIADOS ---------- */
.aliado-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--border-soft);
}
.aliado-row:last-of-type { border-bottom: none; }
.aliado-logo-box {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}
.aliado-logo-box img {
  max-height: 90px;
  max-width: 100%;
  mix-blend-mode: multiply;
}
.aliado-text .eyebrow { margin-bottom: 8px; }
.aliado-text h3 { font-size: 22px; margin-bottom: 10px; }
.aliado-text p { font-size: 15.5px; margin: 0; }

/* ---------- COBERTURA / MAPA ---------- */
.cobertura-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cobertura-map {
  display: flex;
  justify-content: center;
}
.cobertura-map img { max-width: 380px; width: 100%; }
.dept-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 18px;
}
.dept-list li {
  font-size: 15px;
  color: var(--text-dark);
  padding-left: 18px;
  position: relative;
}
.dept-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-box .eyebrow { margin-bottom: 10px; }
.contact-info-box h3 { font-size: 26px; }
.contact-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  color: var(--text-dark);
}
.contact-list img { width: 22px; height: 22px; flex: none; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px;
}
.form-card h4 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-card .form-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.form-legal {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 72px 24px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2,30,66,0.92), rgba(42,126,137,0.78));
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: #E8ECF8; font-size: 16.5px; margin-bottom: 28px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: #DCE1F2;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand img {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer-brand p { font-size: 14px; color: #B7C0DE; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14.5px;
  color: #C9D0E8;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: #C9D0E8;
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: #A8B1D1; }
.social-row { display: flex; gap: 12px; }
.social-row img { width: 38px; height: 38px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .modelo-grid,
  .cobertura-grid,
  .contact-grid,
  .solution-block,
  .solution-block.reverse,
  .aliado-row {
    grid-template-columns: 1fr;
  }
  .solution-block.reverse .solution-media,
  .solution-block.reverse .solution-text { order: initial; }
  .aliado-logo-box { height: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cards-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 12px; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
  }

  .cards-grid.cols-3,
  .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 480px; }
  .highlight-bar { margin-top: -32px; padding: 26px 20px; }
}
