/* ==========================================================================
   Próximamente / Sitio en Mantenimiento
   Paleta institucional (Guinda Morena + Dorado) con estilo moderno glassmorphic
   ========================================================================== */

:root {
  /* Colores principales (Morena / Institucional) */
  --guinda-950: #24060e;
  --guinda-900: #3a0a16;
  --guinda-800: #541224;
  --guinda-700: #691c32; /* Guinda institucional */
  --guinda-600: #87213d;
  --guinda-500: #9f2241; /* Guinda vibrante */

  /* Acentos dorados */
  --oro-500: #bc955c;
  --oro-400: #d4af6a;
  --oro-300: #ddc9a3;

  /* Neutros y transparencias */
  --blanco: #ffffff;
  --texto-principal: #fdfbfb;
  --texto-secundario: rgba(253, 251, 251, 0.78);
  --texto-tenue: rgba(221, 201, 163, 0.75);

  --glass-bg: rgba(42, 8, 18, 0.46);
  --glass-bg-hover: rgba(66, 14, 29, 0.56);
  --glass-border: rgba(221, 201, 163, 0.2);
  --glass-border-strong: rgba(221, 201, 163, 0.38);
  --glass-shadow: 0 24px 60px rgba(10, 2, 5, 0.55);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--texto-principal);
  background: radial-gradient(circle at 15% 15%, var(--guinda-700) 0%, var(--guinda-900) 48%, var(--guinda-950) 100%);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Fondo animado (Glows + SVG Red de Movilidad + Ondas)
   ========================================================================== */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
  will-change: transform;
  animation: floatGlow 16s ease-in-out infinite alternate;
}

.bg-glow--top {
  width: clamp(320px, 45vw, 680px);
  height: clamp(320px, 45vw, 680px);
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, rgba(159, 34, 65, 0.72), rgba(105, 28, 50, 0));
}

.bg-glow--bottom {
  width: clamp(300px, 42vw, 620px);
  height: clamp(300px, 42vw, 620px);
  bottom: -15%;
  right: -8%;
  background: radial-gradient(circle, rgba(188, 149, 92, 0.35), rgba(105, 28, 50, 0));
  animation-delay: -6s;
}

.bg-glow--accent {
  width: clamp(220px, 30vw, 440px);
  height: clamp(220px, 30vw, 440px);
  top: 42%;
  left: 55%;
  background: radial-gradient(circle, rgba(135, 33, 61, 0.5), transparent);
  animation-delay: -11s;
}

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

.svg-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  transition: transform 0.25s ease-out;
}

.route-base {
  fill: none;
  stroke: rgba(221, 201, 163, 0.14);
  stroke-width: 1.5;
}

.route-flow {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 180 620;
  animation: routeDash 12s linear infinite;
}

.route-flow--2 {
  stroke-dasharray: 140 540;
  animation-duration: 15s;
  animation-direction: reverse;
}

.route-flow--3 {
  stroke-dasharray: 200 680;
  animation-duration: 18s;
  animation-delay: -4s;
}

.route-flow--4 {
  stroke-dasharray: 120 500;
  animation-duration: 13s;
  animation-delay: -7s;
}

@keyframes routeDash {
  from {
    stroke-dashoffset: 800;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.node-core {
  fill: var(--oro-300);
}

.node-pulse {
  fill: rgba(221, 201, 163, 0.22);
  stroke: rgba(221, 201, 163, 0.45);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseNode 3.4s ease-out infinite;
}

.node-pulse--delay {
  animation-delay: 1.7s;
}

@keyframes pulseNode {
  0% {
    transform: scale(0.45);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.svg-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: clamp(110px, 18vh, 220px);
}

.wave--back {
  fill: rgba(159, 34, 65, 0.18);
  animation: waveDrift 14s ease-in-out infinite alternate;
}

.wave--front {
  fill: rgba(221, 201, 163, 0.06);
  animation: waveDrift 10s ease-in-out infinite alternate-reverse;
}

@keyframes waveDrift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-24px);
  }
}

/* ==========================================================================
   Layout principal
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 40px);
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blanco);
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--oro-300);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--oro-300);
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oro-400);
  box-shadow: 0 0 0 0 rgba(212, 175, 106, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 106, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(212, 175, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 106, 0);
  }
}

/* ==========================================================================
   Tarjetas Glassmorphic
   ========================================================================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(221, 201, 163, 0.32), rgba(255, 255, 255, 0.04) 45%, rgba(159, 34, 65, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-card {
  padding: clamp(26px, 5vw, 52px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(188, 149, 92, 0.14);
  border: 1px solid rgba(221, 201, 163, 0.28);
  color: var(--oro-300);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.text-gold {
  background: linear-gradient(120deg, #fff6e5 0%, var(--oro-300) 45%, var(--oro-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 640px;
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  color: var(--texto-secundario);
}

/* Barra de progreso */
.progress-block {
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.progress-label {
  color: var(--texto-secundario);
  font-weight: 500;
}

.progress-value {
  color: var(--oro-300);
  font-weight: 700;
  font-family: var(--font-display);
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(221, 201, 163, 0.16);
  overflow: hidden;
}

.progress-fill {
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--guinda-500), var(--oro-500), var(--oro-300));
  background-size: 200% 100%;
  animation: shimmerBar 3.2s linear infinite;
}

@keyframes shimmerBar {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ==========================================================================
   Grid de servicios
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-strong);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(159, 34, 65, 0.32);
  border: 1px solid rgba(221, 201, 163, 0.28);
  color: var(--oro-300);
}

.feature-card h2 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--blanco);
}

.feature-card p {
  font-size: 0.89rem;
  color: var(--texto-secundario);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(221, 201, 163, 0.14);
  font-size: 0.84rem;
  color: var(--texto-secundario);
}

.footer strong {
  color: var(--oro-300);
  font-weight: 600;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--oro-300);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--blanco);
  text-decoration: underline;
}

.dot-sep {
  color: rgba(221, 201, 163, 0.4);
}

/* ==========================================================================
   Responsividad
   ========================================================================== */

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar {
    justify-content: center;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

/* Accesibilidad: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .route-flow,
  .node-pulse,
  .wave--back,
  .wave--front,
  .status-dot,
  .progress-fill {
    animation: none !important;
  }

  .svg-network {
    transition: none;
  }
}

