/* ============================================
   DRUMLIFE – Indicadores de Seguridad Vial
   Estilos Principales
   ============================================ */

:root {
  --red: #e8e8f0;
  --red-dark: #e8e8f0;
  --dark:#1a1a35;
  --dark2: #12122a;
  --dark3: #1a1a35;
  --card-bg: #161628;
  --blue: #4FC3F7;
  --green: #1DB954;
  --orange: #161628;
  --yellow: #161628;
  --text: #e8e8f0;
  --muted: #e8e8f0;
  --border: rgba(255,255,255,0.08);
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

.accent { color: var(--red); }
.hidden { display: none !important; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(13,13,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  font-weight: 600; letter-spacing: .4px; transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.btn-admin {
  color: var(--muted) !important;
  border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 8px;
}
.btn-admin:hover { border-color: var(--red) !important; color: var(--red) !important; }
.btn-whatsapp {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff !important;
  padding: 9px 20px; border-radius: 50px;
  font-weight: 700; font-size: 13px; transition: transform .2s, box-shadow .2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.4); }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,13,26,0.85) 0%, rgba(13,13,26,0.6) 50%, rgba(13,13,26,0.92) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; padding: 48px 40px;
  animation: fadeUp .8s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2196f3; border: 1px solid #2196f3;
  color: var(--red); font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 50px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.05; margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-sub {
  color: var(--muted); font-size: 16px; max-width: 520px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-cta {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.btn-hero-secondary {
  display: flex; align-items: center; gap: 8px;
  background: #2196f3; border: 1px solid #2196f3;
  color: var(--red); padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn-hero-secondary:hover { background: #2196f3; transform: translateY(-2px); }

/* ---- DASHBOARD MOCKUP ---- */
.dashboard-mockup {
  position: relative; z-index: 1;
  width: min(900px, 95vw);
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 60px rgba(255,76,41,0.08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  opacity: 0.92;
}
.dash-header {
  background: var(--dark2); padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.dash-logo-area { display: flex; align-items: center; gap: 10px; }
.dash-logo-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #413a38);
}
.dash-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text); }
.dash-tabs { display: flex; gap: 4px; }
.tab {
  padding: 5px 14px; border-radius: 6px; font-size: 11px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.tab.active { background: #2196f3; color: var(--red); }
.dash-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 18px 20px; }
.kpi {
  background: var(--card-bg); border-radius: 12px; padding: 16px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.kpi::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  border-radius: 12px 12px 0 0;
}
.kpi.red::before { background: var(--red); }
.kpi.green::before { background: var(--green); }
.kpi.blue::before { background: var(--blue); }
.kpi.orange::before { background: var(--orange); }
.kpi-icon { font-size: 18px; margin-bottom: 6px; }
.kpi-val { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.kpi-lbl { font-size: 10px; color: var(--muted); margin: 2px 0; }
.kpi-trend { font-size: 10px; font-weight: 700; }
.kpi-trend.up { color: var(--green); }
.kpi-trend.down { color: var(--red); }
.dash-charts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 0 20px 20px; }
.chart-card {
  background: var(--card-bg); border-radius: 12px; padding: 14px;
  border: 1px solid var(--border);
}
.chart-title { font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.line-chart, .donut-chart, .bar-mini { width: 100%; }
.legend { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.legend span { font-size: 9px; color: var(--muted); }

/* ========== SECTIONS ========== */
.section-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 16px;
}
.section-sub { color: var(--muted); max-width: 600px; margin-bottom: 48px; }
.link-accent { color: var(--red); text-decoration: none; font-weight: 700; }
.link-accent:hover { text-decoration: underline; }

/* ========== FEATURES ========== */
.features {
  padding: 120px 48px 80px;
  max-width: 1200px; margin: 0 auto;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.feat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .2s, border-color .2s;
}
.feat-card:hover { transform: translateY(-6px); border-color: #2196f3; }
.feat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feat-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 14px; }

/* ========== DOWNLOAD SECTION ========== */
.download-section {
  padding: 80px 48px 100px;
  max-width: 1200px; margin: 0 auto;
}
.download-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); gap: 32px; }
.dl-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.dl-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.dl-card.featured { border-color:#2196f3; }
.dl-featured-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px;
}
.dl-card-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 24px 24px; gap: 14px;
}
.dl-card-header.excel { background: linear-gradient(135deg, #0a3d22, #1a5c38); }
.dl-card-header.powerbi { background: linear-gradient(135deg, #2a2000, #4a3800); }
.dl-icon-wrap {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3); overflow: hidden;
}
.dl-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 50px;
}
.dl-badge.pbi { color: var(--yellow); border-color: rgba(242,200,17,0.4); }
.dl-card-body { padding: 28px; }
.dl-card-body h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.dl-card-body p { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.dl-features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.dl-features li { font-size: 13px; color: var(--text); opacity: 0.85; }
.btn-download {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 12px; border: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .2s, box-shadow .2s; margin-bottom: 20px;
}
.excel-btn { background: linear-gradient(135deg, #1D6F42, #2d8e58); color: #fff; }
.excel-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,111,66,0.4); }
.pbi-btn { background: linear-gradient(135deg, #F2C811, #ffab00); color: #1a1200; }
.pbi-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(242,200,17,0.4); }
.dl-instructions {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.pdf-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--red); text-decoration: none; font-size: 13px; font-weight: 700;
  transition: opacity .2s;
}
.pdf-link:hover { opacity: 0.8; }
.instructions-note {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  background: rgba(255,76,41,0.06); border-left: 2px solid #2196f3;
  padding: 10px 14px; border-radius: 0 8px 8px 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, rgba(255,76,41,0.12), rgba(79,195,247,0.06));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.cta-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-text h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.cta-text p { color: var(--muted); max-width: 400px; font-size: 15px; }
.btn-cta-big {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  background: #25D366; color: #fff;
  padding: 18px 36px; border-radius: 50px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta-big:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(37,211,102,.5); }

/* ========== FOOTER ========== */
.footer {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 60px 48px 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { height: 36px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-links, .footer-contact {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 4px;
}
.footer-links a, .footer-contact a {
  color: var(--muted); text-decoration: none; font-size: 13px; transition: color .2s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--red); }
.footer-wp {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff !important;
  padding: 7px 16px; border-radius: 50px; font-weight: 700; font-size: 12px;
  width: fit-content;
}
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 0;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted); gap: 20px; flex-wrap: wrap;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 40px;
  width: 100%; max-width: 440px; position: relative;
  transform: translateY(24px); transition: transform .3s;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background:#2196f3; color: var(--red); }
.modal-logo { text-align: center; margin-bottom: 24px; }
.modal-title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.modal-sub { color: var(--muted); text-align: center; font-size: 14px; margin-bottom: 28px; }
.modal-error {
  background: rgba(255,76,41,0.15); border: 1px solid #2196f3;
  color: var(--red); padding: 10px 16px; border-radius: 8px;
  font-size: 13px; text-align: center; margin-bottom: 16px;
}
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form-group input {
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px; border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--red); }
.btn-modal-login {
  background: linear-gradient(135deg, var(--red), #161628);
  color: #fff; border: none; padding: 14px;
  border-radius: 12px; font-family: var(--font-body);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .2s, box-shadow .2s; margin-top: 8px;
}
.btn-modal-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px#2196f3; }
.modal-footer-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }
.modal-footer-note a { color: var(--red); text-decoration: none; font-weight: 700; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.pulse {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.65); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .navbar { padding: 12px 20px; }
  .nav-links { gap: 14px; }
  .hero-content { padding: 32px 24px; }
  .dashboard-mockup { display: none; }
  .hero { min-height: auto; padding: 120px 20px 60px; justify-content: flex-start; }
  .hero-bg { display: none; }
  .hero-overlay { display: none; }
  .features, .download-section { padding: 60px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .dash-kpis { grid-template-columns: repeat(2,1fr); }
  .dash-charts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links a:not(.btn-whatsapp):not(.btn-admin) { display: none; }
  .hero-title { font-size: 2rem; }
  .download-cards { grid-template-columns: 1fr; }
  .modal { padding: 32px 20px; }
}
