/*
Theme Name: Mi Pasaje
Theme URI: https://mipasaje.com.ve
Description: Tema oficial de Mi Pasaje — landing de la app de compra de pasajes de bus en Venezuela. Réplica fiel de la landing original, con textos editables desde Apariencia → Personalizar.
Author: Inversiones Inngenio
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mipasaje
*/

/* ── Variables de marca ── */
:root {
  --primary: #67c43a;
  --primary-dark: #53a62e;
  --primary-light: #7dd946;
  --bg-dark: #001d3b;
  --bg-gradient: linear-gradient(135deg, #001d3b 0%, #002a5c 100%);
  --card-bg: #ffffff;
  --card-shadow: 0 10px 40px rgba(0, 29, 59, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #67c43a;
  --text-dark: #001d3b;
  --accent-gradient: linear-gradient(135deg, #67c43a 0%, #7dd946 100%);
}

* { box-sizing: border-box; }

body {
  background: var(--bg-gradient);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
  background: rgba(0, 29, 59, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(103, 196, 58, 0.2);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(0, 29, 59, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 29, 59, 0.5);
}
.navbar-brand img { height: 35px; width: auto; transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }
.nav-link { color: var(--text-primary) !important; font-weight: 500; position: relative; transition: all 0.3s ease; }
.nav-link:hover { color: var(--primary) !important; transform: translateY(-2px); }
.nav-link::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%;
  background: var(--accent-gradient); transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-link:hover::after { width: 100%; }

/* ── Hero ── */
.hero { background: var(--bg-gradient); padding: 8rem 0 6rem; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(103, 196, 58, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(103, 196, 58, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.display-4 {
  background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 800; font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem;
}
.hero .lead { font-size: 1.3rem; color: var(--text-secondary); font-weight: 400; margin-bottom: 2.5rem; }
.section-title {
  background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Botones ── */
.btn-primary {
  background: var(--accent-gradient); border: none; color: #fff; font-weight: 600; padding: 1rem 2rem;
  border-radius: 50px; box-shadow: 0 8px 25px rgba(103, 196, 58, 0.3); transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(103, 196, 58, 0.4); }
.btn-outline-light {
  border: 2px solid #67c43a; color: #67c43a; font-weight: 600; padding: 1rem 2rem; border-radius: 50px;
  backdrop-filter: blur(10px); transition: all 0.3s ease; background: rgba(0, 29, 59, 0.3);
}
.btn-outline-light:hover {
  background: #67c43a; border-color: #67c43a; color: #001d3b; transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(103, 196, 58, 0.4);
}
.btn-dark {
  background: #001d3b; border: 2px solid #67c43a; color: #fff; font-weight: 600; padding: 1.2rem 3rem;
  border-radius: 50px; backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.btn-dark:hover { background: #002a5c; border-color: #7dd946; transform: translateY(-3px); box-shadow: 0 15px 35px rgba(103, 196, 58, 0.4); }

/* ── Stats ── */
.stats-section {
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 2.5rem; margin: 3rem 0; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.stat-number {
  font-size: 3rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

/* ── Features ── */
.features-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-card {
  background: var(--card-bg); border-radius: 20px; padding: 2.5rem 2rem; box-shadow: var(--card-shadow);
  transition: all 0.4s ease; border: 1px solid rgba(255, 255, 255, 0.1); height: 100%;
}
.feature-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
.feature-icon {
  font-size: 3.5rem; background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1.5rem; display: block;
}
.feature-card h5 { color: #001d3b; font-weight: 700; margin-bottom: 1rem; font-size: 1.3rem; }
.feature-card p { color: #64748b; font-size: 1rem; line-height: 1.6; }

/* ── Proceso ── */
.process-card {
  background: var(--card-bg); border-radius: 20px; padding: 2.5rem; box-shadow: var(--card-shadow);
  transition: all 0.4s ease; border: 1px solid rgba(255, 255, 255, 0.1); position: relative; overflow: hidden;
}
.process-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-gradient); }
.process-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); }
.process-card .bi { color: #001d3b; margin-bottom: 1.5rem; }
.process-card h5 { color: #001d3b; font-weight: 700; margin-bottom: 1rem; }
.process-card p { color: #64748b; line-height: 1.6; }

/* ── CTA ── */
.cta-section { background: var(--accent-gradient); position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* ── Footer ── */
footer { background: linear-gradient(135deg, #001d3b 0%, #002a5c 100%); border-top: 1px solid rgba(103, 196, 58, 0.2); }
footer a { color: rgba(255,255,255,0.85); }
footer a:hover { color: var(--primary); }

/* ── WhatsApp flotante ── */
.floating-wpp {
  position: fixed; bottom: 25px; right: 25px; z-index: 1050; background: #25d366; color: #fff;
  border-radius: 50%; width: 65px; height: 65px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); transition: all 0.3s ease; text-decoration: none;
}
.floating-wpp:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6); color: #fff; }

/* ── Páginas legales (privacy/terms) ── */
.legal-page { background: #fff; color: #1f2937; min-height: 60vh; }
.legal-page .container { max-width: 860px; }
.legal-page h1, .legal-page h2, .legal-page h3 { color: #001d3b; }
.legal-page a { color: var(--primary-dark); }

/* ── Animaciones ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out; }

@media (max-width: 768px) {
  .hero { padding: 5rem 0 4rem; }
  .display-4 { font-size: 2.5rem; }
  .hero .lead { font-size: 1.1rem; }
  .stats-section { padding: 2rem 1.5rem; }
  .stat-number { font-size: 2.2rem; }
  .feature-card, .process-card { padding: 2rem 1.5rem; }
}
@media (max-width: 576px) {
  .display-4 { font-size: 2rem; }
  .btn-primary, .btn-outline-light { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}
