﻿/* ── Navbar: topline gradiente + links con underline deslizante ── */
nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2E7DD1 0%, #1B4F8A 40%, #C8922A 100%);
  z-index: 1;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-cta {
  border-radius: 40px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  position: relative; isolation: isolate;
  animation: cinta-pulse 2.6s infinite;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0; border-radius: 40px;
  background: linear-gradient(135deg, #4faee8, #2060c0);
  opacity: 0; transition: opacity .25s ease; z-index: -1;
}
.nav-cta:hover { transform: none; background: linear-gradient(135deg, var(--sky), var(--blue)); animation-play-state: paused; }
.nav-cta:hover::before { opacity: 1; }
[data-theme="dark"] .nav-cta {
  background: rgba(46,125,209,.25);
  color: #C5E4FF;
  border: 1.5px solid #4FB3FF;
  box-shadow: 0 0 14px rgba(79,179,255,.2);
}
[data-theme="dark"] .nav-cta:hover {
  background: rgba(46,125,209,.45);
  border-color: #C5E4FF;
  box-shadow: 0 0 20px rgba(79,179,255,.35);
  transform: none;
}
@keyframes cinta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,125,209,.35); }
  70%  { box-shadow: 0 0 0 12px rgba(46,125,209,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,125,209,0); }
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 10px; right: 10px;
  height: 1.5px;
  background: var(--sky);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--text); background: var(--bg2); }

/* ── Logo v2.8: AH en círculo cónico + rotación en hover ── */
.logo { gap: .9rem; align-items: center; }
.logo-cone-wrap {
  width: 46px; height: 46px;
  flex-shrink: 0; position: relative;
  transition: transform .4s ease;
}
.logo-cone-wrap img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.logo:hover .logo-cone-wrap { transform: scale(1.08); }
.logo-stack { display: flex; flex-direction: column; gap: .18rem; }
.logo-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1; }
.logo-sub { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1; }

/* ── Page hero: imagen de fondo con overlay degradado ── */
.page-hero {
  background:
    linear-gradient(135deg, rgba(11,37,69,.92) 0%, rgba(27,79,138,.78) 55%, rgba(11,37,69,.88) 100%),
    url('../images/hero/hero_bg_v3.jpg') center / cover no-repeat;
  padding: calc(var(--nav-h) + 80px) 2rem 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(46,125,209,.18) 0%, transparent 65%);
  pointer-events: none;
}
[data-theme="dark"] .page-hero {
  background:
    linear-gradient(135deg, rgba(2,5,14,.97) 0%, rgba(8,22,48,.88) 55%, rgba(2,5,14,.95) 100%),
    url('../images/hero/hero_bg_v3.jpg') center / cover no-repeat;
}
[data-theme="dark"] .page-hero::before {
  background: radial-gradient(ellipse at 70% 50%, rgba(46,125,209,.32) 0%, transparent 65%);
}
.page-hero-in { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.page-crumb {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.1rem; display: flex; gap: .5rem; align-items: center;
}
.page-crumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.page-crumb a:hover { color: #fff; }
.page-title {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  letter-spacing: -.04em; margin-bottom: .8rem;
  background: linear-gradient(180deg, #fff 0%, #93C5FD 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .page-title {
  background: linear-gradient(120deg, #fff 20%, #93C5FD 100%);
  -webkit-background-clip: text; background-clip: text;
}
.page-sub {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.1rem;
  color: rgba(255,255,255,.72); max-width: 580px; line-height: 1.8;
  margin-bottom: 2rem;
}

/* ── Acerca de — visual + contenido (acerca_v1.3.0.2) ── */
.ac-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.ac-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-circle-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.ac-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(46,125,209,.22);
  inset: -22px;
  animation: ringpulse 4s ease-in-out infinite;
}
.ac-ring-2 {
  inset: -46px;
  border-color: rgba(46,125,209,.12);
  animation-delay: .6s;
}
.ac-ring-3 {
  inset: -70px;
  border-color: rgba(200,146,42,.08);
  animation-delay: 1.2s;
}
@keyframes ringpulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.02); }
}
.ac-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
  top: 50%; right: -4px;
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(46,125,209,.6);
}
.ac-ring-2::after { background: var(--gold); box-shadow: 0 0 8px rgba(200,146,42,.5); top: 15%; right: auto; left: -4px; }
.ac-ring-3::after { display: none; }
.ac-photo-circle {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 48px rgba(11,37,69,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ac-photo-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ac-content {}
.ac-eyebrow {
  display: inline-flex; align-items: center;
  gap: .5rem; margin-bottom: .85rem;
}
.ac-eyebrow::before {
  content: ''; width: 28px; height: 2.5px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  border-radius: 2px;
}
.ac-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 900; color: var(--text);
  letter-spacing: -.03em; line-height: 1.08;
  margin-bottom: .85rem;
}
.ac-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem; color: var(--body);
  line-height: 1.65; margin-bottom: 1.1rem;
}
.ac-desc:last-of-type { margin-bottom: 1.5rem; }
.ac-desc strong { font-weight: 600; }
.ac-pills {
  display: flex; gap: .75rem;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.ac-pill {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 30px; padding: .45rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .85rem; font-weight: 500; color: var(--body);
  transition: border-color var(--t), color var(--t);
}
.ac-pill:hover { border-color: var(--sky); color: var(--sky); }
.ac-pill svg { width: 14px; height: 14px; color: var(--sky); }
.ac-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ac-btn-cv {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(11,37,69,.3);
  border-radius: 40px; padding: .75rem 2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.ac-btn-cv:hover { color: var(--sky); border-color: var(--sky); background: rgba(46,125,209,.06); }
[data-theme="dark"] .ac-btn-cv { color: #C5E4FF; border-color: rgba(122,184,245,.4); }
[data-theme="dark"] .ac-btn-cv:hover { color: #93C5FD; border-color: #93C5FD; background: rgba(46,125,209,.15); }

/* ── Etiquetas de sección (sec-tag) ── */
[data-theme="dark"] .sec-tag { color: #7AB8F5; }

/* ── Títulos de sección ── */
h2.stitle {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] h2.stitle {
  background: linear-gradient(135deg, #7AB8F5 0%, #C5E4FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Separadores de sección ── */
#acerca-quien { position: relative; }
#acerca-quien::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,125,209,.4) 25%, rgba(200,146,42,.7) 50%, rgba(46,125,209,.4) 75%, transparent 100%);
}
#mision-vision { position: relative; }
#mision-vision::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,125,209,.4) 25%, rgba(200,146,42,.7) 50%, rgba(46,125,209,.4) 75%, transparent 100%);
}
#proceso { position: relative; }
#proceso::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,125,209,.4) 25%, rgba(200,146,42,.7) 50%, rgba(46,125,209,.4) 75%, transparent 100%);
}
footer { position: relative; }
footer::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,125,209,.4) 25%, rgba(200,146,42,.7) 50%, rgba(46,125,209,.4) 75%, transparent 100%);
}

/* ── Proceso de trabajo ── */
#proceso { background: var(--bg2); }

/* ── Misión y visión ── */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 2.75rem 2.25rem;
}
.mv-dark { background: var(--navy); }
.mv-light { background: var(--bg2); border: 1px solid var(--border); box-shadow: var(--sh); }
.mv-watermark {
  position: absolute; top: -22px; right: -22px;
  width: 170px; height: 170px; z-index: 0; pointer-events: none;
}
.mv-dark .mv-watermark { color: var(--gold); opacity: .18; }
.mv-light .mv-watermark { color: var(--sky); opacity: .1; }
.mv-title {
  position: relative; z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.01em; margin-bottom: 1rem;
}
.mv-dark .mv-title { color: #fff; }
.mv-light .mv-title {
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .mv-light .mv-title {
  background: linear-gradient(135deg, #7AB8F5 0%, #C5E4FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mv-desc {
  position: relative; z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; line-height: 1.75;
}
.mv-dark .mv-desc { color: rgba(255,255,255,.8); }
.mv-light .mv-desc { color: var(--muted); }

@media (max-width: 900px) {
  .ac-grid { grid-template-columns: 1fr; text-align: center; }
  .ac-pills { justify-content: center; }
  .ac-actions { justify-content: center; }
  .ac-eyebrow { justify-content: center; }
  .mv-grid { grid-template-columns: 1fr; }
}

/* ── btn-cta-cinta ── */
.btn-cta-cinta {
  background: var(--sky); color: #fff;
  border: 1.5px solid var(--sky);
  border-radius: 40px; padding: .75rem 2rem;
  font-size: .9rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(46,125,209,.35);
  transition: background .25s ease, box-shadow .25s ease;
}
.btn-cta-cinta:hover { background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 24px rgba(27,79,138,.45); transform: none; }
[data-theme="dark"] .btn-cta-cinta {
  background: transparent; color: #7AB8F5;
  border-color: rgba(122,184,245,.5); box-shadow: none;
}
[data-theme="dark"] .btn-cta-cinta:hover {
  background: rgba(46,125,209,.35); border-color: #93C5FD;
  box-shadow: 0 4px 22px rgba(46,125,209,.45); color: #C5E4FF;
}
[data-theme="dark"] .btn-primary {
  background: transparent;
  color: #7AB8F5;
  border-color: rgba(122,184,245,.5);
  box-shadow: none;
}
[data-theme="dark"] .btn-primary:hover {
  background: rgba(46,125,209,.35);
  border-color: #93C5FD;
  box-shadow: 0 4px 22px rgba(46,125,209,.45);
  color: #C5E4FF;
}

/* ── Footer v1.3.2: tarjeta de contacto + logo AH ── */
footer { background: var(--navy); padding: 3.5rem 2rem 2rem; }
[data-theme="dark"] footer { background: #080e1c; }
.foot-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-brand-col {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.foot-mark {
  width: 56px; height: 56px;
  margin-bottom: 1rem;
}
.foot-mark img {
  width: 100%; height: 100%; display: block; border-radius: 50%;
}
.foot-logo { margin-bottom: .4rem; }
.foot-tagline { margin-bottom: 1.2rem; }
.foot-brand-col .foot-soc { justify-content: center; }
.foot-col h3 { margin-bottom: 1rem; }
.foot-contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 1.4rem;
}
.foot-contact-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .82rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.1rem;
}
.fcc-item {
  display: flex; align-items: flex-start; gap: .6rem;
  margin-bottom: .75rem;
}
.fcc-item:last-of-type { margin-bottom: 1.1rem; }
.fcc-item svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; margin-top: .18rem; }
.fcc-item a, .fcc-item span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .83rem; color: rgba(255,255,255,.5);
  text-decoration: none; line-height: 1.5; transition: color .2s;
}
.fcc-item a:hover { color: rgba(255,255,255,.9); }
.fcc-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.07);
  margin: .85rem 0;
}
.fcc-hours-row {
  display: flex; justify-content: space-between;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .8rem; color: rgba(255,255,255,.55);
  margin-bottom: .28rem;
}
.foot-bottom {
  max-width: var(--max); margin: 2rem auto 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
@media(max-width:960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand-col { grid-column: 1 / -1; }
  .foot-contact-card { grid-column: 1 / -1; }
}
@media(max-width:580px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-contact-card { grid-column: auto; }
}

/* ── Botones flotantes ── */
.float-stack {
  position: fixed;
  bottom: 2rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  z-index: 999;
}
.wa-float {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1ea855;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(30,168,85,.28);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  opacity: .88;
}
.wa-float:hover {
  opacity: 1;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,168,85,.42);
}
.wa-float img { width: 34px; height: 34px; filter: brightness(0) invert(1); }
.chat-float {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #16406e;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(22,64,110,.28);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  border: none;
  opacity: .88;
}
.chat-float:hover {
  opacity: 1;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,64,110,.42);
}
.chat-float svg { width: 26px; height: 26px; color: #fff; }

/* Messenger */
.msg-float {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #0084FF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,132,255,.28);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  opacity: .88;
}
.msg-float:hover {
  opacity: 1;
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,132,255,.42);
}
.msg-float svg { width: 34px; height: 34px; }
.top-float {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(15,23,42,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.top-float.visible { opacity: 1; pointer-events: auto; }
.top-float:hover {
  background: rgba(15,23,42,.82);
  border-color: rgba(255,255,255,.35);
  transform: translateX(-50%) translateY(-2px);
}
.top-float svg { width: 16px; height: 16px; color: rgba(255,255,255,.7); transition: color .2s; }
.top-float:hover svg { color: #fff; }
/* Chatbot IA — placeholder sin funcion real, oculto en produccion hasta implementarlo */
.chat-float { display: none; }
