/* ==========================================================================
   ASFINANCIEROS - ESTILOS CORPORATIVOS & SISTEMA DE DISEÑO (TEMA CLARO / BLANCO)
   Diseño Premium: Pure White, Deep Navy, Azul Eléctrico & Glassmorphism
   ========================================================================== */

:root {
  --bg-dark: #ffffff;
  --bg-gradient-1: #f8fafc;
  --bg-gradient-2: #edf2f7;
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-border: rgba(226, 232, 240, 0.95);
  --card-border-hover: rgba(0, 102, 255, 0.4);
  --primary-blue: #0066ff;
  --primary-cyan: #0284c7;
  --accent-cyan: #059669;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-highlight: #1e293b;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-neon: 0 20px 45px -10px rgba(0, 80, 200, 0.08);
  --shadow-glow: 0 10px 30px -5px rgba(0, 102, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Background Canvas & Ambient Lights */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
}

.orb-2 {
  bottom: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #60a5fa 0%, rgba(96, 165, 250, 0) 70%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.orb-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 75%);
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(35px) scale(1.08); }
  100% { transform: translateY(-25px) scale(0.95); }
}

/* Page Layout */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Header & Brand */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 1.2rem;
  flex-wrap: wrap;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-img {
  max-width: 160px; /* Reducido al 50% del tamaño original de 320px */
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 50, 120, 0.1));
}

.header-logo-img:hover {
  transform: scale(1.04);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: #eff6ff;
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0052cc;
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00e5ff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00e5ff;
  animation: pulseLight 1.8s infinite;
}

@keyframes pulseLight {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 5px #00e5ff; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #00e5ff; }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 5px #00e5ff; }
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-ghost:hover {
  background: #eff6ff;
  border-color: #0066ff;
  color: #0066ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
}

/* ============================================================
   BANNERS ROTATIVOS / CARRUSEL PRINCIPAL (CMS HERO CAROUSEL)
   ============================================================ */
.banner-carousel-section {
  margin-bottom: 2.2rem;
  width: 100%;
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b192c;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 45px -10px rgba(0, 50, 120, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 380px;
}

.carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

.carousel-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 6s ease;
  cursor: pointer;
}

.carousel-slide.active .carousel-slide-img {
  transform: scale(1.03);
}

/* Superposición y recuadros sobre el banner eliminados por completo para dejar la imagen 100% limpia */
.carousel-slide-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.carousel-slide.clean-image {
  background: #0b1528;
}

.carousel-slide.clean-image .carousel-slide-img {
  cursor: pointer;
}

.carousel-slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 0.9rem;
}

.carousel-slide-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.carousel-slide-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 1.4rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

/* Flechas de Navegación */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0.85;
}

.carousel-arrow:hover {
  background: #0066ff;
  color: #ffffff;
  border-color: #0066ff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
  opacity: 1;
}

.carousel-prev {
  left: 1.2rem;
}

.carousel-next {
  right: 1.2rem;
}

/* Paginación con Puntos (Dots) */
.carousel-indicators {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  width: 32px;
  border-radius: 20px;
  background: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
}

@media (max-width: 768px) {
  .carousel-container {
    min-height: 320px;
  }
  .carousel-slide {
    height: 320px;
  }
  .carousel-slide-overlay {
    display: none !important;
  }
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
  .carousel-prev { left: 0.5rem; }
  .carousel-next { right: 0.5rem; }
}

/* Main Hero Card */
.main-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 45px -10px rgba(0, 50, 120, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #0066ff 25%, #00d4ff 50%, #0066ff 75%, transparent 100%);
  animation: shineLine 4s infinite linear;
}

@keyframes shineLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Logo Hero Section */
.logo-container {
  display: inline-block;
  margin-bottom: 1.8rem;
  position: relative;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  padding: 16px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.logo-img {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0, 80, 180, 0.15));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 15px 25px rgba(0, 102, 255, 0.25));
}

/* Hero Typography */
.hero-tagline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #0052cc;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #0052cc 0%, #0077ff 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Progress Tracker */
.progress-box {
  max-width: 520px;
  margin: 0 auto 3rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-highlight);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #0052cc 0%, #00a3ff 50%, #00d4ff 100%);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shineProgress 2s infinite;
}

@keyframes shineProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: right;
}

/* Countdown Section */
.countdown-container {
  margin-bottom: 3.2rem;
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-unit {
  background: rgba(7, 18, 36, 0.8);
  border: 1px solid rgba(0, 163, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.5rem;
  box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.08);
  transition: var(--transition);
}

.countdown-unit:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.3), inset 0 0 25px rgba(0, 212, 255, 0.15);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.countdown-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-cyan);
  margin-top: 0.4rem;
}

/* Services Pill Grid */
.services-section {
  margin-bottom: 3rem;
}

.services-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 1.4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 50, 120, 0.04);
}

.service-card:hover {
  background: #ffffff;
  border-color: rgba(0, 102, 255, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(0, 80, 180, 0.12);
}

.service-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: brightness(0.98) contrast(1.02);
}

.service-card:hover .service-card-img {
  transform: scale(1.08);
  filter: brightness(1.04) contrast(1.08);
}

.service-card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.service-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: #eff6ff;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052cc;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #0052cc;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.service-card-link:hover {
  color: #0066ff;
  transform: translateX(4px);
}

/* Action CTA & Notification Form */
.cta-box {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 80, 180, 0.05);
}

.cta-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.cta-box p {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.form-subscribe {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.input-email {
  flex: 1;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: #0f172a;
  outline: none;
  transition: var(--transition);
}

.input-email:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.input-email::placeholder {
  color: #94a3b8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 50%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -3px rgba(0, 102, 255, 0.35);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -3px rgba(0, 102, 255, 0.45);
  filter: brightness(1.05);
}

.cta-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cta-alt-text {
  font-size: 0.88rem;
  color: #475569;
}

.btn-email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0052cc 0%, #0077ff 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.btn-email-cta:hover {
  background: linear-gradient(135deg, #0066ff 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
  color: #fff;
}

/* Footer Section */
/* ============================================================
   SECCIÓN DE LOGOS DE CLIENTES / ROTACIÓN CONTINUA INFINITA
   ============================================================ */
.clients-carousel-section {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2.8rem;
  box-shadow: 0 15px 35px -10px rgba(0, 50, 120, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clients-header {
  margin-bottom: 2rem;
}

.clients-tagline {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0066ff;
  background: #eff6ff;
  border: 1px solid rgba(0, 102, 255, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}

.clients-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.clients-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 650px;
  margin: 0 auto;
}

.clients-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.8rem 0;
  /* Máscara de desvanecimiento en los bordes izquierdo y derecho */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-marquee-track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  user-select: none;
}

.clients-marquee-track.paused,
.clients-marquee-wrapper:hover .clients-marquee-track {
  animation-play-state: paused;
}

.client-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 65px;
  padding: 0.5rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  transition: all 0.35s ease;
  filter: grayscale(100%) opacity(0.65);
  text-decoration: none;
  cursor: pointer;
}

.client-logo-item:hover {
  filter: grayscale(0%) opacity(1);
  background: #ffffff;
  border-color: #bae6fd;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

.client-logo-img {
  max-width: 155px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .clients-carousel-section {
    padding: 2rem 1.2rem;
  }
  .clients-title {
    font-size: 1.25rem;
  }
  .clients-marquee-track {
    gap: 2rem;
    animation-duration: 20s;
  }
  .client-logo-item {
    min-width: 140px;
    height: 55px;
    padding: 0.4rem 0.8rem;
  }
  .client-logo-img {
    max-width: 120px;
    max-height: 40px;
  }
}

.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item:hover {
  color: #0052cc;
}

.footer-copy {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Floating Contact / Email Button */
.contact-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.contact-bubble {
  background: rgba(13, 27, 49, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 30px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  animation: fadeInRight 0.6s ease;
  pointer-events: none;
}

.contact-icon-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0052cc 0%, #0099ff 50%, #00d4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(0, 163, 255, 0.7), 0 0 25px rgba(0, 212, 255, 0.5);
}

.contact-icon-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #00d4ff;
  animation: wavePulse 2s infinite;
}

@keyframes wavePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #f1f5f9;
  border: none;
  color: #475569;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-title {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

.form-msg {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
  text-align: center;
}

.form-msg.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

.form-msg.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* ==========================================================================
   SECCIÓN MULTIMEDIAL DE VIDEO & APLICACIÓN GENERADORA DE REPORTES
   ========================================================================== */

.video-section-container {
  margin: 3.5rem 0;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 2.2rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 50, 120, 0.05);
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.section-subtext {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.8rem;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 50, 120, 0.08);
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Generador de Reportes Card */
.report-generator-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  margin: 3.5rem 0;
  box-shadow: 0 15px 40px rgba(0, 50, 120, 0.08);
  text-align: left;
}

.report-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.report-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.report-desc {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.report-form-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 1rem;
  align-items: end;
}

.form-group-btn {
  margin-bottom: 1.2rem;
}

/* Resultados del Reporte */
.reporte-resultado-container {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed #cbd5e1;
  animation: fadeInRight 0.5s ease;
}

.reporte-resumen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
}

.reporte-info-empresa h3 {
  font-size: 1.3rem;
  color: #0052cc;
  margin-bottom: 0.4rem;
}

.reporte-info-empresa p {
  font-size: 0.88rem;
  color: #475569;
}

.reporte-stats-pills {
  display: flex;
  gap: 0.6rem;
}

.stat-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-pill.total { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.stat-pill.pending { background: #fefce8; border: 1px solid #fef08a; color: #a16207; }
.stat-pill.done { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

.reportes-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.reporte-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reporte-item-card:hover {
  border-color: #0066ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.12);
}

.reporte-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.reporte-tipo {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0052cc;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.status-badge.badge-warning { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.status-badge.badge-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

.reporte-item-title {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.reporte-item-desc {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1rem;
}

.reporte-item-meta {
  font-size: 0.8rem;
  color: #1e293b;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reporte-actions-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 820px) {
  .report-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECCIÓN DE LOGOS DE CLIENTES ALIADOS (MARQUESINA ROTATIVA INFINITA)
   ========================================================================== */

.clients-carousel-section {
  padding: 4rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 3.5rem 0 0;
  overflow: hidden;
  text-align: center;
}

.clients-header {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.clients-tagline {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.clients-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.clients-subtitle {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

/* Contenedor con degradado lateral (fade mask) */
.clients-marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.clients-marquee-wrapper:hover .clients-marquee-track {
  animation-play-state: paused;
}

.clients-marquee-wrapper.no-pause-hover:hover .clients-marquee-track {
  animation-play-state: running;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 50, 120, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo-item:hover {
  border-color: #0066ff;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
  transform: translateY(-3px) scale(1.03);
}

.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(75%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo-item:hover .client-logo-img {
  filter: grayscale(0%) opacity(100%);
}

@media (max-width: 768px) {
  .clients-carousel-section {
    padding: 3rem 1rem 2.5rem;
  }
  
  .clients-title {
    font-size: 1.5rem;
  }
  
  .client-logo-item {
    width: 160px;
    height: 70px;
    padding: 0.5rem 0.8rem;
  }
  
  .clients-marquee-track {
    gap: 1.5rem;
  }

  /* Optimizaciones generales para dispositivos móviles */
  .site-wrapper {
    padding: 0.8rem;
  }

  .container {
    padding: 0 0.4rem;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .header-brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .header-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }

  .hero-description {
    font-size: 0.9rem !important;
    padding: 0 0.5rem;
  }

  .main-card {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .card-admin-box {
    padding: 1.25rem 1rem !important;
  }

  .admin-grid-layout,
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .stats-cargue-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.8rem !important;
  }

  .stat-cargue-card {
    padding: 1rem 0.9rem !important;
  }

  .stat-cargue-card .val {
    font-size: 1.25rem !important;
  }

  /* Prevenir zoom automático indeseado en inputs de iPhone/Android */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Envoltura con desplazamiento táctil suave para tablas y PDF */
  .table-responsive,
  .pdf-scroll-outer {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .carta-pdf-canvas {
    transform-origin: top left;
    min-width: 215.9mm;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem !important;
  }

  .stats-cargue-grid {
    grid-template-columns: 1fr !important;
  }

  .btn-primary,
  .btn-ghost {
    padding: 0.65rem 1rem !important;
    font-size: 0.88rem !important;
  }
}


