/* ============================================================
   AF WEB STUDIO — Stylesheet
   1. Tokens & resets
   2. Animations & utilities
   3. Navbar
   4. Hero
   5. Services (home grid + service detail)
   6. Why us
   7. Stats
   8. Testimonials
   9. CTA banner
   10. Contact form
   11. Footer
   12. FAB (floating social)
   13. Portfolio
   14. Scroll progress + reveal
   15. Responsive
   ============================================================ */

/* ---------- 1. Tokens & resets ---------- */
:root{
  --blue-main: #00d4ff;
  --blue-light: #72e4ff;
  --blue-dark: #080b15;
  --blue-900: #030611;
  --blue-700: #0051ff;
  --brand-blue: #0088ff;
  --blue-500: #00d4ff;
  --blue-300: #a0d8ff;
  --blue-100: #111624;
  --white: #ffffff;
  --ink: #0b2d5c;
  --ink-soft: rgba(11, 45, 92, 0.85);
  --ink-muted: rgba(11, 45, 92, 0.6);
  --surface: #ffffff;
  --surface-2: #f4f7ff;
  --shadow-sm: 0 4px 14px rgba(8, 42, 77, 0.08);
  --shadow-md: 0 14px 38px rgba(8, 42, 77, 0.12);
  --shadow-lg: 0 26px 60px rgba(13, 110, 253, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.2, 0.9, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  color: var(--white);
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-100) 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.025em;
  font-weight: 700;
  font-variation-settings: "opsz" 32;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; font-variation-settings: "opsz" 64; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
p  { font-size: 1rem; }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

a { transition: color .2s ease; }

::selection { background: rgba(0, 212, 255, 0.35); color: #fff; }

/* ---------- 2. Animations & utilities ---------- */
@keyframes fadeUp     { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }
@keyframes float-y    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseRing  { 0% { box-shadow: 0 0 0 0 rgba(0,212,255,.55); } 70% { box-shadow: 0 0 0 18px rgba(0,212,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); } }
@keyframes fabRipple  { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmer    { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes spinSlow   { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.text-blue       { color: var(--blue-main) !important; }
.text-blue-dark  { color: var(--blue-dark) !important; }
.text-white      { color: var(--white) !important; }
.bg-blue-light   { background: var(--blue-light); }
.bg-blue-dark    { background: var(--blue-dark); }
.text-muted-blue { color: var(--ink-muted); }

/* ---------- 3. Navbar ---------- */
.glass-navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 21, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15) !important;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease, height .3s ease;
  height: calc(96px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.glass-navbar .container { display: flex; align-items: center; }
.glass-navbar .navbar-nav { gap: 1rem; }

.glass-navbar.is-scrolled{
  height: calc(72px + env(safe-area-inset-top, 0px));
  background: rgba(8, 11, 21, 0.96) !important;
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}
.glass-navbar.is-scrolled .navbar-brand,
.glass-navbar.is-scrolled .navbar-brand img { height: 72px; }
.glass-navbar.is-scrolled .navbar-brand img { transform: translateY(-2px) scale(0.85); }

.navbar-brand { height: 96px; display: flex; align-items: center; transition: height .3s ease; }
.navbar-brand img {
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.35));
  transition: transform .3s ease, height .3s ease, filter .3s ease;
}
.navbar-brand:hover img { filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.6)); }

.glass-navbar .nav-link{
  color: var(--white) !important;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0.75rem;
  transition: color .2s ease, transform .2s ease;
}
.glass-navbar .nav-link::after{
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--brand-blue));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.is-active{ color: var(--blue-500) !important; }
.glass-navbar .nav-link:hover::after,
.glass-navbar .nav-link.is-active::after{ transform: scaleX(1); }

.glass-navbar .nav-link-contact{
  border: 2px solid var(--blue-500);
  border-radius: 12px;
  padding: 0.5rem 1.25rem !important;
  margin-left: 1rem;
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
  font-weight: 700 !important;
}
.glass-navbar .nav-link-contact::after { display: none; }
.glass-navbar .nav-link-contact:hover{
  background: var(--blue-500) !important;
  color: var(--blue-dark) !important;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.45);
  transform: translateY(-2px);
}

/* Animated hamburger button */
.navbar-toggler{
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.35) !important;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.18) !important;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.navbar-toggler:hover{
  background: rgba(0, 212, 255, 0.18);
  border-color: rgba(0, 212, 255, 0.6) !important;
  transform: translateY(-1px);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.35) !important; }
.navbar-toggler[aria-expanded="true"]{
  background: rgba(0, 212, 255, 0.22);
  border-color: var(--blue-500) !important;
}

/* Three-line hamburger: middle = .navbar-toggler-icon itself,
   top = ::before, bottom = ::after */
.navbar-toggler .navbar-toggler-icon{
  background-image: none;
  width: 22px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
  display: block;
  position: relative;
  transition: background-color .2s ease;
}
.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
  transition: transform .35s var(--ease-spring), top .3s ease;
}
.navbar-toggler .navbar-toggler-icon::before { top: -7px; }
.navbar-toggler .navbar-toggler-icon::after  { top:  7px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon{
  background: transparent;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before{
  top: 0;
  transform: rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after{
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- 4. Hero (single consolidated block) ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-image: url("/static/img/hero.553bc55cfe74.jpg?v=1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 600px at 20% 10%, rgba(0,212,255,.25), transparent 55%),
              radial-gradient(700px 500px at 85% 90%, rgba(0,81,255,.30), transparent 60%);
  z-index: 0;
  animation: gradientShift 14s ease-in-out infinite;
  background-size: 200% 200%;
}
.hero-overlay{
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(37,99,235,0.78) 0%, rgba(8,11,21,0.72) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}
.hero-overlay::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 30%, rgba(255,255,255,.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,.4) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 45% 80%, rgba(255,255,255,.35) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 65% 15%, rgba(255,255,255,.5) 50%, transparent 50%);
  background-size: 300px 300px;
  opacity: .55;
  animation: float-y 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 6rem 1.25rem 4rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
  animation: fadeUp .7s var(--ease-out) both;
}
.hero-badge .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #00ffae;
  box-shadow: 0 0 0 0 rgba(0,255,174,.7);
  animation: pulseRing 2s infinite;
}
.hero-content h1{
  color: var(--white) !important;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
  text-shadow: 0 4px 22px rgba(0,0,0,.25);
  animation: fadeUp .8s .1s var(--ease-out) both;
}
.hero-content h1 .accent{
  background: linear-gradient(135deg, var(--blue-500), #aef0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p{
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 0 0 2rem;
  opacity: .95;
  max-width: 720px;
  animation: fadeUp .8s .2s var(--ease-out) both;
}
.hero-buttons{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .8s .3s var(--ease-out) both;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, filter .25s ease, background .25s ease;
}
.hero-buttons .btn-primary{
  background: var(--white);
  color: var(--brand-blue);
  border: none;
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}
.hero-buttons .btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.28); filter: brightness(1.02); }
.hero-buttons .btn-secondary{
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
}
.hero-buttons .btn-secondary:hover{
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-3px);
}
/* Ripple effect on hero buttons */
.hero-buttons .btn-primary::after,
.hero-buttons .btn-secondary::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: translate(-50%,-50%);
  transition: width .55s ease, height .55s ease, opacity .55s ease;
  opacity: 0;
}
.hero-buttons .btn-primary:hover::after,
.hero-buttons .btn-secondary:hover::after{ width: 260px; height: 260px; opacity: 1; }

/* Scroll hint */
.hero-scroll-hint{
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.hero-scroll-hint .mouse{
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint .mouse::after{
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot{ 0%{opacity:1; transform:translateY(0);} 60%{opacity:0; transform:translateY(12px);} 100%{opacity:0;} }

/* ---------- 5. Services ---------- */
.home-services-section { padding: 5rem 0; background: linear-gradient(180deg, var(--blue-100) 0%, var(--blue-dark) 100%); }
.home-services-header .home-services-title{ font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: .4rem; }
.home-services-header .home-services-subtitle{ max-width: 640px; margin: 0 auto; color: rgba(255,255,255,0.72); }
.home-services-grid { row-gap: 2.25rem; }

.service-card-premium{
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 110, 253, 0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.service-card-premium::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,212,255,0), rgba(0,212,255,0.6), rgba(0,81,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.service-card-premium:hover{ transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card-premium:hover::before{ opacity: 1; }

.service-card-image{ position: relative; overflow: hidden; height: 230px; }
.service-card-image img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
.service-card-image::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,42,77,0.55), rgba(8,42,77,0.15) 55%, rgba(8,42,77,0) 100%);
  pointer-events: none;
}
.service-card-premium:hover .service-card-image img{ transform: scale(1.06); }

.service-card-content{ padding: 1.75rem 1.9rem 2rem; }
.service-card-title{ font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .55rem; }
.service-card-text{ font-size: .98rem; color: var(--ink-soft); }
.service-card-hint{ margin-top: .4rem; margin-bottom: .9rem; font-size: .82rem; color: var(--ink-muted); }

.btn-service-cta{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue-700), var(--brand-blue));
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.30);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-service-cta__icon { transition: transform .25s ease; display: inline-block; }
.btn-service-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.40);
  filter: brightness(1.05);
  color: #fff;
}
.btn-service-cta:hover .btn-service-cta__icon { transform: translateX(4px); }

/* ---------- Service detail pages ---------- */
.service-detail-hero{
  padding: 5rem 0 3.5rem;
  background:
    radial-gradient(900px 280px at 75% 10%, rgba(77,163,255,0.26), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
}
.service-detail-tag{
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 110, 253, 0.10);
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.service-detail-title{ font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--ink); margin-bottom: .75rem; }
.service-detail-lead{ font-size: 1.02rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.service-detail-hero-image{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(13,110,253,0.20);
  transform: perspective(800px) rotateY(-3deg);
  transition: transform .5s var(--ease-out);
}
.service-detail-hero-image:hover { transform: perspective(800px) rotateY(0deg) translateY(-4px); }
.service-detail-hero-image img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.btn-service-primary{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(13,110,253,0.30);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-service-primary__icon { transition: transform .25s ease; }
.btn-service-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(13,110,253,0.40);
  filter: brightness(1.05);
  color: #fff;
}
.btn-service-primary:hover .btn-service-primary__icon { transform: translateX(4px); }

.service-detail-section{
  padding: 4.5rem 0;
  background: #ffffff;
  color: var(--ink);
}
.service-detail-section p{ color: var(--ink-soft); }
.service-detail-section--muted{ background: var(--surface-2); }

/* ==========================
   Service Showcase (rich layout)
   ========================== */
.service-showcase{
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(0,212,255,0.10), transparent 55%),
    radial-gradient(800px 500px at 100% 100%, rgba(0,81,255,0.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}
.service-showcase--flip{
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(0,81,255,0.10), transparent 55%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,212,255,0.12), transparent 55%),
    linear-gradient(180deg, #f3f8ff 0%, #ffffff 100%);
}

/* Floating decorative blobs */
.service-showcase::before,
.service-showcase::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.service-showcase::before{
  width: 320px; height: 320px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(0,212,255,0.35), transparent 70%);
}
.service-showcase::after{
  width: 280px; height: 280px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(0,81,255,0.30), transparent 70%);
}

.service-showcase .container{ position: relative; z-index: 1; }

.service-showcase__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-showcase--flip .service-showcase__visual{ order: 2; }
.service-showcase--flip .service-showcase__content{ order: 1; }

/* ---------- Visual side ---------- */
.service-showcase__visual{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.service-showcase__halo{
  position: absolute;
  inset: 6% 6%;
  border-radius: 50%;
  background:
    conic-gradient(from 120deg, rgba(0,212,255,.45), rgba(0,81,255,.35), rgba(0,212,255,.45));
  filter: blur(48px);
  opacity: .55;
  z-index: 0;
  animation: spinHalo 18s linear infinite;
}
.service-showcase__frame{
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  border: 1px solid rgba(0,212,255,0.25);
  box-shadow:
    0 30px 70px rgba(0, 81, 255, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1;
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.service-showcase__frame:hover{
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow:
    0 40px 90px rgba(0, 81, 255, 0.30),
    0 8px 24px rgba(0, 0, 0, 0.08);
}
.service-showcase__frame::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,212,255,0.7), transparent 40%, rgba(0,81,255,0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.service-showcase__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 16px 28px rgba(0, 81, 255, 0.18));
  animation: floatGentle 6s ease-in-out infinite;
}

/* ---------- Floating chips ---------- */
.service-showcase__chip{
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: #ffffff;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow:
    0 14px 32px rgba(0, 81, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.25);
  z-index: 2;
  white-space: nowrap;
  animation: floatChip 5s ease-in-out infinite;
}
.service-showcase__chip i{
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
}
.service-showcase__chip--1{ top: 8%;  left: -2%;  animation-delay: 0s; }
.service-showcase__chip--2{ top: 42%; right: -6%; animation-delay: 1.2s; }
.service-showcase__chip--3{ bottom: 6%; left: 10%; animation-delay: 2.4s; }

.service-showcase__chip--purple i{ background: linear-gradient(135deg, #8b5cf6, #c084fc); }
.service-showcase__chip--green i { background: linear-gradient(135deg, #10b981, #34d399); }
.service-showcase__chip--orange i{ background: linear-gradient(135deg, #f59e0b, #fbbf24); }

/* ---------- Content side ---------- */
.service-showcase__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(0,81,255,0.12), rgba(0,212,255,0.12));
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.service-showcase__eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 8px var(--blue-500);
}
.service-showcase__title{
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.service-showcase__lead{
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

/* Rich list with check icons */
.service-features-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.service-features-list li{
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .8rem 1rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 14px;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.45;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.service-features-list li:hover{
  transform: translateX(4px);
  border-color: rgba(0,212,255,0.45);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 22px rgba(0,81,255,0.10);
}
.service-features-list li::before{
  content: "\F26B"; /* bi-check-lg */
  font-family: "bootstrap-icons";
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 6px 14px rgba(0,81,255,.30);
}

/* Numbered steps list (for "Nuestro proceso") */
.service-steps-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.service-steps-list li{
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  background: #ffffff;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0,81,255,0.06);
  counter-increment: step;
  transition: transform .25s var(--ease-out), box-shadow .25s ease;
}
.service-steps-list li:hover{
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(0,81,255,0.12);
}
.service-steps-list li::before{
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: .85rem; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 8px 18px rgba(0,81,255,.30);
}

/* Animations */
@keyframes floatGentle{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatChip{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes spinHalo{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .service-showcase__img,
  .service-showcase__chip,
  .service-showcase__halo{ animation: none; }
}

@media (max-width: 991.98px){
  .service-showcase{ padding: 4rem 0; }
  .service-showcase__grid{ grid-template-columns: 1fr; gap: 3rem; }
  .service-showcase--flip .service-showcase__visual{ order: 1; }
  .service-showcase--flip .service-showcase__content{ order: 2; }
  .service-showcase__visual{ min-height: 380px; }
  .service-showcase__frame{ max-width: 380px; }
}

@media (max-width: 575.98px){
  .service-showcase{ padding: 3rem 0; }
  .service-showcase__visual{ min-height: 320px; }
  .service-showcase__frame{ max-width: 300px; padding: 1.25rem; }
  .service-showcase__chip{ font-size: .72rem; padding: .45rem .75rem; }
  .service-showcase__chip i{ width: 22px; height: 22px; font-size: .8rem; }
  .service-showcase__chip--1{ top: 4%;  left: 2%; }
  .service-showcase__chip--2{ top: 45%; right: 0%; }
  .service-showcase__chip--3{ bottom: 2%; left: 8%; }
}
.service-detail-subtitle{ font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 800; color: var(--ink); margin-bottom: 1rem; }
.service-detail-list, .service-detail-steps{ margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.service-detail-list li, .service-detail-steps li{ margin-bottom: .55rem; }

.service-detail-cta-box{
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
  border-radius: var(--radius-lg);
  padding: 2rem 2.1rem;
  box-shadow: 0 18px 46px rgba(8,42,77,0.15);
  position: relative;
  overflow: hidden;
}
.service-detail-cta-box::before{
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.18), transparent 70%);
}
.service-detail-cta-box h3{ font-size: 1.3rem; font-weight: 800; margin-bottom: .6rem; color: var(--ink); }
.service-detail-cta-box p{ margin-bottom: 1rem; color: var(--ink-soft); }

/* ---------- 6. Why us ---------- */
.why-us{ padding: 5rem 0; background: var(--blue-dark); position: relative; overflow: hidden; }
.why-us::before{
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,.08), transparent 70%);
  pointer-events: none;
}
.why-us__tag{
  display: inline-block;
  background: rgba(0,212,255,.10);
  color: var(--blue-500);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: .8rem;
}
.why-us__title{ font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: .4rem; }
.why-us__subtitle{ font-size: 1.05rem; color: rgba(255,255,255,.6); }

.why-card{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(13,110,253,.06);
  box-shadow: 0 4px 20px rgba(13,110,253,.05);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.why-card::after{
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.06), transparent);
  transition: left .8s ease;
}
.why-card:hover{ transform: translateY(-10px); box-shadow: 0 22px 50px rgba(13,110,253,.16); }
.why-card:hover::after{ left: 100%; }

.why-card__icon{
  width: 64px; height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  color: #fff;
  transition: transform .35s var(--ease-spring);
}
.why-card:hover .why-card__icon{ transform: scale(1.12) rotate(-6deg); }
.why-card__icon--blue   { background: linear-gradient(135deg,#0d6efd,#4da3ff); box-shadow: 0 8px 20px rgba(13,110,253,.25); }
.why-card__icon--purple { background: linear-gradient(135deg,#8b5cf6,#c084fc); box-shadow: 0 8px 20px rgba(139,92,246,.25); }
.why-card__icon--green  { background: linear-gradient(135deg,#10b981,#34d399); box-shadow: 0 8px 20px rgba(16,185,129,.25); }
.why-card__icon--orange { background: linear-gradient(135deg,#f59e0b,#fbbf24); box-shadow: 0 8px 20px rgba(245,158,11,.25); }

.why-card__title{ font-weight: 800; color: var(--ink); margin-bottom: .5rem; font-size: 1.1rem; }
.why-card__desc { color: var(--ink-muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ---------- 7. Stats ---------- */
.stats-section{
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #0b2d5c 0%, #0d6efd 60%, #4da3ff 100%);
  position: relative;
  overflow: hidden;
}
.stats-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0,212,255,.18), transparent 35%);
  pointer-events: none;
}
.stat-card{
  text-align: center;
  color: #fff;
  padding: 1.5rem 1rem;
}
.stat-number{
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #ffffff, #aef0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Variante para stats de texto en vez de número (ej: "Gratis") */
.stat-number--text{
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.01em;
  font-style: italic;
  font-weight: 800;
}
.stat-label{
  margin-top: .5rem;
  font-size: .95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
}

/* ---------- 8. Testimonials ---------- */
.testimonials-section{
  padding: 5rem 0;
  background: var(--blue-dark);
}
.testimonials-section .section-eyebrow{
  display: inline-block;
  background: rgba(0,212,255,.10);
  color: var(--blue-500);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: .75rem;
}
.testimonials-section h2{
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .4rem;
}
.testimonials-section .section-subtitle{ color: rgba(255,255,255,.6); }

.testimonial-card{
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(0,212,255,.18);
}
.testimonial-card::before{
  content: "“";
  position: absolute;
  top: -18px; left: 18px;
  font-size: 5rem;
  line-height: 1;
  color: var(--blue-500);
  font-family: Georgia, serif;
  text-shadow: 0 4px 12px rgba(0,212,255,.4);
}
.testimonial-text{ color: var(--ink-soft); font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author{ display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--ink); margin: 0; }
.testimonial-role { font-size: .85rem; color: var(--ink-muted); margin: 0; }
.testimonial-stars{ color: #f59e0b; letter-spacing: 2px; margin-bottom: .6rem; font-size: .95rem; }

/* ---------- 8.5. Service areas (SEO local) ---------- */
.service-areas-section{
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--blue-dark), var(--blue-100));
  position: relative;
  overflow: hidden;
}
.service-areas-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(0,212,255,0.08), transparent 60%);
  pointer-events: none;
}
.service-areas-section .container { position: relative; z-index: 1; }

.service-areas-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-area-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.25rem;
  text-align: center;
  transition: transform .3s var(--ease-out), border-color .3s ease, background .3s ease, box-shadow .3s ease;
  color: var(--white);
}
.service-area-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 16px 38px rgba(0,212,255,0.18);
}
.service-area-card--featured{
  background: linear-gradient(135deg, rgba(0,81,255,0.18), rgba(0,212,255,0.10));
  border-color: rgba(0,212,255,0.45);
  box-shadow: 0 10px 28px rgba(0,81,255,0.18);
}
.service-area-card--featured .service-area-card__icon{
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,212,255,0.35);
}
.service-area-card__icon{
  width: 52px; height: 52px;
  margin: 0 auto .8rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(0,212,255,0.10);
  color: var(--blue-500);
  transition: transform .3s var(--ease-spring);
}
.service-area-card:hover .service-area-card__icon{ transform: scale(1.1) rotate(-5deg); }
.service-area-card__city{
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 .35rem;
}
.service-area-card__desc{
  font-size: .85rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 991.98px){
  .service-areas-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px){
  .service-areas-grid{ grid-template-columns: 1fr; }
}

/* ---------- 9. CTA banner ---------- */
.cta-banner{
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.15), transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(0,0,0,.18), transparent 40%);
}
.cta-banner__inner{ position: relative; z-index: 2; color: #fff; }
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: .6rem; }
.cta-banner p  { color: rgba(255,255,255,.92); margin-bottom: 1.5rem; }
.btn-cta-white{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #fff;
  color: var(--blue-700);
  padding: .9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn-cta-white:hover{ transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.25); color: var(--blue-700); }

/* ---------- 10. Contact form ---------- */
.contact-section{
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--blue-dark), var(--blue-100));
}
.contact-section h2{ color: var(--white); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.contact-section .subtitle { color: rgba(255,255,255,.7); }

.contact-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,.18);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.contact-card .form-floating { position: relative; }
.contact-card .form-floating > .form-control,
.contact-card .form-floating > .form-control:focus{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
/* Placeholder must stay transparent for Bootstrap floating-label to work */
.contact-card .form-floating > .form-control::placeholder{ color: transparent; }
.contact-card .form-floating > .form-control:focus{
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0,212,255,.18);
  background: rgba(255,255,255,0.08);
}
.contact-card .form-floating > label{
  color: rgba(255,255,255,.55);
  padding: 1rem 0.85rem;
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
/* Hide Bootstrap's default white label background pill (it shows as a strip on dark theme) */
.contact-card .form-floating > label::after{
  background-color: transparent !important;
}
.contact-card .form-floating > .form-control:focus ~ label,
.contact-card .form-floating > .form-control:not(:placeholder-shown) ~ label{
  color: var(--blue-500);
  opacity: 1;
}
.contact-card textarea.form-control { min-height: 140px; }
.contact-card .form-floating > textarea.form-control{ padding-top: 1.625rem; }
/* Autofill compatibility: keep dark glass look */
.contact-card .form-floating > .form-control:-webkit-autofill,
.contact-card .form-floating > .form-control:-webkit-autofill:focus{
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(8, 11, 21, 0.95) inset;
  caret-color: #fff;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}

.btn-submit{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.8rem;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 32px rgba(0, 81, 255, .35);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-submit:hover{ transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0, 81, 255, .45); filter: brightness(1.05); color:#fff; }
.btn-submit.is-loading{ pointer-events: none; opacity: .85; }
.btn-submit.is-loading .btn-submit__label { opacity: .35; }
.btn-submit .spinner{
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  display: none;
  animation: spinSlow .8s linear infinite;
}
.btn-submit.is-loading .spinner { display: block; }

.contact-info{ display: grid; gap: 1.25rem; margin-top: 1rem; }
.contact-info-item{
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,.12);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.contact-info-item:hover{ transform: translateY(-3px); background: rgba(0,212,255,.08); border-color: rgba(0,212,255,.4); color: #fff; }
.contact-info-item__icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-info-item__title { font-weight: 700; margin: 0; font-size: .95rem; }
.contact-info-item__value { font-size: .85rem; color: rgba(255,255,255,.7); margin: 0; }

/* ---------- 11. Footer ---------- */
.site-footer{
  background: linear-gradient(180deg, #0b1220 0%, #060912 100%);
  color: #e6eefc;
  padding: 64px 0 24px;
  position: relative;
  border-top: 1px solid rgba(0,212,255,.10);
}
.site-footer::before{
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(820px, 90%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: .55;
}

.footer-col{ padding: 0 .5rem; }

.footer-title{
  color: var(--blue-300);
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  position: relative;
  padding-bottom: .65rem;
}
.footer-title::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), transparent);
  border-radius: 2px;
}
.text-md-end .footer-title::after,
.text-center .footer-title::after{ left: auto; }
.text-md-end .footer-title::after{ right: 0; background: linear-gradient(270deg, var(--blue-500), transparent); }
.text-center .footer-title::after{ left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--blue-500), transparent); }

.site-footer .footer-line{
  margin: 0 0 .75rem;
  color: rgba(255,255,255,0.78);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  transition: color .25s ease, transform .25s ease;
}
.site-footer .footer-line a{
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.site-footer .footer-line a:hover{ color: var(--blue-500); }
.site-footer .text-md-end .footer-line a:hover{ transform: translateX(-3px); }
.site-footer .footer-line a::before{
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.site-footer .footer-line a:hover::before{ opacity: 1; transform: translateX(0); }
.site-footer .text-md-end .footer-line{ justify-content: flex-end; }

.site-footer .footer-icon{
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  filter: brightness(0) invert(1);
  opacity: .65;
  flex-shrink: 0;
}

.site-footer .footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  margin-top: 36px;
}

/* Acceso staff camuflado al panel admin */
.staff-access{
  display: inline-block;
  color: rgba(255, 255, 255, 0.10);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  transition: color .35s ease, background .35s ease, letter-spacing .25s ease;
  user-select: none;
}
.staff-access:hover,
.staff-access:focus{
  color: rgba(0, 212, 255, 0.85);
  background: rgba(0, 212, 255, 0.06);
  letter-spacing: 0.10em;
  text-decoration: none;
  outline: none;
}
.site-footer small, .site-footer .text-muted{ color: rgba(255,255,255,0.65) !important; }

/* Social icons row */
.socials{
  gap: .85rem;
  flex-wrap: wrap;
}
.social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,212,255,0.18);
  transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  text-decoration: none;
  position: relative;
}
.social::after{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.25), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.social:hover{
  transform: translateY(-5px) scale(1.08);
  background: rgba(0,212,255,0.10);
  border-color: rgba(0,212,255,0.55);
  box-shadow: 0 12px 28px rgba(0,212,255,.28);
}
.social:hover::after{ opacity: 1; }
.social-icon-img{
  width: 24px; height: 24px;
  display: block;
  object-fit: contain;
}

/* Footer brand block in CONTACTO column */
.footer-brand{
  font-size: .92rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1.25rem;
  max-width: 320px;
}

/* ---------- 12. FAB (floating social) ---------- */
.fab-container{
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fab-main{
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  border: 2px solid rgba(255,255,255,0.22);
  box-shadow:
    0 8px 22px rgba(0, 81, 255, 0.40),
    0 0 30px rgba(0, 212, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  outline: none;
  transition: transform .45s var(--ease-spring), background .3s ease, box-shadow .3s ease;
  position: relative;
}

/* Ripple sutil: dos rings concéntricos que se expanden poco y se desvanecen */
.fab-main::before,
.fab-main::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  pointer-events: none;
  z-index: -1;
  animation: fabRipple 2.4s cubic-bezier(0.25, 0.6, 0.30, 1) infinite;
}
.fab-main::after{ animation-delay: 1.2s; }

.fab-main:hover{
  transform: scale(1.08);
  box-shadow:
    0 14px 32px rgba(0, 81, 255, 0.55),
    0 0 40px rgba(0, 212, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.fab-main i { transition: transform .45s var(--ease-spring); display: inline-block; }
.fab-main.active i { transform: rotate(135deg); }
.fab-main.active::before,
.fab-main.active::after{ animation: none; opacity: 0; }

@media (prefers-reduced-motion: reduce){
  .fab-main::before, .fab-main::after{ animation: none; opacity: 0; }
}

.fab-social-list{
  display: flex; flex-direction: column; gap: .8rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s var(--ease-spring);
}
.fab-social-list.active{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.social-item{
  width: 50px; height: 50px;
  background: rgba(3, 6, 17, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.40);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(16px) scale(.85);
  transition: opacity .35s ease, transform .35s var(--ease-spring), background .25s ease, color .25s ease, box-shadow .25s ease;
}
.fab-social-list.active .social-item{ opacity: 1; transform: translateY(0) scale(1); }
.fab-social-list.active .social-item:nth-child(1) { transition-delay: .05s; }
.fab-social-list.active .social-item:nth-child(2) { transition-delay: .10s; }
.fab-social-list.active .social-item:nth-child(3) { transition-delay: .15s; }
.fab-social-list.active .social-item:nth-child(4) { transition-delay: .20s; }
.social-item:hover{
  background: var(--blue-500);
  color: var(--blue-dark);
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 0 24px rgba(0, 212, 255, .55);
}

/* ---------- 13. Portfolio ---------- */
.portfolio-card{
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(13,110,253,0.08);
  position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
  height: 100%;
}
.portfolio-card:hover{
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,212,255,0.45);
  color: var(--ink);
}

.portfolio-card__browser{
  display: flex;
  flex-direction: column;
  background: #f4f7ff;
}
.portfolio-card__browser-bar{
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .9rem;
  background: linear-gradient(180deg, #f8fafc, #e9eef7);
  border-bottom: 1px solid rgba(13,110,253,0.08);
}
.portfolio-card__dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.portfolio-card__dot--red    { background: #ff5f57; }
.portfolio-card__dot--yellow { background: #febc2e; }
.portfolio-card__dot--green  { background: #28c840; }
.portfolio-card__url{
  margin-left: .55rem;
  flex: 1;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: .25rem .75rem;
  font-size: .78rem;
  color: rgba(11,45,92,0.7);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(13,110,253,0.08);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portfolio-card__url i { color: #10b981; font-size: .7rem; }

.portfolio-card__preview{
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-card__initials{
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 24px rgba(0,0,0,0.25);
  z-index: 2;
  transition: transform .5s var(--ease-out);
}
.portfolio-card:hover .portfolio-card__initials{ transform: scale(1.08); }

.portfolio-card__logo{
  position: relative;
  z-index: 2;
  max-width: 70%;
  max-height: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.35));
  transition: transform .5s var(--ease-out);
}
.portfolio-card__logo--invert{
  filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(255,255,255,0.18));
}
.portfolio-card:hover .portfolio-card__logo{ transform: scale(1.06); }
.portfolio-card__shine{
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .8s var(--ease-out);
  z-index: 1;
}
.portfolio-card:hover .portfolio-card__shine{ left: 130%; }

.portfolio-card__body{ padding: 1.4rem 1.5rem 1.6rem; }
.portfolio-card__title{
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.portfolio-card__category{
  font-size: .88rem;
  color: var(--ink-muted);
  margin: 0 0 .9rem;
}
.portfolio-card__cta{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--blue-700);
  transition: gap .25s ease, color .25s ease;
}
.portfolio-card:hover .portfolio-card__cta{ gap: .7rem; color: var(--brand-blue); }

/* Backwards-compatible (legacy) portfolio card style — kept minimal */
.portfolio-item{
  border: none;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.portfolio-item img{ height: 180px; width: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item .card-body { color: var(--ink); }

/* ---------- 14. Scroll progress + reveal ---------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-500), var(--brand-blue), var(--blue-500));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
  z-index: 1100;
  transition: width .08s linear;
  box-shadow: 0 0 12px rgba(0, 212, 255, .6);
}

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal--left { transform: translateX(-28px); }
.reveal--right{ transform: translateX(28px); }
.reveal--zoom { transform: scale(.92); }
.reveal.is-visible{ opacity: 1; transform: none; }

/* Stagger helper (Bootstrap rows) */
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-stagger.is-visible > *{ opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .55s; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 991.98px){
  .glass-navbar{ height: calc(80px + env(safe-area-inset-top, 0px)); }
  .glass-navbar.is-scrolled{ height: calc(64px + env(safe-area-inset-top, 0px)); }
  .navbar-brand, .navbar-brand img { height: 80px; }
  .glass-navbar.is-scrolled .navbar-brand, .glass-navbar.is-scrolled .navbar-brand img { height: 64px; }

  .navbar-collapse{
    background: rgba(8, 11, 21, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 0 0 16px 16px;
    margin-top: .5rem;
    border-top: 1px solid rgba(0,212,255,.18);
  }
  .glass-navbar .navbar-nav { gap: .2rem; }
  .glass-navbar .nav-link{
    padding: .85rem .5rem !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .glass-navbar .nav-link::after{ display: none; }
  .glass-navbar .nav-link-contact{
    margin: .85rem 0 0 !important;
    text-align: center;
    border-bottom: none;
  }
}

@media (max-width: 767.98px){
  .hero{ min-height: 92vh; }
  .hero-content{ padding: 5rem 1rem 3.5rem; }
  .hero-content h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-content p  { font-size: 1rem; }
  .hero-buttons    { flex-direction: column; width: 100%; }
  .hero-buttons .btn-primary, .hero-buttons .btn-secondary{ width: 100%; justify-content: center; }
  .hero-scroll-hint{ display: none; }

  .home-services-section { padding: 3.5rem 0; }
  .service-card-image    { height: 200px; }
  .service-card-content  { padding: 1.5rem 1.4rem 1.8rem; }

  .why-card{ padding: 1.75rem 1.3rem; }
  .why-card__icon{ width: 56px; height: 56px; font-size: 1.4rem; }

  .stat-card { padding: 1rem .5rem; }

  .testimonial-card{ padding: 1.5rem 1.4rem; }

  .contact-card { padding: 1.75rem 1.25rem; }
  .contact-section { padding: 3.5rem 0; }

  .site-footer{ padding: 48px 0 20px; }
  .site-footer .footer-col{ text-align: center; }
  .site-footer .footer-title::after{ left: 50% !important; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--blue-500), transparent) !important; }
  .site-footer .footer-line{ justify-content: center; }
  .site-footer .text-md-end .footer-line{ justify-content: center; }
  .site-footer .footer-brand{ margin-left: auto; margin-right: auto; }
  .site-footer .socials { justify-content: center; }
  .site-footer .footer-bottom{ flex-direction: column; text-align: center; gap: .35rem; }

  .fab-container{
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .fab-main { width: 54px; height: 54px; font-size: 1.2rem; }
  .social-item { width: 44px; height: 44px; font-size: 1.1rem; }

  section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 480px){
  .hero-content { padding: 4.5rem .9rem 3rem; }
  .hero-badge { font-size: .75rem; padding: .35rem .8rem; }
  .stats-section { padding: 3rem 0; }
  .stat-number { font-size: 2.4rem; }
  .fab-container{
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .fab-main { width: 50px; height: 50px; }
}

/* Reduced motion: respect user prefs */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Focus states for accessibility */
:focus-visible{
  outline: 3px solid rgba(0, 212, 255, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Site Preloader (fullscreen splash con logo + barra)
   ============================================================ */
body.is-loading{
  overflow: hidden;
}

.site-loader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #050a15 0%, #080b15 100%);
  transition: opacity .6s var(--ease-out, ease), visibility .6s ease;
}
.site-loader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Aurora animada de fondo del loader */
.site-loader__bg{
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(0,212,255,0.40), transparent 60%),
    radial-gradient(50% 50% at 80% 70%, rgba(0,81,255,0.40), transparent 65%);
  filter: blur(80px);
  opacity: .55;
  animation: auroraLoader 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraLoader{
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

/* Grain overlay sutil */
.site-loader::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.site-loader__inner{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

/* Logo con glow y pulse */
.site-loader__logo{
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 24px rgba(0, 212, 255, 0.65))
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  animation: loaderLogo 2.6s ease-in-out infinite;
}
@keyframes loaderLogo{
  0%, 100% {
    transform: scale(1) translateY(0);
    filter:
      drop-shadow(0 0 22px rgba(0, 212, 255, 0.55))
      drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  }
  50% {
    transform: scale(1.04) translateY(-4px);
    filter:
      drop-shadow(0 0 36px rgba(0, 212, 255, 0.85))
      drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
  }
}

.site-loader__brand{
  margin: 18px 0 4px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}
.site-loader__tagline{
  margin: 0 0 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(0, 212, 255, 0.85);
}

/* Barra de progreso */
.site-loader__bar{
  width: min(260px, 70vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.18);
}
.site-loader__progress{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500), var(--blue-700));
  background-size: 200% 100%;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
  animation: loaderShine 1.6s linear infinite;
  transition: width .35s var(--ease-out, ease);
}
@keyframes loaderShine{
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.site-loader__percent{
  margin: 14px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce){
  .site-loader__logo,
  .site-loader__progress,
  .site-loader__bg{ animation: none; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b1220; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--blue-700), var(--blue-500)); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--blue-500), var(--blue-700)); }

/* ============================================================
   16. Editorial design upgrades (frontend-design skill)
   ============================================================ */

/* ---------- 16.1 Grain / film noise overlay global ---------- */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ---------- 16.2 Editorial section numbers ---------- */
.section-number{
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
  opacity: .85;
}
.section-number::before{
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-500), transparent);
}
.section-number--light{ color: var(--blue-700); }
.section-number--light::before{ background: linear-gradient(90deg, var(--blue-700), transparent); }

/* Giant ghost numbers in section backgrounds */
.section-ghost-number{
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-variation-settings: "opsz" 96;
  color: rgba(0, 212, 255, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 30%;
  right: -2%;
}
.section-ghost-number--light{ color: rgba(0, 81, 255, 0.05); }

/* ---------- 16.3 Hero refinements ---------- */
.hero-content h1{ font-variation-settings: "opsz" 96; }
.hero-content h1 .accent{
  background: linear-gradient(180deg, #aef0ff 0%, var(--blue-500) 50%, #4fa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  padding-right: .15em;
}

/* Mono eyebrow refinement on hero */
.hero-badge{
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

/* Aurora animated layer behind hero overlay */
.hero-overlay::before{
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(0,212,255,0.45), transparent 60%),
    radial-gradient(50% 50% at 80% 70%, rgba(0,81,255,0.40), transparent 65%),
    radial-gradient(35% 45% at 55% 20%, rgba(174,240,255,0.30), transparent 65%);
  filter: blur(80px);
  opacity: .6;
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero-overlay > *{ position: relative; z-index: 2; }
@keyframes aurora{
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.02); }
}

/* Hero split-text initial state */
.hero-content h1 .word{
  display: inline-block;
  opacity: 0;
  transform: translateY(36px) rotate(2deg);
  animation: heroWord .9s var(--ease-out) forwards;
}
@keyframes heroWord{
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---------- 16.4 Editorial display details ---------- */
.section-title-display{
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-variation-settings: "opsz" 96;
  color: var(--ink);
}
.section-title-display em{
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow with mono accent */
.eyebrow-mono{
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow-mono::before{
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .7;
}

/* ---------- 16.5 Custom cursor (desktop only, hover-capable pointer) ---------- */
@media (hover: hover) and (pointer: fine){
  .cursor-ring{
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border: 1.5px solid var(--blue-500);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .25s var(--ease-out), height .25s var(--ease-out),
                background .25s ease, border-color .25s ease, opacity .25s ease;
    z-index: 10000;
    backdrop-filter: invert(0.04);
    mix-blend-mode: difference;
    opacity: 0;
  }
  .cursor-ring.is-active{ opacity: 1; }
  .cursor-ring.is-link{
    width: 50px; height: 50px;
    background: rgba(0, 212, 255, 0.18);
    border-color: rgba(255,255,255,0.85);
  }
}

/* ---------- 16.6 Stronger focus & refined selection ---------- */
:focus-visible{
  outline: 2px solid rgba(0, 212, 255, .85);
  outline-offset: 4px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px rgba(0, 212, 255, .12);
}
::selection{ background: rgba(0, 212, 255, 0.45); color: #001a25; }

/* ---------- 16.7 Body upgrades ---------- */
body{
  font-feature-settings: "ss01", "cv11", "kern";
  text-rendering: optimizeLegibility;
}

/* Refine service-showcase headings to use display font */
.service-showcase__title,
.why-us__title,
.home-services-title,
.testimonials-section h2,
.cta-banner h2,
.contact-section h2,
.service-detail-title{
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.03em;
}

/* <em> dentro de titulares -> italic + gradiente */
.home-services-title em,
.why-us__title em,
.service-showcase__title em,
.testimonials-section h2 em,
.cta-banner h2 em,
.contact-section h2 em,
.service-detail-title em,
.hero-content h1 em{
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
/* Hero em (dark bg) -> light gradient instead */
.hero-content h1 em{
  background: linear-gradient(180deg, #aef0ff, var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Refine eyebrow tags with mono */
.why-us__tag,
.service-detail-tag,
.section-eyebrow,
.testimonials-section .section-eyebrow,
.service-showcase__eyebrow{
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

/* Stats numbers with display variable */
.stat-number{
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.04em;
}

/* Navbar links can stay sans for compactness */
.glass-navbar .nav-link{ font-family: var(--font-sans); }
.glass-navbar .nav-link-contact{ font-family: var(--font-display); letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce){
  .hero-content h1 .word{ animation: none; opacity: 1; transform: none; }
  .hero-overlay::before{ animation: none; }
  body::before{ display: none; }
}
