/* styles.css */
/* 2026-10-22: sin Google Fonts (no se envía la IP de los visitantes a terceros): letras del propio equipo. */

:root {
  --oled-black: #000000;
  --dark-grey: #1C1C1E;
  --roapp-orange: #FF6D00;
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --success: #00E676;
  --error: #FF1744;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--oled-black);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Glow Effect */
body::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(255, 109, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}

header {
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
}

.logo-text {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active {
  color: var(--roapp-orange);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(28, 28, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 109, 0, 0.2);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  margin-top: 50px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--roapp-orange), #FF8E3C);
  color: #fff;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 109, 0, 0.6);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--roapp-orange);
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  border: 2px solid var(--roapp-orange);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 109, 0, 0.1);
  transform: translateY(-2px);
}

/* Typography */
h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--roapp-orange);
}

h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-height: 70vh;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(255, 109, 0, 0.2);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* How it Works (Steps) */
.steps-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.step-box {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
  background: var(--roapp-orange);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(255, 109, 0, 0.5);
}

/* Driver Banner */
.driver-banner {
  background: linear-gradient(135deg, rgba(28, 28, 30, 0.9), rgba(255, 109, 0, 0.15));
  border: 1px solid var(--roapp-orange);
  text-align: center;
  padding: 60px 40px;
}

/* FAQ Accordion */
.faq-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 16px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 20px 20px;
}

.faq-item.active .faq-question {
  color: var(--roapp-orange);
}

/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
  color: var(--text-secondary);
}

/* Legal text styling */
.legal-content p, .legal-content li {
  font-size: 16px;
  margin-bottom: 15px;
  text-align: justify;
}
.legal-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 22px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  header {
    flex-direction: column;
    gap: 20px;
  }
  
  nav a {
    margin: 0 10px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}
