﻿/* ── 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); }
}

/* ── Dark mode — btn-primary dentro de páginas internas ── */
[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;
}

/* ── 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: banda navy para páginas internas ── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 64px) 2rem 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; border-radius: 50%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  opacity: .14; top: -160px; right: -80px;
  filter: blur(10px); pointer-events: none;
}
.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: .82rem;
  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.2rem, 4.5vw, 3.2rem);
  color: #fff; letter-spacing: -.03em; margin-bottom: .7rem;
  line-height: 1.4;
}
.page-sub {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.05rem;
  color: rgba(255,255,255,.7); max-width: 640px; line-height: 1.75;
}

/* ── Detalle de servicio ── */
.srvd-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem;
  align-items: start;
}
.srvd-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 1.35rem; color: var(--text);
  letter-spacing: -.01em; margin: 2.2rem 0 1rem;
}
.srvd-h2:first-child { margin-top: 0; }
.srvd-main p {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem;
  color: var(--body); line-height: 1.75; margin-bottom: 1rem;
}
.srvd-list { display: flex; flex-direction: column; gap: .75rem; }
.srvd-list li {
  display: flex; align-items: flex-start; gap: .7rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .97rem;
  color: var(--body); line-height: 1.6;
}
.srvd-list li svg { width: 18px; height: 18px; color: var(--sky); flex-shrink: 0; margin-top: .15rem; }
.srvd-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
.srvd-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.8rem;
}
.srvd-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 1rem; color: var(--text); margin-bottom: .8rem;
}
.srvd-card p {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .92rem;
  color: var(--muted); line-height: 1.65; margin-bottom: 1.2rem;
}
.srvd-card ul { display: flex; flex-direction: column; gap: .55rem; }
.srvd-card ul li {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .9rem;
  color: var(--body); line-height: 1.5;
  padding-left: 1.3rem; position: relative;
}
.srvd-card ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.srvd-card hr { border: none; border-top: 1px solid var(--border); margin: 1.3rem 0; }
@media(max-width:860px) {
  .srvd-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .srvd-side { position: static; top: auto; }
}

/* CTA final — cinta */
#srv-final-cta {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  overflow: hidden;
}
#srv-final-cta::before,
#srv-final-cta::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(10px); pointer-events: none;
}
#srv-final-cta::before {
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  opacity: .14; top: -130px; left: -100px;
}
#srv-final-cta::after {
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: .16; bottom: -120px; right: -80px;
}
.srv-final-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;
}
.srv-final-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(90deg, var(--blue), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.srv-final-text p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; color: var(--muted);
  max-width: 46ch;
}
@media(max-width:580px) {
  .srv-final-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: 2rem;
  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; }
