/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ────────────────────────────────────────────── */
:root {
  --blue:    #1860A8;
  --blue-m:  #2E7DD1;
  --blue-dk: #0a3d6b;
  --blue-lt: #E6F1FB;
  --teal-m:  #1D9E75;
  --gray-dk: #1A1A18;
  --gray:    #444441;
  --gray-m:  #6B6B67;
  --gray-lt: #F4F2EB;
  --white:   #FFFFFF;
  --shadow:  0 8px 40px rgba(24,96,168,.13);
}

/* ── BASE ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body 
{
  font-family: 'DM Sans', sans-serif; 
  font-size: 16px; color: var(--gray-dk); 
  background: var(--white); overflow-x: hidden; 
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(24,96,168,.1);
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nav-logo img { height: 40px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray); text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: white;
  padding: 9px 22px; border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 12px;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--blue-m); }

/* ── NAV BURGER – WATER EFFECT ─────────────────────────────── */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  overflow: hidden;
  transition: background .3s ease;
}
.nav-burger::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 120%, var(--blue) 0%, var(--blue-m) 100%);
  opacity: 0;
  transform: scale(0);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.nav-burger:hover::before,
.nav-burger.active::before { opacity: 1; transform: scale(1); }
.nav-burger::after {
  content: '';
  position: absolute;
  top: -60%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 60% 0%, rgba(255,255,255,.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.nav-burger:hover::after,
.nav-burger.active::after { opacity: 1; }

@keyframes water-ring {
  0%   { transform: scale(.3); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes wave-1 {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50%       { transform: translateX(3px) scaleX(0.85); }
}
@keyframes wave-2 {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50%       { transform: translateX(-3px) scaleX(0.80); }
}
@keyframes wave-3 {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50%       { transform: translateX(2px) scaleX(0.90); }
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gray-dk);
  position: relative;
  z-index: 2;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease,
              background .3s ease, width .35s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
  margin: 0;
}
.nav-burger:hover span,
.nav-burger.active span { background: #fff; }
.nav-burger:hover span:nth-child(1) { animation: wave-1 1.2s ease-in-out infinite;      width: 16px; }
.nav-burger:hover span:nth-child(2) { animation: wave-2 1.2s ease-in-out infinite .15s; width: 20px; }
.nav-burger:hover span:nth-child(3) { animation: wave-3 1.2s ease-in-out infinite .3s;  width: 12px; }
.nav-burger.active span:nth-child(1) { animation: none; transform: translateY(8px)  rotate(45deg);  width: 22px; }
.nav-burger.active span:nth-child(2) { animation: none; opacity: 0; transform: scaleX(0); }
.nav-burger.active span:nth-child(3) { animation: none; transform: translateY(-8px) rotate(-45deg); width: 22px; }
.nav-burger .ripple {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  animation: water-ring .6s ease-out forwards;
  pointer-events: none; z-index: 3;
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  nav.mobile-open {
    flex-direction: column;
    height: auto;
    padding: 16px 5vw 24px;
    gap: 16px;
    align-items: flex-start;
  }
  nav.mobile-open .nav-logo { width: 100%; }
  nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  nav.mobile-open .nav-cta {
    display: inline-block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  nav.mobile-open .nav-burger {
    position: absolute;
    top: 12px;
    right: 5vw;
  }
}
/* ── HERO ─────────────────────────────────────────────────── */
#inicio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  padding-top: 68px;
}

/* Columna izquierda */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw 0 7vw;
  background: var(--white);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-lt); color: var(--blue-dk);
  padding: 5px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 16px; width: fit-content;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; min-width: 7px;
  background: var(--blue-m); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero-title {
  font-family: Arial, Helvetica, sans-serif; font-weight: 800;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.12; color: var(--gray-dk);
  margin-bottom: 14px;
}
.hero-title .azul { 
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
 }

.hero-sub {
  font-size: 14px; line-height: 1.7; color: var(--gray-m);
  max-width: 420px; margin-bottom: 22px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-primary {
  background: var(--blue); color: white;
  padding: 11px 26px; border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 5px 18px rgba(24,96,168,.35);
}
.btn-primary:hover { background: var(--blue-m); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--blue); color: var(--blue);
  padding: 9px 22px; border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: all .2s;
}
.btn-outline:hover { background: var(--blue); color: white; }

.hero-stats {
  display: flex; gap: 28px;
  padding-top: 22px; border-top: 1px solid rgba(0,0,0,.09);
}
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800;
  color: var(--blue);
}
.stat-label { font-size: 11px; color: var(--gray-m); margin-top: 3px; line-height: 1.4; }

/* Columna derecha */
.hero-right {
  position: relative;
  background: linear-gradient(150deg, var(--blue-dk) 0%, var(--blue) 55%, #1a7aaa 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 0 40px; gap: 18px; overflow: hidden;
}
.hero-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.hc1 { width: 360px; height: 360px; bottom: -90px; right: -70px; }
.hc2 { width: 160px; height: 160px; top: 30px; left: -40px; }

.hero-card {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: 22px 26px;
  width: 100%; max-width: 360px;
  position: relative; z-index: 1;
  animation: floatUp 6s ease-in-out infinite;
}
.hero-card:nth-child(4) { animation-delay: 1.5s; }
@keyframes floatUp { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.hero-card-icon { font-size: 28px; margin-bottom: 10px; }
.hero-card-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  color: white; margin-bottom: 7px;
}
.hero-card-text { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.55; }

.hero-mini {
  display: flex; width: 100%; max-width: 360px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; overflow: hidden;
  position: relative; z-index: 1;
}
.hero-mini-item {
  flex: 1; text-align: center; padding: 14px 10px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-mini-item:last-child { border-right: none; }
.hero-mini-num {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  color: white; margin-bottom: 2px;
}
.hero-mini-label { font-size: 11px; color: rgba(255,255,255,.65); }

/* ── SECCIONES GENERALES ──────────────────────────────────── */
section { padding: 88px 8vw; scroll-margin-top: 68px; }

.s-label {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-m); margin-bottom: 10px;
}
.s-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.15;
  color: var(--gray-dk); margin-bottom: 14px;
}
.s-sub {
  font-size: 15px; line-height: 1.75; color: var(--gray-m);
  max-width: 580px; margin-bottom: 48px;
}

/* ── EXPERIENCIA ──────────────────────────────────────────── */
#experiencia { background: var(--white); }

.exp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 72px;
}
.exp-card {
  border-left: 3px solid var(--blue);
  padding: 20px 18px 20px 22px;
  background: var(--gray-lt); border-radius: 0 12px 12px 0;
  transition: box-shadow .2s;
}
.exp-card:hover { box-shadow: var(--shadow); }
.exp-card h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--blue-dk); margin-bottom: 7px;
}
.exp-card p { font-size: 13px; line-height: 1.65; color: var(--gray-m); }

.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; margin-top: 44px;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 26px; left: 13%; right: 13%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-m));
}
.step { text-align: center; padding: 0 10px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: white;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(24,96,168,.4);
}
.step h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--gray-dk); margin-bottom: 6px;
}
.step p { font-size: 12px; color: var(--gray-m); line-height: 1.5; }

/* ── QUÉ ES HAPINET ───────────────────────────────────────── */
#que-es { background: var(--gray-lt); }

.que-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.que-box {
  background: linear-gradient(140deg, var(--blue-dk), var(--blue));
  border-radius: 20px; padding: 36px 32px; color: white;
}
.que-box-title {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px;
  margin-bottom: 5px;
}
.que-box-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.que-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.que-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13px; line-height: 1.5;
}
.que-list li::before {
  content: '✓'; display: flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; min-width: 19px;
  background: var(--teal-m); color: white; border-radius: 50%;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.que-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.pill-w {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); padding: 5px 13px; border-radius: 50px; font-size: 12px;
}

/* ── QUIÉNES SOMOS ────────────────────────────────────────── */
#quienes-somos { background: var(--white); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  border: 1px solid rgba(0,0,0,.08); border-radius: 18px;
  padding: 30px 24px; transition: all .25s; position: relative; overflow: hidden;
}
.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: .3s;
}
.team-card:hover::before { transform: scaleX(1); }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.team-icon {
  width: 52px; height: 52px; border-radius: 13px; background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.team-card h3 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--gray-dk); margin-bottom: 9px;
}
.team-card p { font-size: 13px; line-height: 1.7; color: var(--gray-m); }

.youth-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  border-radius: 18px; padding: 32px 40px;
  display: flex; align-items: center; gap: 26px;
}
.youth-emoji { font-size: 48px; flex-shrink: 0; }
.youth-text h3 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 19px;
  color: white; margin-bottom: 7px;
}
.youth-text p { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.65; max-width: 580px; }

/* ── SERVICIOS ────────────────────────────────────────────── */
#servicios {
  background: linear-gradient(155deg, var(--blue-dk) 0%, var(--blue) 50%, #1278a8 100%);
}
#servicios .s-label { color: #7FC8FF; }
#servicios .s-title { color: white; }
#servicios .s-sub   { color: rgba(255,255,255,.7); }

.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.serv-card {
  background: rgba(255,255,255,.93); border-radius: 18px;
  padding: 34px 30px; border: 1px solid rgba(255,255,255,.25);
  transition: all .25s;
}
.serv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.serv-card.featured {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28);
}
.serv-card.featured h3 { color: white; }
.serv-card.featured p  { color: rgba(255,255,255,.82); }
.serv-card.featured .serv-icon { background: rgba(255,255,255,.18); }

.serv-icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.serv-card h3 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px;
  color: var(--gray-dk); margin-bottom: 9px;
}
.serv-card p { font-size: 13px; line-height: 1.7; color: var(--gray-m); }
.serv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.serv-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  background: var(--blue-lt); color: var(--blue-dk); padding: 3px 11px; border-radius: 50px;
}
.serv-card.featured .serv-tag { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }

/* ── CONTACTO ─────────────────────────────────────────────── */
#contacto { background: var(--gray-dk); }
#contacto .s-label { color: var(--teal-m); }
#contacto .s-title { color: white; }
#contacto .s-sub   { color: rgba(255,255,255,.6); }

.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  transition: background .2s;
}
.contact-item:hover { background: rgba(255,255,255,.09); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.c-label {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-m); margin-bottom: 3px;
}
.c-value { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.5; }
.c-value a { color: #7FC8FF; text-decoration: none; }
.c-value a:hover { text-decoration: underline; }

.pqr-box {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; padding: 34px;
}
.pqr-box h3 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 19px;
  color: white; margin-bottom: 12px;
}
.pqr-box p { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 18px; }
.pqr-types { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.pqr-type {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.8);
}
.pqr-type span {
  width: 26px; height: 26px; border-radius: 7px; background: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.btn-pqr {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: white;
  padding: 12px 24px; border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: all .2s;
}
.btn-pqr:hover { background: var(--blue-m); transform: translateY(-2px); }

/* ── LEGAL ────────────────────────────────────────────────── */
#legal { background: var(--gray-lt); padding: 72px 8vw; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.legal-card {
  background: white; border-radius: 16px; padding: 28px;
  border: 1px solid rgba(0,0,0,.07); transition: box-shadow .2s;
}
.legal-card:hover { box-shadow: var(--shadow); }
.legal-card h3 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--gray-dk); margin-bottom: 11px;
}
.legal-card p { font-size: 13px; line-height: 1.75; color: var(--gray-m); }
.legal-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--blue); font-size: 13px; font-weight: 600;
  text-decoration: none; margin-top: 13px; transition: gap .2s;
}
.legal-link:hover { gap: 9px; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #0D0D0C; color: rgba(255,255,255,.45);
  padding: 34px 8vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
}
.footer-logo img { height: 40px; }
.footer-copy { font-size: 12px; }
.footer-tag { font-family: 'Syne', sans-serif; font-weight: 600; color: var(--teal-m); font-size: 13px; }

/* ── WA FLOAT ─────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 52px; height: 52px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  text-decoration: none; font-size: 24px; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── FADE-IN ──────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  #inicio { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .hero-right { display: none; }
  .hero-left { padding: 40px 6vw; }
  .que-grid, .contacto-grid, .legal-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .process-steps::before { display: none; }
  .youth-banner { flex-direction: column; text-align: center; }
  nav .nav-links, nav .nav-cta { display: none; }
  .nav-burger { display: block; }
  nav.mobile-open .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: white; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
}


/* ---- titulos ---- */
/* ── SOLO TITULOS EN ARIAL ───────────────────────────── */
h1, h2, h3, h4, h5, h6,
.s-title,
.hero-title,
.exp-card h4,
.step h4,
.team-card h3,
.serv-card h3,
.legal-card h3,
.pqr-box h3,
.youth-text h3,
.nav-links a{
  font-family: Arial, Helvetica, sans-serif !important;
}