﻿/* Colores del gradiente de íconos según tema */
:root { --ic1: #0B2545; --ic2: #2E7DD1; }
[data-theme="dark"] { --ic1: #4FB3FF; --ic2: #C5E4FF; }
html, body { overflow-x: hidden; }

/* ── 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; }

[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/servicios/diseno_web.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%);
}
[data-theme="dark"] .page-title {
  background: linear-gradient(120deg, #fff 20%, #93C5FD 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ── 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/servicios/diseno_web.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;
}
.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;
}
.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;
}

/* ── Servicios: cards compactas ── */
/* Vida en secciones: degradados radiales sutiles */
/* Orden nuevo: soluciones (paquetes) primero, servicios-lista (individuales) segundo */
#soluciones {
  background:
    radial-gradient(ellipse at 94% 20%, rgba(46,125,209,.14) 0%, transparent 50%),
    radial-gradient(ellipse at 6% 85%, rgba(200,146,42,.11) 0%, transparent 50%),
    var(--bg2);
  position: relative;
}
#soluciones::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%);
}
#servicios-lista { position: relative; }
#servicios-lista::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 420px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--gold), transparent);
  box-shadow: 0 0 12px rgba(46,125,209,.35);
}
#servicios-lista {
  background:
    radial-gradient(ellipse at 8% 30%, rgba(46,125,209,.13) 0%, transparent 55%),
    radial-gradient(ellipse at 92% 75%, rgba(200,146,42,.10) 0%, transparent 50%),
    var(--bg);
}
#servicios-lista::after {
  content: ''; position: absolute;
  bottom: 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%);
}
#soluciones .srv { border: 1px solid transparent; }
#soluciones .srv:hover { border-color: rgb(96 165 250); box-shadow: 0 8px 28px rgba(46,125,209,.14); }
.srv-g { gap: 2.5rem; }
.srv-g .srv-d { min-height: 2.4rem; }
.srv { background: var(--bg); border: 1px solid rgba(46,125,209,.2); box-shadow: 0 1px 3px rgba(0,0,0,.12); position: relative; padding: 1.4rem; transition: border-color .4s ease, box-shadow .65s ease; }
.srv:hover { border-color: rgb(96 165 250); box-shadow: 0 4px 14px rgba(46,125,209,.18); }

/* Ícono: marca de agua centrada horizontalmente */
.srv-ic {
  background: transparent;
  color: var(--sky);
  overflow: visible;
  position: relative;
  align-self: center;
}
.srv-ic svg {
  width: 82px !important;
  height: 82px !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
[data-theme="dark"] .srv-ic svg { stroke-width: 1.2; }

/* Título con degradado */
.srv-n {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.28rem; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 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;
}

/* Descripción */
.srv-d { font-size: .97rem; color: var(--body); line-height: 1.85; }

/* Dark mode: título y botón Ver más */
[data-theme="dark"] .srv-ic { background: rgba(46,125,209,.25); color: #7AB8F5; }
[data-theme="dark"] .srv,
[data-theme="dark"] #soluciones .srv { border: 1px solid rgba(255,255,255,.22); }
[data-theme="dark"] .srv-n {
  background: linear-gradient(135deg, #7AB8F5 0%, #93C5FD 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .srv:hover,
[data-theme="dark"] #soluciones .srv:hover { box-shadow: none; border-color: rgba(255,255,255,.55); }
[data-theme="dark"] #srv-final-cta { background: rgba(46,125,209,.07); }
[data-theme="dark"] .btn-cta-cinta,
[data-theme="dark"] .srv-btn-pri {
  background: transparent;
  color: #7AB8F5;
  border-color: rgba(122,184,245,.5);
  box-shadow: none;
}
[data-theme="dark"] .btn-cta-cinta:hover,
[data-theme="dark"] .srv-btn-pri: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"] #srv-final-cta::before { opacity: .35; }
[data-theme="dark"] #srv-final-cta::after { opacity: .3; }
[data-theme="dark"] .srv-final-text h2 {
  background: linear-gradient(90deg, #7AB8F5, #C5E4FF);
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="dark"] .srv-final-text p { color: rgba(255,255,255,.65); }
[data-theme="dark"] .srv-btn-sec {
  color: var(--sky); border-color: rgba(46,125,209,.35);
}
[data-theme="dark"] .srv-btn-sec:hover { color: #93C5FD; border-color: #93C5FD; }

/* Acciones de tarjeta */
.srv-actions {
  display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border); width: 100%;
}
.srv-btn-sec {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--navy); background: transparent;
  border: 1.5px solid rgba(11,37,69,.25);
  border-radius: 40px; padding: .45rem 1rem;
  text-decoration: none; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}
.srv-btn-sec:hover { color: var(--sky); border-color: var(--sky); }
.srv-btn-pri {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--sky); background: rgba(46,125,209,.07);
  border: 1.5px solid rgba(46,125,209,.55);
  border-radius: 40px; padding: .45rem 1rem;
  text-decoration: none; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.srv-btn-pri:hover { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 24px rgba(27,79,138,.45); }

/* Botón cinta CTA */
.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; }

/* CTA final — cinta */
#srv-final-cta {
  position: relative;
  background: var(--bg);
  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) and (orientation:portrait) {
  .wa-float, .chat-float, .msg-float { width: 46px; height: 46px; }
  .wa-float img { width: 26px; height: 26px; }
  .chat-float svg { width: 20px; height: 20px; }
  .msg-float svg { width: 26px; height: 26px; }
}
@media(max-width:1100px) {
  .srv-btn-sec, .srv-btn-pri { font-size: .64rem; padding: .32rem .7rem; }
}
@media(max-width:960px) {
  .srv-g { gap: 1.5rem; }
  .srv { padding: 1.75rem 1.5rem; }
  .srv-d { font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
  .srv-ic svg { width: 72px !important; height: 72px !important; }
}
@media(max-width:640px) {
  .srv { padding: 1.5rem 1.25rem; }
  .srv-ic svg { width: 60px !important; height: 60px !important; }
}
@media(max-width:580px) {
  .srv-final-in { flex-direction: column; align-items: flex-start; }
  .srv-btn-sec, .srv-btn-pri { font-size: .82rem; padding: .45rem 1rem; }
}
@media(max-width:580px) and (orientation:portrait) {
  .srv-n { font-size: 1.45rem; }
}

/* ── Footer v1.3.2: tarjeta de contacto + logo AH ── */
footer { background: var(--navy); padding: 3.5rem 2rem 2rem; position: relative; }
[data-theme="dark"] footer { background: #080e1c; }
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%);
}
.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; }
