/* --- VARIABLES DE COLOR --- */
:root {
  --azul-oscuro: #0a192f;
  --azul-fondo-bento: #071120;
  --naranja: #ff6600;
  --naranja-hover: #e05500;
  --blanco: #ffffff;
  --gris-texto: #a8b2d1;
}

/* --- ESTILOS GENERALES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
  overflow-x: hidden;
}

/* --- HERO SECTION Y FONDO --- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background:
    linear-gradient(
      to right,
      rgba(10, 25, 47, 0.85) 30%,
      rgba(10, 25, 47, 0.2) 70%
    ),
    url("images/imgportadas.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 7%;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 12px 7%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 115, 0, 0.6));
}

.logo-img:hover {
  transform: scale(1.22);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 50px;
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

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

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.btn-cotizar {
  background-color: var(--naranja);
  color: var(--blanco);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cotizar:hover {
  background-color: var(--naranja-hover);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* --- CONTENIDO PRINCIPAL --- */
.hero-content {
  padding: 150px 7% 50px 7%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: var(--naranja);
}

.hero-content p {
  color: var(--blanco);
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* --- STATS --- */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-item i {
  font-size: 28px;
  color: var(--naranja);
}

.stat-text h3 {
  font-size: 22px;
  font-weight: 700;
}

.stat-text p {
  font-size: 12px;
  color: var(--gris-texto);
}

/* --- BARRA INFERIOR --- */
.features-bar {
  background-color: var(--azul-fondo-bento);
  width: 86%;
  margin: 0 auto 40px auto;
  border-radius: 16px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
}

.feature-card i {
  font-size: 35px;
  color: var(--naranja);
  background: rgba(255, 102, 0, 0.1);
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s;
}

.feature-card:hover i {
  transform: scale(1.1);
}

.feature-info h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.feature-info p {
  color: var(--gris-texto);
  font-size: 13px;
  line-height: 1.4;
}

/* --- MODAL INTERACTIVO DE COTIZACIÓN --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--azul-fondo-bento);
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255, 102, 0, 0.2);
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.modal.open .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--gris-texto);
}

.close-modal:hover {
  color: var(--naranja);
}

.modal h2 {
  margin-bottom: 20px;
  color: var(--blanco);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--gris-texto);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.993);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: black;
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--naranja);
}

#form-message {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: white;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }
}

@media (max-width: 768px) {
  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #071c3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }

  #nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #nav-menu a {
    color: white;
    font-size: 18px;
  }

  .header-right {
    display: none;
  }

  .menu-toggle {
    display: block;
    color: white;
    font-size: 28px;
    cursor: pointer;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .features-bar {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

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

/* ========== SECCIONES NUEVAS ========== */

.section-white {
  background: #ffffff;
  padding: 80px 7%;
  color: #2c3e50;
}

.section-white h2 {
  font-size: 38px;
  text-align: center;
  margin-bottom: 15px;
  color: #0a192f;
}

.section-white .section-subtitle {
  text-align: center;
  color: #6c757d;
  margin-bottom: 50px;
  font-size: 18px;
}

/* --- ESTILOS SECCIÓN SERVICIOS --- */
.section-white-services {
  background-color: #f8f9fa;
  padding: 80px 7%;
  color: var(--azul-oscuro);
}

.servicios-header {
  text-align: center;
  margin-bottom: 50px;
}

.servicios-header h2 {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--azul-oscuro);
}

.servicios-header .section-subtitle {
  color: #666;
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card-split {
  background: var(--blanco);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.card-top-img {
  position: relative;
  height: 180px;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.15) 100%),
    var(--bg-img);
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.card-bottom-desc {
  background: var(--blanco);
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-bottom-desc h3 {
  color: var(--azul-oscuro);
  font-size: 20px;
  font-weight: 700;
}

.card-bottom-desc p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.service-card-split:hover {
  transform: translateY(-6px);
  border-color: var(--naranja);
}

.service-card-split:hover .card-top-img {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.15) 100%),
    var(--bg-img);
}

/* --- Flota (Vehículos con Imagen Local) --- */
.section-white-flota {
  background-color: #f8f9fa;
  padding: 80px 7%;
  text-align: center;
}

.section-white-flota h2 {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--azul-oscuro);
}

.section-white-flota .section-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 50px;
}

.flota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vehicle-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  text-align: left;
}

.vehicle-img-local {
  height: 220px;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: var(--naranja);
}

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

.vehicle-info {
  padding: 25px;
}

.vehicle-info h3 {
  font-size: 22px;
  color: #0a192f;
  margin-bottom: 10px;
  font-weight: 700;
}

.vehicle-info p {
  color: #6c757d;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.vehicle-specs {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.vehicle-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0a192f;
}

.vehicle-specs span i {
  color: #ff6600;
  font-size: 15px;
}

/* ===== CARDS NOSOTROS ===== */

.nosotros-cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
}

/* HISTORIA */

.historia-card {
  width: 100%;
}

/* GRID INFERIOR */

.nosotros-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .nosotros-bottom-grid {
    grid-template-columns: 1fr;
  }

  .nosotros-card {
    padding: 35px 30px;
  }
}

@media (max-width: 576px) {
  .nosotros-card {
    padding: 30px 25px;
  }

  .nosotros-card h3 {
    font-size: 25px;
  }

  .card-icon {
    width: 65px;
    height: 65px;
    font-size: 26px;
  }
}
/* CARD */

.nosotros-card {
  position: relative;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);

  padding: 40px 35px;

  border-radius: 28px;

  border: 1px solid rgba(255, 255, 255, 0.5);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  overflow: hidden;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* EFECTO HOVER */

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

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

/* DETALLE SUPERIOR */

.nosotros-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 6px;

  background: linear-gradient(90deg, #ff6b00, #ff9900);
}

/* ICONO */

.card-icon {
  width: 75px;
  height: 75px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b00, #ff8c00);
  color: white;
  font-size: 30px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.25);
}

/* TITULO */

.nosotros-card h3 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #0b1d3a;
  position: relative;
}

/* LINEA DECORATIVA */

.nosotros-card h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 50px;
  margin-top: 12px;
  background: linear-gradient(to right, #ff6b00, transparent);
}

/* TEXTO */

.nosotros-card p {
  color: #5b6472;
  font-size: 15px;
  line-height: 2;
  text-align: justify;
}

/* EFECTO BRILLO */

.nosotros-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .nosotros-cards-container {
    grid-template-columns: 1fr;
  }

  .nosotros-card {
    padding: 35px 30px;
  }
}

@media (max-width: 576px) {
  .nosotros-card {
    padding: 30px 25px;
  }

  .nosotros-card h3 {
    font-size: 25px;
  }

  .card-icon {
    width: 65px;
    height: 65px;
    font-size: 26px;
  }
}

/* --- ESTILOS SECCIÓN CLIENTES CARRUSEL --- */
.section-white-clients {
  background-color: #f8f9fa;
  padding: 60px 7% 80px 7%;
  text-align: center;
  overflow: hidden;
}

.clientes-header h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: var(--azul-oscuro);
}

.logos-slider-container {
  position: relative;
  width: 100%;
  margin: 0 auto 50px auto;
  padding: 15px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logos-slider-container::before,
.logos-slider-container::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.logos-slider-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    #f8f9fa 20%,
    rgba(248, 249, 250, 0) 100%
  );
}

.logos-slider-container::after {
  right: 0;
  background: linear-gradient(
    to left,
    #f8f9fa 20%,
    rgba(248, 249, 250, 0) 100%
  );
}

.logos-track {
  display: flex;
  width: calc(250px * 10);
  gap: 40px;
  animation: infinite-scroll 15s ease-in-out infinite alternate;
}

.logos-slider-container:hover .logos-track {
  animation-play-state: paused;
}

.logo-item {
  width: 220px;
  height: 85px;
  background: var(--blanco);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.05);
  border-color: var(--naranja);
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== TESTIMONIOS ===== */

.testimonios-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
}

.testimonios-track {
  position: relative;
  min-height: 320px;
}

/* CARD */

.testimonio-card {
  position: absolute;
  width: 100%;

  opacity: 0;
  transform: translateX(50px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;

  background: rgba(255, 255, 255, 0.95);

  padding: 50px;

  border-radius: 30px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  text-align: center;
}

/* CARD ACTIVA */

.testimonio-card.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

/* ICONO */

.quote-icon {
  font-size: 45px;
  color: #ff6b00;
  margin-bottom: 25px;
}

/* TEXTO */

.testimonio-text {
  font-size: 22px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 25px;
  font-style: italic;
}

/* AUTOR */

.testimonio-autor {
  font-size: 16px;
  font-weight: 700;
  color: #0b1d3a;
}
/* DOTS */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;

  margin-top: 25px;
}

.dot {
  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: #d1d5db;

  transition: 0.3s ease;

  cursor: pointer;
}

/* DOT ACTIVO */

.dot.active {
  background: #ff6b00;

  transform: scale(1.2);
}
/* RESPONSIVE */

@media (max-width: 768px) {
  .testimonio-card {
    padding: 35px 25px;
  }

  .testimonio-text {
    font-size: 18px;
  }
}

@keyframes infinite-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 5 - 40px * 5));
  }
}

/* --- RESPONSIVE DESIGN CLIENTES --- */
@media (max-width: 768px) {
  .logos-slider-container::before,
  .logos-slider-container::after {
    width: 60px;
  }

  .testimonio-card {
    padding: 30px 20px;
  }

  .testimonio-text {
    font-size: 15px;
  }
}

/* ===== GRUPO EMPRESARIAL ===== */
.grupo-empresarial {
  margin-top: 4rem;
  padding: 2rem 1rem;
  background: transparent;
  border-radius: 0;
  text-align: center;
}

.grupo-titulo {
  font-size: 2rem;
  font-weight: 700;
  color: #0b1d3a;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.grupo-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  border-radius: 4px;
}

.grupo-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.grupo-item {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  min-width: 240px;
  flex: 1;
  max-width: 280px;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.02);
  border: 1px solid #eef2f6;
  cursor: pointer;
}

.grupo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
  border-color: #ff6b0040;
}

.grupo-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef7ed;
  border-radius: 50%;
  transition: 0.3s;
}

.grupo-item:hover .grupo-icon {
  background: #fff1e0;
  transform: scale(1.02);
}

.grupo-img {
  max-width: 65px;
  max-height: 65px;
  object-fit: contain;
}

.grupo-item span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b1d3a;
  margin-bottom: 1rem;
}

.grupo-btn {
  background: #ff6b00;
  color: white;
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.grupo-btn:hover {
  background: #e05d00;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 107, 0, 0.25);
}

.grupo-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.grupo-footer p {
  color: #64748b;
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
  .grupo-empresarial {
    margin-top: 2.5rem;
  }

  .grupo-titulo {
    font-size: 1.6rem;
  }

  .grupo-item {
    padding: 1.4rem;
    min-width: 200px;
  }

  .grupo-icon {
    width: 80px;
    height: 80px;
  }

  .grupo-img {
    max-width: 50px;
    max-height: 50px;
  }

  .grupo-item span {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .grupo-logos {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .grupo-item {
    width: 100%;
    max-width: 280px;
  }
}

/* --- SECCIÓN VALORES CORPORATIVOS --- */
.valores-corporativos-section {
  margin-top: 40px;
}

.valores-corporativos-section h3 {
  font-size: 20px;
  color: var(--naranja);
  font-weight: 700;
  margin-bottom: 20px;
}

.valores-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.valor-tag {
  background: var(--blanco);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  color: var(--azul-oscuro);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.valor-tag i {
  font-size: 16px;
}

.icon-seguridad {
  color: #f1c40f;
}
.icon-responsabilidad {
  color: #7f8c8d;
}
.icon-puntualidad {
  color: #e74c3c;
}
.icon-compromiso {
  color: #e67e22;
}
.icon-innovacion {
  color: #f39c12;
}
.icon-confianza {
  color: #2ecc71;
}

/* --- RESPONSIVE NOSOTROS --- */
@media (max-width: 992px) {
  .nosotros-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- RESPONSIVE SERVICIOS Y FLOTA --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-white {
    padding: 60px 5%;
  }

  .section-white h2 {
    font-size: 28px;
  }

  .services-grid,
  .flota-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contacto --- */
.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
  align-items: stretch;
}

.contact-info {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
  font-size: 28px;
  color: #0a192f;
  margin-bottom: 30px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-detail i {
  min-width: 50px;
  height: 50px;
  background: #ff6600;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.contact-detail div strong {
  display: block;
  color: #0a192f;
  font-size: 17px;
  margin-bottom: 5px;
}

.contact-detail div p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.contact-map {
  border-radius: 20px;
  overflow: hidden;
  min-height: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- RESPONSIVE CONTACTO --- */

/* Ajuste del contenedor de contacto en tablets */
@media (max-width: 992px) {
  .contacto-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    order: 1; /* La información va primero */
  }

  .contact-map {
    order: 2; /* El mapa va después */
    min-height: 350px;
  }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .contact-info {
    padding: 25px 20px;
  }

  .contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .contact-detail {
    gap: 12px;
    margin-bottom: 20px;
  }

  .contact-detail i {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .contact-detail div strong {
    font-size: 15px;
  }

  .contact-detail div p {
    font-size: 13px;
  }

  .contact-map {
    min-height: 280px;
    border-radius: 16px;
  }

  /* Hacemos que el iframe sea responsivo */
  .contact-map iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 280px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .contact-info {
    padding: 20px 15px;
  }

  .contact-info h3 {
    font-size: 20px;
  }

  .contact-detail {
    gap: 10px;
  }

  .contact-detail i {
    min-width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .contact-map {
    min-height: 250px;
  }

  .contact-map iframe {
    min-height: 250px;
  }
}

/* --- Btn WhatsApp --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

/* --- Footer --- */
footer {
  background: #0a192f;
  color: #ffffff;
  padding: 40px 7% 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col p,
.footer-col a {
  color: #a8b2d1;
  text-decoration: none;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #ff6600;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a8b2d1;
  font-size: 14px;
}

/* --- Responsive general secciones --- */
@media (max-width: 1024px) {
  .nosotros-container,
  .contacto-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-white {
    padding: 60px 5%;
  }

  .section-white h2 {
    font-size: 28px;
  }

  .services-grid,
  .flota-grid {
    grid-template-columns: 1fr;
  }
}
