/* ============================= */
/* VARIABLES CORPORATIVAS */
/* ============================= */
:root {
  --primary: #B00A0A;
  --dark: #031425;
  --gray: #6B7280;
  --light: #F3F4F6;
  --white: #FFFFFF;
}

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

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--gray);
  line-height: 1.6;
}

/* ============================= */
/* NAVBAR */
/* ============================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  border-bottom: 3px solid var(--primary);
}

.logo img {
  height: 55px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-nav:hover {
  background: var(--dark);
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('img/imagen3.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin: 20px 0;
  font-weight: 800;
}

.hero h2 {
  font-weight: 400;
  letter-spacing: 1px;
}

.hero p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* BOTONES */
.buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

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

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

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

/* ============================= */
/* SECCIONES */
/* ============================= */
.section {
  padding: 60px 8%;
  text-align: center;
  background: var(--white);
  color: var(--dark);
}

.section.with-overlay {
  padding: 0;
}

.section.dark {
  background: var(--dark);
  color: var(--white);
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--dark);
}

.section.dark .section-title {
  color: var(--white);
}

.section-subtext {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}

/* ============================= */
/* TARJETAS */
/* ============================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-top: 4px solid var(--primary);
  transition: 0.3s;
}

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

.card h3 {
  margin-bottom: 15px;
}

.card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.section.dark .card {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

/* ============================= */
/* ESTADÍSTICAS */
/* ============================= */
.stats {
  display: flex;
  justify-content: space-around;
  background: var(--white);
  padding: 80px 8%;
  color: var(--dark);
  flex-wrap: wrap;
  gap: 40px;
}

.stat h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ============================= */
/* FLOTA */
/* ============================= */
.fleet-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.fleet-item,
.about-grid > div {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary);
  text-align: left;
}

.section.dark .fleet-item {
  background: rgba(255,255,255,0.05);
}

/* ============================= */
/* CONTACTO */
/* ============================= */
.contact-section {
  background: var(--light);
}

.contact-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
}

.card-contact {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info {
  text-align: left;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--dark));
}

.contact-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-details p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-details i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

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

.btn-contact {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 6px;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-contact:hover {
  background: var(--dark);
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
  background: var(--white);
  color: var(--dark);
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}

/* ============================= */
/* WHATSAPP */
/* ============================= */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: 0.3s;
}

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

.whatsapp img {
  width: 25px;
  height: 25px;
}

/* INSTAGRAM */
.instagram {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.instagram:hover {
  transform: scale(1.1);
}

/* GMAIL */
.gmail {
  position: fixed;
  bottom: 140px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #EA4335;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.gmail:hover {
  transform: scale(1.1);
}

/* PHONE */
.phone {
  position: fixed;
  bottom: 200px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.phone:hover {
  transform: scale(1.1);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 1024px) {
  nav {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .hero {
    height: auto;
    padding: 150px 5% 80px;
  }

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

  .section {
    padding: 40px 5%;
  }

  .stats {
    flex-direction: column;
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================= */
/* FONDOS CON IMÁGENES */
/* ============================= */
.bg-hero {
  background-image: linear-gradient(rgba(3,20,37,0.75), rgba(3,20,37,0.75)), url('img/imagen3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-proceso {
  background-image: linear-gradient(rgba(3,20,37,0.75), rgba(3,20,37,0.75)), url('img/imagen2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-flota {
  background-image: linear-gradient(rgba(3,20,37,0.75), rgba(3,20,37,0.75)), url('img/imagen3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-nosotros {
  background-image: linear-gradient(rgba(3,20,37,0.75), rgba(3,20,37,0.75)), url('img/imagen4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 100px 8%;
  border-radius: 10px;
}

.proceso-image {
  width: 40%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.proceso-content {
  flex: 1;
  text-align: center;
}

.nosotros-image {
  width: 40%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.nosotros-content {
  flex: 1;
  text-align: center;
}

.clients-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  padding: 80px 8%;
}

.clients-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.client-logo-img {
  max-width: 150px !important;
  max-height: 100px !important;
  object-fit: contain !important;
  filter: grayscale(40%) !important;
  transition: all 0.3s ease !important;
  opacity: 0.8 !important;
}

.client-logo-img:hover {
  filter: grayscale(0%) !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.client-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* ============================= */
/* RESPONSIVE - CLIENTES */
/* ============================= */
@media (max-width: 1024px) {
  .clients-horizontal {
    gap: 35px;
  }
  
  .client-logo-img {
    max-width: 130px !important;
    max-height: 85px !important;
  }
}

@media (max-width: 768px) {
  .clients-section {
    padding: 60px 5%;
  }
  
  .clients-horizontal {
    gap: 25px;
  }
  
  .client-logo-img {
    max-width: 110px !important;
    max-height: 70px !important;
  }

  .overlay {
    flex-direction: column;
    gap: 20px;
  }

  .proceso-image, .nosotros-image {
    width: 100%;
  }

  .proceso-content, .nosotros-content {
    text-align: center;
  }
}