:root {
  --verde: #1B5E20;
  --verde-claro: #4CAF50;
  --amarillo: #FFC107;
  --blanco: #FFFFFF;
  --gris: #F5F5F5;
  --error: #ff4444;
  --success: #4CAF50;
  --gris-oscuro: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--blanco);
  color: var(--gris-oscuro);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Estilos de la página principal */
header {
  background: var(--blanco);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--verde);
  cursor: pointer;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--amarillo);
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

nav a:hover:after {
  width: 100%;
}

.btn {
  background: var(--verde);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}

.btn:hover {
  background: var(--verde-claro);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('../img/Imagen1.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 70px;
  padding: 0 5%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-buttons {
  margin-top: 30px;
}

.btn-hero {
  padding: 12px 30px;
  margin: 0 10px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255,193,7,0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--verde);
  color: var(--verde);
}

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

/* Sección Servicios */
.servicios {
  padding: 80px 5%;
  text-align: center;
}

.servicios h2 {
  color: var(--verde);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.servicios p {
  color: #666;
  max-width: 700px;
  margin: 0 auto 40px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.servicio-card:hover {
  transform: translateY(-10px);
}

.servicio-icon {
  font-size: 2.5rem;
  color: var(--verde);
  margin-bottom: 15px;
}

/* Sección Conductores */
.conductores {
  background: var(--gris);
  padding: 80px 5%;
  text-align: center;
}

.conductores h2 {
  color: var(--verde);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.conductores p {
  color: #666;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Formularios */
.form-container {
  max-width: 500px;
  margin: 100px auto 40px;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  flex: 1;
}

.form-container h2 {
  text-align: center;
  color: var(--verde);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gris-oscuro);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--verde);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

input.invalid {
  border-color: var(--error) !important;
}

input.valid {
  border-color: var(--success) !important;
}

/* Selector de teléfono internacional */
.iti {
  width: 100%;
  margin-bottom: 1.5rem;
}

.iti__selected-flag {
  padding: 0 15px;
  border-radius: 5px 0 0 5px;
}

.iti__country-list {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-top: 5px;
}

.iti__divider {
  border-bottom-color: #eee;
}

.iti__country.iti__highlight {
  background-color: rgba(27, 94, 32, 0.1);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  transition: all 0.3s;
}

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

/* Footer */
footer {
  background: var(--verde);
  color: var(--blanco);
  padding: 50px 5% 30px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--amarillo);
}

.footer-section.about p {
  margin-bottom: 15px;
  line-height: 1.6;
}

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

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

.footer-links a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--amarillo);
  transform: translateX(5px);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--amarillo);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--amarillo);
  color: #333;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-legal-links a:hover {
  color: var(--amarillo);
}

/* Estilos de formulario de carga de Excel */
.container {
  max-width: 800px;
  width: 100%;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 100px auto 40px;
}

.container h1 {
  text-align: center;
  color: var(--verde);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.instructions {
  background: var(--gris);
  padding: 20px;
  border-left: 5px solid var(--verde);
  margin-bottom: 30px;
  border-radius: 5px;
}

.instructions h3 {
  color: var(--gris-oscuro);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.instructions ul {
  margin-left: 20px;
  list-style-type: '👉 ';
}

.instructions li {
  margin-bottom: 5px;
}

.example {
  margin-bottom: 30px;
}

.example h4 {
  margin-bottom: 15px;
  color: var(--gris-oscuro);
  font-size: 1.1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  text-align: left;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 12px;
}

table thead th {
  background-color: var(--verde);
  color: var(--blanco);
  font-weight: 600;
}

table tbody tr:nth-child(even) {
  background-color: var(--gris);
}

table tbody tr:hover {
  background-color: #e0e0e0;
  transition: background-color 0.3s;
}

#fileInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--verde-claro);
  border-radius: 5px;
}

#uploadBtn {
  width: 100%;
  background: var(--verde);
  color: var(--blanco);
  padding: 15px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1.1rem;
}

#uploadBtn:hover {
  background: var(--verde-claro);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para la tabla de vista previa */
h3 {
  margin-top: 40px;
  color: #fffffff;
  text-align: center;
}

/* Estilos para el formulario de registro (si se usa) */
.password-container {
  position: relative;
}

.password-container input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--gris-oscuro);
}

/* Selector de teléfono mejorado */
.iti {
  width: 100%;
}

.iti__selected-flag {
  padding: 0 15px;
  border-radius: 5px 0 0 5px;
}

.iti__country-list {
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-top: 5px;
}

/* Validaciones */
input:invalid {
  border-color: var(--error);
}

input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  nav.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-hero {
    padding: 10px 20px;
    margin: 5px;
  }

  .form-container {
    margin: 80px 20px 40px;
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .iti__country-list {
    width: 100%;
  }
}