﻿/* ── 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-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); }

/* ── Navbar CTA ── */
.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); }
}

/* ── 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 ── */
.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: 640px; line-height: 1.8; margin-bottom: 2rem;
}

/* ── Stitle gradient ── */
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;
}

/* ── Sec-tag dark mode ── */
[data-theme="dark"] .sec-tag { color: #7AB8F5; }

/* ── FAQ — faq_v1.3 ── */
#faq { padding: 100px 2rem; background: var(--bg2); position: relative; }
#faq::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%);
}
.faq-in { max-width: 860px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 3.5rem; }
.faq-header .sec-tag { margin-bottom: 1rem; }
.faq-header .sdesc { text-align: center; margin-left: auto; margin-right: auto; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.8rem 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: flex-start; gap: 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: 1.08rem; color: var(--text);
  transition: color var(--t);
}
.faq-item:hover .faq-q { color: var(--sky); }
.faq-num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: .85rem; color: var(--gold);
  flex-shrink: 0; padding-top: .15rem;
}
.faq-q-text { flex: 1; }
.faq-toggle {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-toggle svg { width: 18px; height: 18px; color: var(--muted); }
.faq-a {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .96rem;
  color: var(--body); line-height: 1.7;
  padding-left: calc(.85rem + 1.2rem);
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
  margin-top: 0;
}
.faq-item.open .faq-a {
  max-height: 240px; opacity: 1; margin-top: .9rem;
}
.faq-footer {
  margin-top: 3rem; text-align: center;
}
.faq-more {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  font-size: .95rem; color: var(--navy);
  text-decoration: none;
  padding: .85rem 1.8rem;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  background: var(--bg);
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.faq-more:hover {
  border-color: var(--sky); color: var(--sky);
  transform: none;
}
.faq-more svg { width: 15px; height: 15px; }
[data-theme="dark"] .faq-more {
  color: #7AB8F5;
  border-color: rgba(122,184,245,.4);
  background: transparent;
}
[data-theme="dark"] .faq-more:hover {
  border-color: #93C5FD;
  color: #C5E4FF;
  background: rgba(46,125,209,.15);
}

@media(max-width:780px) {
  #faq { padding: 64px 1.25rem 72px; }
  .faq-header { margin-bottom: 2.5rem; }
  .faq-list { gap: .9rem; }
  .faq-item {
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.1rem 1.2rem;
    background: var(--bg);
  }
  .faq-item:first-child { border-top: 1px solid var(--border); }
  .faq-num { display: none; }
  .faq-q { gap: .8rem; font-size: .98rem; }
  .faq-a { padding-left: 0; }
  .faq-item.open .faq-a { max-height: 320px; }
}

/* ── CTA Cinta ── */
#cta-faq {
  position: relative;
  background: var(--bg);
  padding: 3rem 2rem;
  overflow: hidden;
}
#cta-faq::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%);
}
[data-theme="dark"] #cta-faq { background: rgba(46,125,209,.07); }
.cta-faq-in {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-faq-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .cta-faq-text h2 {
  background: linear-gradient(90deg, #7AB8F5, #C5E4FF);
  -webkit-background-clip: text; background-clip: text;
}
.cta-faq-text p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; color: var(--muted); max-width: 46ch;
}
[data-theme="dark"] .cta-faq-text p { color: rgba(255,255,255,.65); }
.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;
  text-decoration: none; display: inline-block; white-space: nowrap;
}
.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; }
@media(max-width:580px) { .cta-faq-in { flex-direction: column; align-items: flex-start; } }

/* ── Footer v1.3.2: tarjeta de contacto + logo AH ── */
footer { background: var(--navy); padding: 3.5rem 2rem 2rem; 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%);
}
[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; }
