/* ==========================================================
   HUMVERsoft · Estilos personalizados
   Estética: Light SaaS · Premium · Editorial moderno
   ========================================================== */

:root {
  --hv-bg: #ffffff;
  --hv-bg-soft: #f8fafc;
  --hv-bg-card: #ffffff;
  --hv-border: rgba(15, 23, 42, 0.08);
  --hv-border-strong: rgba(15, 23, 42, 0.14);
  --hv-text: #0f172a;
  --hv-text-muted: #475569;
  --hv-cyan: #0891b2;
  --hv-blue: #2563eb;
  --hv-indigo: #4f46e5;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--hv-bg);
  color: var(--hv-text);
}

.font-display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

/* ==========================================================
   Tarjetas de contacto con revelado anti-bots
   ========================================================== */
.contact-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hv-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow:
    0 12px 30px -10px rgba(15, 23, 42, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reveal-btn {
  margin-top: auto;
  padding-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0891b2;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.reveal-btn:hover {
  color: #0f172a;
}

.reveal-btn[data-revealed="true"] .btn-label {
  color: #0f172a;
}

.reveal-value {
  margin-top: 0.75rem;
  display: block;
  font-family: "Space Grotesk", monospace, sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  word-break: break-all;
  animation: fade-up 0.35s ease-out both;
}

/* ==========================================================
   Marquee · banner de tecnologías
   ========================================================== */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: inline-flex;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ==========================================================
   Hero · fondos y glows (versión light)
   ========================================================== */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 30%,
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 30%,
    transparent 80%
  );
  pointer-events: none;
  opacity: 0.7;
}

.hero-glow-orb {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(34, 211, 238, 0.18) 0%,
    rgba(99, 102, 241, 0.12) 35%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================
   Glows reutilizables (sutiles en light)
   ========================================================== */
.glow-soft {
  box-shadow:
    0 6px 20px -6px rgba(34, 211, 238, 0.35),
    0 12px 40px -12px rgba(99, 102, 241, 0.25);
}

.glow-strong {
  box-shadow:
    0 0 30px rgba(34, 211, 238, 0.35),
    0 0 70px rgba(59, 130, 246, 0.2),
    0 20px 60px -20px rgba(99, 102, 241, 0.3);
}

/* ==========================================================
   Service Cards
   ========================================================== */
.service-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hv-border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.45),
    transparent 40%,
    transparent 60%,
    rgba(99, 102, 241, 0.45)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px -15px rgba(15, 23, 42, 0.15),
    0 4px 10px rgba(15, 23, 42, 0.04);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================
   Security Cards
   ========================================================== */
.security-card {
  background: #ffffff;
  border: 1px solid var(--hv-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.security-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
  box-shadow: 0 12px 30px -10px rgba(8, 145, 178, 0.18);
}

/* ==========================================================
   Step Cards (Proceso)
   ========================================================== */
.step-card {
  background: #ffffff;
  border: 1px solid var(--hv-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.step-card:hover {
  border-color: rgba(8, 145, 178, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.12);
}

.step-number {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  border-radius: 0%;
  min-width: 50px;
  min-height: 50px;
  background: linear-gradient(135deg, #0891b2 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ==========================================================
   Pantalla Mantenimiento (versión light)
   ========================================================== */
.mantenimiento-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    #000 20%,
    transparent 80%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    #000 20%,
    transparent 80%
  );
  pointer-events: none;
}

.mantenimiento-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.22) 0%,
    rgba(99, 102, 241, 0.14) 40%,
    transparent 70%
  );
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ==========================================================
   Scrollbar premium
   ========================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 6px;
  border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 145, 178, 0.45);
}

/* ==========================================================
   Selección de texto
   ========================================================== */
::selection {
  background: rgba(8, 145, 178, 0.22);
  color: #0f172a;
}

/* ==========================================================
   Utilidad: ocultar visualmente sin perder accesibilidad
   ========================================================== */
.sr-only-true {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   Animación sutil de entrada
   ========================================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fade-up 0.7s ease-out both;
}
