/* ==========================================================================
   FULGENS CORPORATE & COMMERCIAL LANDING PAGE STYLES
   Una marca de VIGIL Seguridad Privada
   ========================================================================== */

:root {
  --bg-main: #070a12;
  --bg-card: rgba(13, 19, 33, 0.82);
  --bg-card-hover: rgba(20, 28, 48, 0.92);
  --border-card: rgba(0, 255, 255, 0.15);
  --border-card-gold: rgba(255, 204, 0, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #00ffff;
  --accent-cyan-glow: rgba(0, 255, 255, 0.35);
  --accent-gold: #ffcc00;
  --accent-gold-glow: rgba(255, 204, 0, 0.3);
  --accent-emerald: #10b981;
  --font-orbitron: 'Orbitron', monospace, sans-serif;
  --font-rajdhani: 'Rajdhani', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 1. MAP BACKGROUND CONTAINER (AMBIENTAL FIJO) */
#map-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* OCULTAR CONTROLES POR DEFECTO DE MAPLIBRE */
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-attrib {
  display: none !important;
}

/* 2. OVERLAY OSCURO CON DEGRADADO SUAVE (PERMITE APRECIAR LAS RUTAS CON ALTA NITIDEZ) */
.map-dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 32%, rgba(7, 10, 18, 0.28) 0%, rgba(7, 10, 18, 0.72) 58%, #070a12 95%);
  z-index: 2;
  pointer-events: none;
}

/* 3. MAIN SCROLLABLE CONTENT WRAPPER */
#content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  pointer-events: auto;
}

/* NAVBAR FLOTANTE */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1240px;
  height: 72px;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

.brand-text h1 {
  font-family: var(--font-orbitron);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.brand-byline {
  font-family: var(--font-rajdhani);
  font-size: 0.68rem;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.link-operativo {
  color: var(--accent-gold) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vigil-badge-nav {
  display: flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.vigil-mini-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* BOTONES TÁCTICOS Y CORPORATIVOS */
.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-rajdhani);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: var(--font-rajdhani);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--font-rajdhani);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-animation 1.8s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-orbitron);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 950px;
}

.hero-title span {
  color: var(--accent-cyan);
  text-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
}

/* MÉTRICAS EN VIVO */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1000px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 255, 255, 0.25);
}

.metric-value {
  font-family: var(--font-orbitron);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.metric-value.cyan { color: var(--accent-cyan); text-shadow: 0 0 14px var(--accent-cyan-glow); }
.metric-value.emerald { color: var(--accent-emerald); text-shadow: 0 0 14px rgba(16, 185, 129, 0.4); }
.metric-value.gold { color: var(--accent-gold); text-shadow: 0 0 14px var(--accent-gold-glow); }

.metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECCIONES COMUNES */
.section {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  font-family: var(--font-rajdhani);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-orbitron);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* GRILLA DE SERVICIOS / SOLUCIONES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.28);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--font-rajdhani);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #ffffff;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.service-features li {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.service-features li::before {
  content: '▸';
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  top: 0;
}

/* SECCIÓN DE COTIZACIÓN COMERCIAL */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 40px;
}

.contact-info-col h3, .contact-form-col h3 {
  font-family: var(--font-rajdhani);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.contact-info-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.method-details h4 {
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 700;
  margin-bottom: 2px;
}

.method-details a, .method-details span {
  font-size: 0.88rem;
  color: var(--accent-cyan);
  text-decoration: none;
}

.method-details a:hover {
  text-decoration: underline;
}

/* FORMULARIO COMERCIAL */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-control {
  background: rgba(7, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.25);
  background: rgba(10, 15, 26, 0.98);
}

select.form-control {
  background-color: #070a12;
}

textarea.form-control {
  resize: vertical;
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05080e;
  padding: 60px 24px 30px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h2 {
  font-family: var(--font-orbitron);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 2px;
}

.footer-brand span {
  font-family: var(--font-rajdhani);
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  display: block;
}

.footer-col h4 {
  font-family: var(--font-rajdhani);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .hero-title { font-size: 2.2rem; }
  .contact-container { grid-template-columns: 1fr; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .navbar { height: 64px; padding: 0 16px; width: calc(100% - 24px); }
  .vigil-badge-nav { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .metrics-strip { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}
