/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

/* Header y Navegación */
header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo h1 {
  color: #2c3e50;
  font-size: 1.8rem;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 15px;
  border: 2px solid #2c3e50;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background-color: #2c3e50;
}

.menu-toggle:hover span {
  color: #fff;
}

.menu-toggle:hover .hamburger span {
  background-color: #fff;
}

.menu-toggle span {
  color: #2c3e50;
  font-weight: 500;
  line-height: 1;
  transition: color 0.3s ease;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #2c3e50;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3498db;
}

/* Estilos para móvil */
@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap;
    padding: 0.8rem 5%;
  }

  .logo {
    flex: 1;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    padding: 80px 0 1rem 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    opacity: 1;
    visibility: visible;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0;
    text-align: left;
    padding: 1rem 2rem;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('images/fondo-pagina-principal.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7)
  );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #2980b9;
}

/* Sección de Servicios */
.services {
  padding: 5rem 1rem;
  background-color: #f9f9f9;
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 1rem;
}

/* Sección de Flota */
.fleet {
  padding: 5rem 1rem;
}

.fleet h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

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

.vehicle-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
}

.vehicle-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.vehicle-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover img {
  transform: scale(1.1);
}

.vehicle-card h3 {
  padding: 1rem;
  color: #2c3e50;
  position: relative;
  background: white;
  transition: color 0.3s ease;
}

.vehicle-card p {
  padding: 0 1rem 1rem;
  color: #666;
  position: relative;
  background: white;
  transition: all 0.3s ease;
}

.vehicle-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #3498db, #2c3e50);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.vehicle-card:hover::after {
  transform: scaleX(1);
}

.vehicle-card:hover h3 {
  color: #3498db;
}

.vehicle-card:hover p {
  color: #2c3e50;
}

/* Sección Sobre Nosotros */
.about {
  padding: 5rem 1rem;
  background-color: #f9f9f9;
}

.about h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-text ul {
  margin-top: 1rem;
  padding-left: 2rem;
}

/* Sección de Contacto */
.contact {
  padding: 5rem 1rem;
  background-color: #f9f9f9;
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  transition: transform 0.3s;
}

.info-item:hover {
  transform: translateX(10px);
}

.info-item i {
  margin-right: 1rem;
  color: #3498db;
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.info-item p {
  margin: 0;
  color: #333;
}

.whatsapp-contact a {
  color: #25d366;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.whatsapp-contact a:hover {
  color: #128c7e;
}

.whatsapp-contact i {
  color: #25d366;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

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

.submit-button {
  padding: 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #2980b9;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
  margin-top: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Asegurar que el ícono no tenga subrayado */
.whatsapp-float i::before {
  text-decoration: none;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 1rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  background-color: #333;
  color: #fff;
}

.developer-credit {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

.developer-credit a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.developer-credit a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
  }

  .nav-links {
    margin-top: 1rem;
  }

  .nav-links li {
    margin: 0 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

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

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    text-align: center;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }
}
