/*
 * Hoja de estilos global para MiFlota.
 * Define una paleta de colores coherente, tipografías legibles y
 * componentes reutilizables como navegación, botones y tarjetas. El
 * diseño es responsive para que funcione en dispositivos de distintos
 * tamaños.
 */

/* Paleta de colores */
:root {
  --primary-color: #0a74c9;
  --secondary-color: #004a8f;
  --light-bg: #f9f9f9;
  --text-color: #333333;
  --card-bg: #ffffff;
  --border-radius: 6px;
}

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* Encabezado y navegación */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo img {
  height: 48px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  padding: 8px 0;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Sección de héroe */
.hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #ffffff;
  padding: 0 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  margin-right: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Contenedores seccionales */
.section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section p {
  margin-bottom: 15px;
}

/* Tarjetas */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  padding: 20px;
  flex: 1 1 calc(50% - 20px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card ul {
  padding-left: 20px;
  margin-top: 0;
}

/* Tabla de precios */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.pricing-plan {
  background-color: var(--card-bg);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 20px;
  flex: 1 1 calc(33.333% - 20px);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pricing-plan h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.pricing-plan ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pricing-plan ul li {
  margin-bottom: 8px;
}

.pricing-plan .btn {
  margin-top: 15px;
}

/* Formulario de contacto/demo */
.contact-form {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .checkbox-group {
  margin-top: 10px;
}

.contact-form .checkbox-group label {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  font-weight: normal;
}

.contact-form .checkbox-group input {
  margin-right: 5px;
}

.contact-form .microcopy {
  font-size: 0.85rem;
  color: #666666;
  margin-top: 10px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  text-align: center;
}

/* Sección de FAQ */
.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  display: none;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 30px 20px;
  text-align: center;
}

footer p {
  margin: 5px 0;
}

/* Responsivo */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 12px;
    background-color: #ffffff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    display: none;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.8rem;
  }

  nav .logo {
    display: flex;
    align-items: center;
  }

  .cards .card,
  .pricing-plan {
    flex: 1 1 100%;
  }
}