/* ============================================
   TAXI ÁNGEL MOLINA — Design System
   Concepto: "Red Motion on Dark Space"
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #080808;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --red-toyota: #e61e2b;
  --red-dark: #b8161f;
  --green-logo: #28a745;
  --green-light: #34d058;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.85);
  --white-muted: rgba(255, 255, 255, 0.55);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-neon-green: 0 0 20px rgba(40, 167, 69, 0.3);
  --shadow-neon-red: 0 0 20px rgba(230, 30, 43, 0.3);
  --shadow-elevation: 0 20px 60px rgba(0, 0, 0, 0.5);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--white-soft);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 100px 0;
}

/* --- Navbar Glassmorphism --- */
.navbar-glass {
  background: rgba(8, 8, 8, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  transition: var(--transition);
}

.navbar-glass.scrolled {
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand img {
  height: 46px;
  transition: var(--transition);
}

.navbar-glass .nav-link {
  color: var(--white-soft) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 8px 18px !important;
  border-radius: 10px;
  transition: var(--transition);
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
  color: var(--white) !important;
  background: var(--bg-glass);
}

.navbar-toggler {
  border: 1px solid var(--border-glass);
  padding: 6px 10px;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(8, 8, 8, 0.7) 40%,
    rgba(8, 8, 8, 0.4) 70%,
    rgba(8, 8, 8, 0.2) 100%
  );
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-logo);
  margin-bottom: 28px;
}

.hero-badge i {
  font-size: 0.7rem;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 650px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--red-toyota), #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--white-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Buttons --- */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red-toyota), var(--red-dark));
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-red);
  color: var(--white);
}

.btn-green-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green-logo), #1e8e3e);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-green-glow:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-neon-green);
  color: var(--white);
}

.btn-outline-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-logo);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* --- Bento Grid Services --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-toyota), var(--green-logo));
  opacity: 0;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-elevation);
  background: rgba(255, 255, 255, 0.06);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(230, 30, 43, 0.08), rgba(40, 167, 69, 0.05));
  border-color: rgba(230, 30, 43, 0.15);
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--red-toyota);
  transition: var(--transition);
}

.bento-card:hover .bento-icon {
  box-shadow: var(--shadow-neon-red);
  border-color: rgba(230, 30, 43, 0.3);
}

.bento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Vehicle / ECO Section --- */
.vehicle-section {
  position: relative;
  overflow: hidden;
}

.vehicle-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 30, 43, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.vehicle-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.vehicle-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eco-badge-float {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--green-logo), var(--green-light));
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: var(--shadow-neon-green);
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-glass);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green-logo);
}

.feature-list li h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-list li p {
  font-size: 0.9rem;
  color: var(--white-muted);
  margin: 0;
}

/* --- About Section --- */
.about-section {
  position: relative;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 50px 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-img-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-glass);
  margin: 0 auto 30px;
  box-shadow: 0 0 40px rgba(40, 167, 69, 0.15);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-align: center;
}

.about-card .about-role {
  color: var(--green-logo);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 24px;
}

.about-card p {
  color: var(--white-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* --- Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .stat-accent {
  color: var(--red-toyota);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--white-muted);
  letter-spacing: 0.5px;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(230, 30, 43, 0.12), rgba(40, 167, 69, 0.06));
  border: 1px solid rgba(230, 30, 43, 0.2);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 30, 43, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--white-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- Footer --- */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--white-muted);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--green-logo);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-contact li i {
  color: var(--green-logo);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
}

.footer-bottom p {
  color: var(--white-muted);
  font-size: 0.82rem;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green-logo), #1e8e3e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.6);
}

.whatsapp-float i {
  font-size: 1.8rem;
  color: var(--white);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* --- Mobile Call Button --- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 12px 16px;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
}

.mobile-call-bar .btn-primary-glow {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Media Queries --- */
@media (max-width: 991px) {
  section {
    padding: 70px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.featured {
    grid-column: span 1;
  }

  .navbar-collapse {
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    padding: 16px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }

  .hero-section {
    min-height: 90vh;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }

  .mobile-call-bar {
    display: block;
  }

  .whatsapp-float {
    bottom: 90px;
  }

  .stats-row {
    gap: 28px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-card {
    padding: 36px 24px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .footer {
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto 24px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn-primary-glow,
  .btn-green-glow,
  .btn-outline-glass {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}
