/* =============================================================
   unoZero SpA — Custom CSS
   Inspired by Creative Tim BLK Design System
   Colors: Red #D42B2B · Dark #1a1a2e · Charcoal #2E2E2E
============================================================= */

/* === VARIABLES ============================================= */
:root {
  --uz-red:        #D42B2B;
  --uz-red-dark:   #B82020;
  --uz-red-light:  rgba(212, 43, 43, 0.12);
  --uz-dark:       #0d0d1a;
  --uz-dark-2:     #1a1a2e;
  --uz-dark-3:     #2E2E2E;
  --uz-gray:       #6B7280;
  --uz-gray-light: #9CA3AF;
  --uz-bg-light:   #F4F5F7;
  --uz-white:      #FFFFFF;
  --uz-border:     #E5E7EB;
  --uz-border-dark: rgba(255,255,255,0.08);
  --font-sans:     'PT Sans', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --bs-body-font-family: 'PT Sans', system-ui, sans-serif;
  --bs-font-sans-serif: 'PT Sans', system-ui, sans-serif;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.14);
  --transition:    0.3s ease;
}

/* === RESET & BASE ========================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  scroll-padding-top: 90px; /* compensa navbar fixed al saltar a anclas */
}

body, h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, select, .btn, .navbar, .navbar-brand, .nav-link {
  font-family: var(--font-sans);
}

body {
  font-family: var(--font-sans);
  color: var(--uz-dark-3);
  background: var(--uz-white);
  overflow-x: clip; /* clip en vez de hidden: no rompe position:fixed en móvil */
  line-height: 1.6;
}

/* Global image safety — prevents large PNGs from overflowing */
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* === UTILITY CLASSES ====================================== */
.text-red  { color: var(--uz-red) !important; }

.btn-red {
  display: inline-flex;
  align-items: center;
  background: var(--uz-red);
  color: var(--uz-white);
  border: 2px solid var(--uz-red);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-red:hover {
  background: var(--uz-red-dark);
  border-color: var(--uz-red-dark);
  color: var(--uz-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 43, 43, 0.38);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--uz-white);
  border: 2px solid rgba(255,255,255,0.35);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: var(--uz-white);
  transform: translateY(-2px);
}

/* Shared section labels */
.section-tag {
  display: inline-block;
  color: var(--uz-red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}
.section-tag.light { color: rgba(255,255,255,0.5); }

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-text {
  color: var(--uz-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.section-subtitle {
  color: var(--uz-gray);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0.5rem auto 0;
  line-height: 1.7;
}

/* === NAVBAR ================================================ */
#mainNav {
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
  padding: 0.85rem 0;
  z-index: 1080; /* siempre encima del menú móvil */
}
#mainNav.scrolled {
  background: rgba(13, 13, 26, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem !important;
  position: relative;
  transition: color var(--transition);
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--uz-red);
  transition: width var(--transition);
}
#mainNav .nav-link:hover {
  color: var(--uz-white) !important;
}
#mainNav .nav-link:hover::after { width: 70%; }

.btn-nav-cta {
  background: var(--uz-red) !important;
  color: var(--uz-white) !important;
  border-radius: var(--radius) !important;
  padding: 0.45rem 1.2rem !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}
.btn-nav-cta:hover {
  background: var(--uz-red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,43,43,0.35);
}
.btn-nav-cta::after { display: none !important; }

/* === MOBILE MENU (slide from right, fullscreen) =========== */
@media (max-width: 991.98px) {
  #mainNav .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    z-index: 1090; /* sobre todo, siempre clickeable */
    position: relative;
  }
  #mainNav .navbar-toggler:focus { box-shadow: none; }

  /* Cambia el icono al estado "abierto" (X) cuando aria-expanded=true */
  #mainNav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 1.5em;
    height: 1.5em;
  }
  #mainNav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
  #mainNav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--uz-white);
  }
  #mainNav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: rotate(45deg); }
  #mainNav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after  { transform: rotate(-45deg); }

  /* Oculta el X interno del panel: el burger ya cumple esa función */
  #mainNav .mobile-menu-close { display: none !important; }

  #mainNav .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(13, 13, 26, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 0.35s ease, visibility 0.35s ease;
    visibility: hidden;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem 2rem 2.5rem;
    z-index: 1070; /* debajo del navbar (1080) */
    overflow-y: auto;
  }
  #mainNav .navbar-collapse.collapsing {
    height: 100vh;
    height: 100dvh;
    transition: transform 0.35s ease, visibility 0.35s ease;
  }
  #mainNav .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
  }

  #mainNav .navbar-nav {
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  #mainNav .navbar-nav .nav-link {
    font-size: 1.25rem !important;
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid var(--uz-border-dark);
  }
  #mainNav .navbar-nav .nav-item:last-child {
    margin-top: 1.25rem;
  }
  #mainNav .navbar-nav .nav-item:last-child .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem 1.2rem;
  }

  .mobile-menu-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    margin-top: auto;
    margin-bottom: 4rem;
  }
  .mobile-menu-logo img {
    max-width: 340px;
    width: 85%;
    height: auto;
    opacity: 1;
  }

  body.menu-open { overflow: hidden; }

  /* Shrink reCAPTCHA badge on mobile when menu is open */
  body.menu-open .grecaptcha-badge {
    transform: scale(0.7);
    transform-origin: bottom right;
    opacity: 0.6;
  }
}

/* Always keep reCAPTCHA badge smaller on mobile */
@media (max-width: 575.98px) {
  .grecaptcha-badge {
    transform: scale(0.75);
    transform-origin: bottom right;
  }
}

/* === HERO ================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg,
    #060612 0%,
    #0d0d1a 35%,
    #12102a 65%,
    #1a0a0a 100%
  );
  overflow: hidden;
  display: flex;
  align-items: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(212,43,43,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(30,30,80,0.5) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 110px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,43,43,0.12);
  border: 1px solid rgba(212,43,43,0.35);
  color: #ff9090;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--uz-red);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--uz-white);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  padding: 2.5rem;
  max-width: 340px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.08);
  animation: heroFloat 4.5s ease-in-out infinite;
}
/* External red glow behind the white card */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(212,43,43,0.25) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.1); opacity: 1;   }
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color var(--transition);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--uz-red); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* === STATS ================================================= */
.stats-section {
  background: var(--uz-red);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--uz-white);
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,0,0,0.08); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.82;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === QUIÉNES SOMOS ========================================= */
.section-about {
  padding: 110px 0;
  background: var(--uz-white);
}

/* Code window */
.code-window {
  background: #13131f;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  font-family: var(--font-mono);
}
.code-header {
  background: #1e1e2e;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.code-dots { display: flex; gap: 6px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.code-filename {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  margin-left: 0.4rem;
}
.code-body {
  padding: 1.6rem 1.8rem;
}
.code-line {
  font-size: 0.88rem;
  line-height: 1.95;
  color: rgba(255,255,255,0.8);
}
.code-key    { color: #79c0ff; }
.code-colon  { color: rgba(255,255,255,0.5); }
.code-string { color: #a5d6ff; }
.code-bool   { color: #ff79c6; }
.code-number { color: #f8c555; }
.code-bullet { color: var(--uz-red); }
.code-cursor {
  min-height: 1.95em;
  display: block;
}
.code-cursor::after {
  content: '▌';
  color: var(--uz-red);
  animation: cursorBlink 1.1s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.38rem 0;
  font-weight: 500;
  font-size: 0.95rem;
}
.feature-list i {
  color: var(--uz-red);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* === SERVICIOS ============================================= */
.section-services {
  padding: 110px 0;
  background: var(--uz-bg-light);
}

.service-card {
  background: var(--uz-white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid var(--uz-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--uz-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

/* Dark variant */
.service-card--dark {
  background: linear-gradient(145deg, #111122 0%, #1a0a0a 100%);
  border-color: rgba(212,43,43,0.25);
  color: var(--uz-white);
}
.service-card--dark::after { transform: scaleX(1); }
.service-card--dark .service-text { color: rgba(255,255,255,0.6); }
.service-card--dark .service-title { color: var(--uz-white); }
.service-card--dark .service-tags span {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
}

/* Featured variant (destacado) */
.service-card--featured {
  position: relative;
  border: 2px solid var(--uz-red);
  box-shadow: 0 12px 40px rgba(212, 43, 43, 0.25);
}
.service-card--featured:hover {
  box-shadow: 0 18px 55px rgba(212, 43, 43, 0.4);
}
.service-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: var(--uz-red);
  color: var(--uz-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(212, 43, 43, 0.45);
  display: inline-flex;
  align-items: center;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--uz-red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: var(--uz-red);
  margin-bottom: 1.2rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--uz-red);
  color: var(--uz-white);
  transform: scale(1.05);
}
.service-card--dark .service-icon-wrap {
  background: rgba(212,43,43,0.2);
}
.service-card--dark:hover .service-icon-wrap {
  background: var(--uz-red);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-text {
  color: var(--uz-gray);
  font-size: 0.92rem;
  line-height: 1.72;
  margin-bottom: 1.2rem;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.service-tags span {
  background: var(--uz-bg-light);
  color: var(--uz-gray);
  border: 1px solid var(--uz-border);
  padding: 0.18rem 0.65rem;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--uz-red);
  text-decoration: none;
  transition: gap var(--transition), opacity var(--transition);
}
.service-link:hover { gap: 0.7rem; opacity: 0.8; color: var(--uz-red); }
.service-card--dark .service-link { color: #ff9090; }
.service-card--dark .service-link:hover { color: var(--uz-white); }

/* === TECNOLOGÍAS =========================================== */
.section-tech {
  padding: 110px 0;
  background: var(--uz-white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991.98px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575.98px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

.tech-item {
  position: relative;
  display: block;
  padding: 0;
  min-height: 170px;
  border: 1px solid var(--uz-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--uz-white);
  font-family: inherit;
  width: 100%;
  text-align: center;
  overflow: hidden;
  -webkit-appearance: none;
          appearance: none;
}
.tech-item:focus { outline: none; }
.tech-item:focus-visible {
  border-color: var(--uz-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}
.tech-item:hover {
  border-color: var(--uz-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Caras (frente: icono+label, reverso: descripción) */
.tech-item__face,
.tech-item__back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  transition: opacity var(--transition), transform var(--transition);
}
.tech-item__face i {
  font-size: 2.4rem;
  color: var(--uz-dark-3);
  transition: color var(--transition);
}
.tech-item:hover .tech-item__face i { color: var(--uz-red); }
.tech-item__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--uz-gray);
  line-height: 1.3;
}
.tech-item__back {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--uz-dark-3);
  text-align: center;
}
.tech-item__back strong {
  display: block;
  font-size: 0.95rem;
  color: var(--uz-red);
  margin-bottom: 0.35rem;
}

/* Estado activo: oculta frente, muestra reverso */
.tech-item.is-active {
  background: var(--uz-red-light);
  border-color: var(--uz-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tech-item.is-active .tech-item__face {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.tech-item.is-active .tech-item__back {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* === POR QUÉ UNOZERO ======================================= */
.section-why {
  padding: 110px 0;
  background: var(--uz-dark-2);
}

.why-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--uz-border-dark);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  height: 100%;
}
.why-card:hover {
  border-color: rgba(212,43,43,0.45);
  background: rgba(212,43,43,0.04);
  transform: translateY(-5px);
}

.why-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--uz-red);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.why-card h4 {
  color: var(--uz-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.why-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.93rem;
  line-height: 1.75;
  margin: 0;
}

/* === CONTACTO ============================================== */
.section-contact {
  padding: 110px 0;
  background: var(--uz-bg-light);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--uz-red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uz-white);
  font-size: 1rem;
}
.contact-item strong {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uz-dark-3);
  margin-bottom: 0.15rem;
}
.contact-item p {
  color: var(--uz-gray);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-item a {
  color: var(--uz-gray);
  text-decoration: none;
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--uz-red); }

/* Contact Form */
.contact-form {
  background: var(--uz-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--uz-border);
}
.contact-form .form-control {
  border: 2px solid var(--uz-border);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--uz-white);
  color: var(--uz-dark-3);
}
.contact-form .form-control:focus {
  border-color: var(--uz-red);
  box-shadow: 0 0 0 3px rgba(212,43,43,0.12);
  outline: none;
}
.contact-form .form-control::placeholder { color: var(--uz-gray-light); }
.contact-form textarea { resize: vertical; min-height: 130px; }

.form-message {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-message.success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: #15803d;
}
.form-message.error {
  background: rgba(212, 43, 43, 0.08);
  border: 1px solid rgba(212, 43, 43, 0.3);
  color: var(--uz-red-dark);
}

/* === FOOTER ================================================ */
.site-footer {
  background: var(--uz-dark);
  padding: 80px 0 0;
}

/* Explicit logo sizing — prevents rendering at native resolution */
.nav-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 220px;
}
.footer-logo {
  display: block;
  height: 45px;
  width: auto;
  max-width: 200px;
  opacity: 0.88;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  color: var(--uz-white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--uz-red); }

.footer-address {
  font-style: normal;
}
.footer-address p {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.55rem;
}
.footer-address a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-address a:hover { color: var(--uz-red); }
.footer-address i { color: var(--uz-red); opacity: 0.8; }

.footer-hr {
  border-color: rgba(255,255,255,0.07);
  margin: 2.5rem 0 0;
}
.footer-copy {
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem;
  margin: 1rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 3rem;
  padding: 1.25rem 0 1.5rem;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin: 0;
}

/* === RESPONSIVE ============================================ */
@media (max-width: 991px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:nth-child(4) { border-bottom: none; }
  .hero-content { padding-top: 90px; }
}

@media (max-width: 767px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:last-child { border-bottom: none; }
  .contact-form { padding: 1.5rem; }
  .code-window { font-size: 0.82rem; }
  .section-about,
  .section-services,
  .section-tech,
  .section-why,
  .section-contact { padding: 70px 0; }
}

@media (max-width: 575px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.4rem; }
  .hero-badge { font-size: 0.68rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stat-number { font-size: 2.2rem; }
}

/* =============================================================
   NAVBAR DROPDOWN
============================================================= */
#mainNav .dropdown-menu {
  background: rgba(13, 13, 26, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--uz-border-dark);
  border-radius: var(--radius);
  padding: 0.4rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
}
#mainNav .dropdown-item {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition);
}
#mainNav .dropdown-item i {
  color: var(--uz-red);
  width: 16px;
  font-size: 0.8rem;
}
#mainNav .dropdown-item:hover {
  background: rgba(212,43,43,0.12);
  color: var(--uz-white);
}
#mainNav .dropdown-toggle::after {
  border: none;
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: 0.35rem;
  vertical-align: middle;
  opacity: 0.6;
}

/* =============================================================
   PÁGINAS DE SERVICIO — PAGE HERO
============================================================= */
.page-hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #060612 0%, #0d0d1a 40%, #12102a 70%, #1a0808 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 80% 50%, rgba(212,43,43,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.page-breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}
.page-breadcrumb a:hover { color: var(--uz-red); }
.page-breadcrumb span { color: rgba(255,255,255,0.65); }

.page-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(212,43,43,0.15);
  border: 1px solid rgba(212,43,43,0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--uz-red);
  margin-bottom: 1.5rem;
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--uz-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}
.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 2rem;
}
.page-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-hero-tags span {
  background: rgba(212,43,43,0.12);
  border: 1px solid rgba(212,43,43,0.3);
  color: #ff9090;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* =============================================================
   CAPABILITIES
============================================================= */
.section-capabilities {
  padding: 90px 0;
  background: var(--uz-white);
}
.capability-card {
  padding: 1.75rem;
  border: 1px solid var(--uz-border);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: all var(--transition);
}
.capability-card:hover {
  border-color: var(--uz-red);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.capability-icon {
  width: 48px;
  height: 48px;
  background: var(--uz-red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--uz-red);
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.capability-card:hover .capability-icon {
  background: var(--uz-red);
  color: var(--uz-white);
}
.capability-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.capability-card p {
  color: var(--uz-gray);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* =============================================================
   PROCESS STEPS
============================================================= */
.section-process {
  padding: 90px 0;
  background: var(--uz-bg-light);
}
.process-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.3rem;
  padding: 2rem;
  background: var(--uz-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--uz-border);
  height: 100%;
  transition: all var(--transition);
}
.process-step:hover {
  border-color: var(--uz-red);
  box-shadow: var(--shadow-md);
}
.process-num {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--uz-red);
  opacity: 0.25;
  line-height: 1;
  align-self: start;
  padding-top: 0.15rem;
}
.process-step h4,
.process-step h5 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
  align-self: end;
}
.process-step p {
  grid-column: 2;
  grid-row: 2;
  color: var(--uz-gray);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

/* =============================================================
   TECH TAGS (service pages)
============================================================= */
.section-service-tech {
  padding: 70px 0;
  background: var(--uz-white);
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tech-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--uz-bg-light);
  border: 1px solid var(--uz-border);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--uz-dark-3);
  transition: all var(--transition);
}
.tech-tag:hover {
  border-color: var(--uz-red);
  background: var(--uz-red-light);
  color: var(--uz-red);
}
.tech-tag i { color: var(--uz-red); font-size: 0.85rem; }

/* =============================================================
   INNER PAGE CTA
============================================================= */
.section-page-cta {
  padding: 90px 0;
  background: var(--uz-dark-2);
  text-align: center;
  color: var(--uz-white);
}
.section-page-cta h2,
.section-page-cta .section-title {
  color: var(--uz-white);
  margin-bottom: 1rem;
}
.section-page-cta p,
.section-page-cta .section-text {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.78);
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =============================================================
   SERVICE CARD LINK (index.html)
============================================================= */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* =============================================================
   INFO CARD (service sub-pages sidebar)
============================================================= */
.info-card {
  background: var(--uz-bg-light);
  border: 1px solid var(--uz-border);
  border-radius: 16px;
  padding: 1.75rem;
}
.info-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uz-dark);
  margin-bottom: 1rem;
}
.info-card-title i { color: var(--uz-red); }
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--uz-gray);
  border-bottom: 1px solid var(--uz-border);
  padding-left: 1.1rem;
  position: relative;
}
.info-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--uz-red);
  font-size: 0.8rem;
}
.info-list li:last-child { border-bottom: none; }

/* =============================================================
   FOOTER TAGLINE
============================================================= */
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* =============================================================
   SECTION PAGE (service overview area)
============================================================= */
.section-page {
  background: var(--uz-white);
}

.service-overview p {
  margin: 0 0 1.1rem;
  color: var(--uz-dark-3);
  line-height: 1.75;
}
.service-overview p:last-child { margin-bottom: 0; }



/* === IMAGE INTEGRATIONS ====================================== */
.service-image {
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--uz-dark);
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover .service-image img {
  transform: scale(1.04);
}
.service-card--dark .service-image {
  background: #000;
}

.page-hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* === WHATSAPP FLOAT BUTTON =================================== */
.wsp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 1080;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wsp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,0.55);
}
@media (max-width: 576px) {
  .wsp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 16px; left: 16px; }
}

/* Mover el badge de reCAPTCHA para que no choque con nada */
.grecaptcha-badge { z-index: 1070 !important; }
