/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul-celeste:   #2EAAE1;
  --azul-petroleo:  #054E60;
  --azul-medio:     #0091C4;
  --azul-medio-osc: #0C7491;
  --gris-corp:      #5D5D5D;
  --blanco:         #FFFFFF;
  --fondo-alt:      #F5F5F5;
  --texto:          #333333;
  --sombra: 0 4px 24px rgba(5,78,96,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: var(--azul-petroleo);
  line-height: 1.2;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul-petroleo);
  line-height: 1.3;
  margin-bottom: 10px;
}

p { margin-bottom: 14px; color: var(--gris-corp); line-height: 1.78; font-size: .97rem; }
p:last-child { margin-bottom: 0; }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azul-celeste);
  margin-bottom: 14px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--azul-celeste);
  border-radius: 2px;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--blanco);
  border-bottom: 1px solid rgba(5,78,96,.08);
  transition: box-shadow .3s;
}

.navbar.scrolled { box-shadow: var(--sombra); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.navbar__logo img { height: 50px; width: auto; display: block; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.navbar__nav a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--azul-petroleo);
  letter-spacing: .02em;
  transition: color .2s;
  white-space: nowrap;
}

.navbar__nav a:hover,
.navbar__nav a.active { color: var(--azul-celeste); }

.navbar__cta {
  background: var(--azul-celeste);
  color: var(--blanco) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: .85rem !important;
  transition: background .2s !important;
}

.navbar__cta:hover { background: var(--azul-medio-osc) !important; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--azul-petroleo);
  border-radius: 2px;
  transition: .3s;
}

.navbar__mobile {
  display: none;
  background: var(--blanco);
  border-top: 1px solid rgba(5,78,96,.08);
}

.navbar__mobile.open { display: block; }

.navbar__mobile ul {
  list-style: none;
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.navbar__mobile a {
  font-weight: 700;
  font-size: .9rem;
  color: var(--azul-petroleo);
}

.navbar__mobile .navbar__cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 4px;
  padding: 13px 28px;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--azul-celeste);
  color: var(--blanco);
}

.btn-primary:hover { background: var(--azul-medio-osc); }

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.btn-outline:hover { background: var(--blanco); color: var(--azul-petroleo); }

.btn-outline-dark {
  background: transparent;
  color: var(--azul-petroleo);
  border: 2px solid var(--azul-petroleo);
}

.btn-outline-dark:hover { background: var(--azul-petroleo); color: var(--blanco); }

.btn-outline-light {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,.5);
}

.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* =============================================
   FOOTER
============================================= */
.footer {
  padding: 52px 0 32px;
  background: var(--azul-petroleo);
  color: var(--blanco);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}

.footer__logo-wrap {
  display: inline-block;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
}

.footer__logo-wrap img { height: 44px; width: auto; display: block; }

.footer__brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s;
  color: rgba(255,255,255,.8);
}

.footer__social a:hover {
  background: var(--azul-celeste);
  color: #fff;
  transform: translateY(-2px);
}

.footer__social svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

.footer__col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--azul-celeste);
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.45;
}

.footer__col ul li a {
  color: rgba(255,255,255,.65);
  transition: color .2s;
}

.footer__col ul li a:hover { color: var(--azul-celeste); }

.footer__col ul li strong {
  display: block;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  margin-bottom: 2px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--azul-celeste);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(46,170,225,.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  z-index: 888;
}

.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--azul-medio-osc); }

/* =============================================
   WHATSAPP FLOAT
============================================= */
.wsp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}

.wsp-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.55); }
.wsp-float svg { width: 30px; height: 30px; fill: #fff; }

/* =============================================
   MODAL WHATSAPP (estilo overlay centrado — usado en index/quienes/metodologia/diferenciales)
============================================= */
.wsp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5,78,96,.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wsp-overlay.open { display: flex; }

.wsp-modal {
  background: var(--blanco);
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  position: relative;
  animation: modalIn .25s ease;
}

.wsp-modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--gris-corp); font-size: 1.4rem;
  line-height: 1; padding: 4px 8px; border-radius: 4px;
  transition: background .15s;
}

.wsp-modal__close:hover { background: var(--fondo-alt); }

.wsp-modal__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 18px;
}

.wsp-modal__icon svg { width: 28px; height: 28px; fill: #fff; }

.wsp-modal h3 {
  font-size: 1.2rem; font-weight: 900;
  color: var(--azul-petroleo); text-align: center; margin-bottom: 6px;
}

.wsp-modal p { font-size: .88rem; color: var(--gris-corp); text-align: center; margin-bottom: 16px; }

.wsp-modal .form-group { margin-bottom: 14px; }

.wsp-modal .form-group label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--azul-petroleo); letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 6px;
}

.wsp-modal .form-group input {
  width: 100%; font-family: inherit; font-size: .95rem;
  border: 1.5px solid #D1D5DB; border-radius: 6px;
  padding: 10px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
  background: var(--blanco);
}

.wsp-modal .form-group input:focus { border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.15); }

.btn-wsp-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 6px; border: none; cursor: pointer;
  background: #25D366; color: #fff; margin-top: 8px;
  transition: background .2s, transform .15s;
}

.btn-wsp-submit:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-wsp-submit svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }

/* =============================================
   MODAL WHATSAPP (estilo slide-up esquina — usado en trabajo)
============================================= */
.wsp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 10000;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 28px 100px;
}

.wsp-modal-overlay.open { display: flex; }

/* =============================================
   PAGE HERO (páginas interiores)
============================================= */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 20px;
}

.page-hero__breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.page-hero__breadcrumb a:hover { color: var(--azul-celeste); }
.page-hero__breadcrumb span { color: rgba(255,255,255,.4); }

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero h1 em { font-style: normal; color: var(--azul-celeste); }

.page-hero__lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* =============================================
   PAGE CTA (sección CTA compartida entre páginas interiores)
============================================= */
.page-cta {
  padding: 72px 0;
  text-align: center;
}

.page-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   PILAR SECTIONS (diferenciales y metodologia)
============================================= */
.pilar-section {
  padding: 64px 0;
  border-bottom: 1px solid rgba(5,78,96,.07);
}

.pilar-section:last-of-type { border-bottom: none; }
.pilar-section--alt { background: var(--fondo-alt); }

.pilar-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.pilar-sidebar { position: sticky; top: 100px; }

.pilar-sidebar__num {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(5,78,96,.08);
  line-height: 1;
  margin-bottom: -8px;
}

.pilar-sidebar__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--azul-celeste), var(--azul-petroleo));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.pilar-sidebar__icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pilar-sidebar h2 { font-size: 1.35rem; margin-bottom: 10px; }
.pilar-sidebar p { font-size: .88rem; color: var(--gris-corp); }

.pilar-content p { margin-bottom: 16px; }

.check-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--texto);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: var(--azul-celeste);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* Intro sections */
.intro-section { padding: 72px 0; }
.intro-section--alt { background: var(--fondo-alt); }

/* =============================================
   @KEYFRAMES
============================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wspSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   RESPONSIVE — NAVBAR / FOOTER GLOBALES
============================================= */
@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .pilar-inner { grid-template-columns: 1fr; gap: 32px; }
  .pilar-sidebar { position: static; }
  .pilar-sidebar__num { font-size: 3.5rem; }
}

@media (max-width: 760px) {
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
}

@media (max-width: 640px) {
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .footer__top { grid-template-columns: 1fr; }
  .page-cta__actions { flex-direction: column; align-items: center; }
}
