/* =========================
   Variables
========================= */
:root {
  --bg-1: #0b1020;
  --bg-2: #0f1630;
  --ink: #ffffff;
  --muted: #ffffff;
  --brand: #6ea8fe;
  --brand-2: #a78bfa;
  --glass: rgba(255,255,255,.06);
  --scroll: 0;
  --hero-parallax: 0px;
  --svc-bg: #0c1224;
  --svc-ink: #e7ebff;
  --svc-muted: #a8b1d8;
  --svc-accent: #8ec5ff;
  --svc-accent-2: #a78bfa;
  --svc-card: #0f1731;
  --svc-card-ink: #e7ecff;
  --svc-outline: rgba(255,255,255,.12);
}

/* =========================
   Body / Fondo animado
========================= */
html, body {
  background:
    radial-gradient(1200px 800px at 20% -10%, #1a2038 0%, #0b1020 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
  background-size: 200% 200%;
  animation: bg-pan 22s ease-in-out infinite alternate;
}
@keyframes bg-pan {
  from { background-position: left top, left top; }
  to { background-position: right bottom, right bottom; }
}
body {
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: calc(var(--scroll) * 100%);
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  z-index: 9999;
  pointer-events: none;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 { color: #fff; }

/* =========================
   Navbar
========================= */
.bg-glass {
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
  backdrop-filter: blur(12px);
}
.logo-glow {
  filter: drop-shadow(0 0 12px rgba(166,178,255,.3));
  animation: glow-pulse 4.2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(166,178,255,.22)); }
  50% { filter: drop-shadow(0 0 18px rgba(166,178,255,.65)); }
}
.nav-phone { color: var(--muted) !important; }
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff !important;
  opacity: 1 !important;
}

/* =========================
   Hero
========================= */
.gradient-hero {
  position: relative;
}
.hero-wrap .container {
  position: relative;
  z-index: 2;
}
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.gradient-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 85% 20%, rgba(167,139,250,.35), transparent 60%),
    radial-gradient(500px 300px at 10% 10%, rgba(110,168,254,.25), transparent 60%);
  pointer-events: none;
  animation: hero-bokeh 12s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes hero-bokeh {
  from { transform: translateY(-6px) scale(1); opacity: .9; }
  to { transform: translateY(6px) scale(1.02); opacity: 1; }
}
.hero-container {
  padding: 2.75rem 1rem;
  max-width: 1140px;
}
.device-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #000;
}
.hero-video {
  height: clamp(440px, 68vh, 720px);
  max-height: calc(100vh - 140px);
  aspect-ratio: 9/16;
  transform: translateY(var(--hero-parallax));
  transition: transform .2s linear;
}
.shadow-glow {
  box-shadow: 0 20px 60px rgba(97,141,255,.25), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.txt-gradient {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradient-shift 7s ease-in-out infinite alternate;
}
@keyframes gradient-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* =========================
   Casos (cards)
========================= */
:root { --case-ratio: 16/9; }

.case-card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: 1rem;
  padding: 1px;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform, box-shadow;
  animation: floaty 10s ease-in-out infinite;
  animation-delay: var(--float-delay, .6s);
  height: 100%;
}
.case-card__body{ padding: 1rem; }
.case-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(110,168,254,.25); }

.case-thumb{
  aspect-ratio: var(--case-ratio);
  width: 100%;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  background: #0b0f15;
}
.case-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform .6s ease;
}
.case-card:hover .case-thumb img{ transform: scale(1.06); }

@keyframes floaty{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

/* =========================
   Carrusel (Splide) — Casos
========================= */
#casos{ overflow: clip; }
#casos .splide__track{ overflow: hidden; }
#casos .splide__list{ align-items: stretch; }
#casos .splide__slide{ height: auto; }
#casos .splide .case-card{ height: 100%; }

#casos .splide{ --arrow-size: 40px; }
#casos .splide__arrow{
  width: var(--arrow-size);
  height: var(--arrow-size);
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
#casos .splide__arrow:hover{ background: rgba(255,255,255,.16); }
#casos .splide__arrow:disabled{ opacity: .3; }
@media (min-width: 992px){
  #casos .splide__arrow--prev{ left: .25rem; }
  #casos .splide__arrow--next{ right: .25rem; }
}

#casos .splide__pagination{ gap: .5rem; margin-top: 1rem; }
#casos .splide__pagination__page{ width: 8px; height: 8px; background: rgba(255,255,255,.25); }
#casos .splide__pagination__page.is-active{ transform: scale(1.25); background: rgba(110,168,254,.95); }

@media (prefers-reduced-motion: reduce){ .case-card{ animation: none !important; } }

/* =========================
   Listas con check
========================= */
.list-check { list-style: none; padding-left: 0; margin: 0; }
.list-check li { position: relative; padding-left: 28px; margin: .35rem 0; color: var(--ink); }
.list-check li::before {
  content: ""; width: 18px; height: 18px; position: absolute; left: 0; top: .15rem; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px rgba(255,255,255,.06) inset;
}

/* =========================
   Steps
========================= */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; }
.step-bullet {
  width: 12px; height: 12px; margin-top: .5rem; border-radius: 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 6px rgba(255,255,255,.06) inset;
}

/* =========================
   Métricas
========================= */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.metrics > div { background: var(--glass); border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; padding: 1.1rem 1.25rem; }
.metric {
  font-size: clamp(2.2rem, 5.2vw, 3rem); line-height: 1; font-weight: 800;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: metric-pulse 3.6s ease-in-out infinite;
}
@keyframes metric-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.label { display: block; margin-top: .35rem; color: var(--muted); }

/* =========================
   Habilidades
========================= */
.skill-card { position: relative; }
.skill-card .num {
  position: absolute; top: .75rem; right: .75rem; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================
   Contacto
========================= */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.ci-icon, .contact-item .ci, .footer-contacts .ci {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

.contact-item .ci i {
  font-size: 1.4rem;
  color: var(--ink);
  opacity: .9;
  transition: all 0.3s ease;
  animation: subtle-shake 5s infinite ease-in-out;
}

/* Keyframes para la animación de vibración sutil */
@keyframes subtle-shake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-4deg) scale(1.02); }
  75% { transform: rotate(4deg) scale(1.02); }
}

/* Retrasos para que cada ícono se mueva a su propio ritmo */
.contact-item:nth-of-type(1) .ci i { animation-delay: 0s; }
.contact-item:nth-of-type(2) .ci i { animation-delay: -1.2s; }
.contact-item:nth-of-type(3) .ci i { animation-delay: -2.4s; }
.contact-item:nth-of-type(4) .ci i { animation-delay: -3.6s; }
.contact-item:nth-of-type(5) .ci i { animation-delay: -4.8s; }


/* Efectos al pasar el cursor sobre el item de contacto */
.contact-item:hover .ci {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.contact-item:hover .ci i {
  transform: scale(1.1);
  opacity: 1;
  animation: none; 
}

/* Colores específicos para cada ícono en hover */
.contact-item:hover .bi-telephone { color: #6ea8fe; }
.contact-item:hover .bi-whatsapp { color: #25D366; }
.contact-item:hover .bi-facebook { color: #1877F2; }
.contact-item:hover .bi-envelope { color: #a78bfa; }
.contact-item:hover .bi-globe2 { color: #ffffff; }

/* Efecto en el texto */
.contact-item a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-item:hover a {
  color: #fff;
  transform: translateX(4px);
}

.qr-img {
  max-width: 260px;
  width: 100%;
  height: auto;
}
.cta-band { background: linear-gradient(135deg, #151a33, #0d1330); color: #fff; --bs-heading-color: #ffffff; }
.cta-band h1, .cta-band h2, .cta-band .h1, .cta-band .h2 { color: #ffffff !important; }
.btn-primary { box-shadow: 0 0 0 rgba(110,168,254,0); animation: btn-pulse 7s ease-in-out infinite; }
@keyframes btn-pulse { 0%, 100% { box-shadow: 0 0 0 rgba(110,168,254,0); transform: translateZ(0); } 50% { box-shadow: 0 0 22px rgba(110,168,254,.45); } }

/* =========================
   Contacto — Galería 1:1
========================= */
#contacto .info-gallery { width: 100%; max-width: clamp(320px, 36vw, 560px); margin: 0 auto; }
@media (min-width: 1400px){ #contacto .info-gallery { max-width: 600px; } }
#contacto .info-square { width: 100%; aspect-ratio: 1 / 1; border-radius: 1rem; overflow: hidden; background: #0b0f15; }
#contacto .info-square img { width: 100%; height: 100%; object-fit: cover; display: block; }
#contacto #info-carousel .splide__pagination { position: static; margin-top: .5rem; }

/* =========================
   Footer Social Buttons
========================= */
.site-footer {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-links li, .footer-contacts li { margin: .35rem 0; }
.footer-links a, .footer-contacts a { color: var(--ink); text-decoration: none; }
.footer-links li, .footer-contacts li {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: -8px;
}

.footer-links li:hover, .footer-contacts li:hover {
  background-color: rgba(255, 255, 255, 0.07);
  transform: translateX(8px);
}

.footer-links li:hover a, .footer-contacts li:hover a {
  color: #fff;
}
.social-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid rgba(255,255,255,.1);
  font-size: 1.3rem; color: var(--ink) !important; text-decoration: none;
  transition: all .3s cubic-bezier(.25, .8, .25, 1);
}
.social-btn:hover {
  border-color: transparent; transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.2); color: #fff !important;
}
.social-btn-facebook:hover { background-color: #1877F2; }
.social-btn-whatsapp:hover { background-color: #25D366; }
.social-btn-email:hover { background-color: #a78bfa; }

/* =========================
   Reveal on scroll
========================= */
[data-reveal] { will-change: transform, opacity; }
html.reveal-enabled [data-reveal] {
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .7s cubic-bezier(.25,1,.5,1), transform .7s cubic-bezier(.25,1,.5,1);
}
html.reveal-enabled [data-reveal="left"] { transform: translateX(-24px) scale(.98); }
html.reveal-enabled [data-reveal="right"] { transform: translateX(24px) scale(.98); }
html.reveal-enabled [data-reveal="up"] { transform: translateY(24px) scale(.98); }
html.reveal-enabled [data-reveal="down"] { transform: translateY(-24px) scale(.98); }
html.reveal-enabled [data-reveal="scale"] { transform: scale(.92); }
html.reveal-enabled [data-reveal].revealed { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(24px) scale(.98); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); transition: .6s cubic-bezier(.2,.8,.2,1); }
.shape-bottom { height: 40px; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); }

/* =========================
   Media Queries
========================= */
@media (max-width: 991.98px) {
  .hero-video { height: clamp(380px, 64vh, 640px); max-height: calc(100vh - 120px); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { display: none; }
}

/* =========================
   Overrides
========================= */
.text-secondary, .text-white-50 { color: #fff !important; opacity: 1 !important; }

/* =========================
   Servicios (ESTILO LISTA) — HOVER SUAVE
========================= */
.svc-list {
  position: relative; padding: clamp(3rem, 6vw, 6rem) 0; display: flex; justify-content: center;
  background: radial-gradient(1000px 600px at 20% -10%, #1a2246 0%, #0b1020 60%), linear-gradient(180deg, #0b1020, #0b1020);
  overflow: hidden; isolation: isolate;
}
.svc-list .container { width: 72%; max-width: 1100px; }
.svc-list .svc-header { text-align: center; margin-bottom: 3rem; }
.svc-list .svc-items { display: flex; flex-direction: column; gap: 2rem; }
.svc-list .svc-item {
  display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.15); cursor: default; border-radius: 12px;
  will-change: background, transform, box-shadow;
  transition: background 0.6s cubic-bezier(.22,.61,.36,1), transform 0.6s cubic-bezier(.22,.61,.36,1), box-shadow 0.6s cubic-bezier(.22,.61,.36,1);
}
.svc-list .svc-item:hover { background: rgba(255,255,255,.05); transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.svc-list .svc-icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(180deg,#0f1c44,#0b1433); box-shadow: 0 4px 12px #0006 inset, 0 2px 6px #0008;
}
.svc-list .svc-content h3 { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 700; }
.svc-list .svc-summary { margin: 0; font-size: 1rem; opacity: .9; text-align: justify; hyphens: auto; }
.svc-list .svc-detail { margin: 0; font-size: 1rem; line-height: 1.6; display: none; text-align: justify; hyphens: auto; }
.svc-list .svc-item:hover .svc-summary { display: none; }
.svc-list .svc-item:hover .svc-detail { display: block; }

/* Orbes de fondo */
.svc-list .orb {
  position: absolute; border-radius: 50%; filter: blur(120px); mix-blend-mode: screen; z-index: 0;
  background: radial-gradient(circle at 30% 30%, rgba(110,168,254,.55), transparent 70%);
  animation: orbDrift 22s ease-in-out infinite, orbBlink 7s ease-in-out infinite;
}
.svc-list .orb-a { left: -15vmin; top: 5vmin; width: 55vmin; height: 55vmin; animation-delay: -4s, -2s; }
.svc-list .orb-b { right: -20vmin; top: -10vmin; width: 65vmin; height: 65vmin; animation-delay: -8s, -4s; }
.svc-list .orb-c { right: 5vmin; bottom: -20vmin; width: 50vmin; height: 50vmin; animation-delay: -12s, -6s; }
@keyframes orbDrift { 0%{transform:translate(0,0) scale(1)} 25%{transform:translate(60px,-40px) scale(1.05)} 50%{transform:translate(100px,30px) scale(1.08)} 75%{transform:translate(-60px,40px) scale(1.12)} 100%{transform:translate(0,0) scale(1)} }
@keyframes orbBlink { 0%,100%{opacity:.45} 40%{opacity:1} 70%{opacity:.6} }
.svc-list .container, .svc-list .svc-items, .svc-list .svc-item { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .svc-list .container { width: 92%; } .svc-list .svc-item { gap: 1rem; }
  .svc-list .svc-icon { width: 48px; height: 48px; font-size: 1.4rem; }
  .svc-list .svc-content h3 { font-size: 1.1rem; }
  .svc-list .svc-summary, .svc-list .svc-detail { font-size: .95rem; }
}
@media (max-width: 480px) {
  .svc-list .svc-item { align-items: stretch; }
  .svc-list .svc-icon { width: 44px; height: 44px; font-size: 1.25rem; }
}

/* Utilidad de tarjeta "glass" */
.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.skill-card{ background: var(--glass); border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; overflow: hidden; }

/* =========================
   WhatsApp Flotante
========================= */
.whatsapp-flotante {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 85px;
  height: 85px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  animation: pulse-whatsapp 2.5s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-flotante i {
  font-size: 3rem;
  transition: transform 0.3s ease-in-out;
  line-height: 1;
}

.whatsapp-flotante:hover {
  transform: scale(1.1);
  animation: none;
  color: #FFF;
}

.whatsapp-flotante:hover i {
  transform: rotate(15deg);
}

@keyframes pulse-whatsapp {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-flotante {
    width: 65px;
    height: 65px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-flotante i {
    font-size: 2.2rem;
  }
}
/* =========================
   Ajuste de Iconos en Footer
========================= */
.footer-contacts .ci {
  width: 37px;
  height: 37px;
}

.footer-contacts .ci i {
  font-size: 1rem;
}