:root {
      --bg-light: #ffffff;
      --bg-dark: #121212;
      --nav-light: #f8f9fa;
      --nav-dark: #1e1e1e;
      --text-light: #000000;
      
      --text-dark: #ffffff;
      --shadow-light: rgba(0, 0, 0, 0.1);
      --shadow-dark: rgba(255, 255, 255, 0.1);
          --color-texto-claro: #222222;
--color-texto-oscuro: #eeeeee;
--color-fondo-claro: #f5f7fa;
--color-fondo-oscuro: #121212;
--color-acento-claro: #0088cc;
--color-acento-oscuro: #00d8ff;
--color-iconos-claro: #0077aa;
--color-iconos-oscuro: #00aaff;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background-color: var(--bg-light);
      color: var(--text-light);
      transition: background-color 0.3s, color 0.3s;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    body.dark {
      background-color: var(--bg-dark);
      color: var(--text-dark);
      --road-color: #444;
  --border-color: #222;
  --line-color: #bbb;
  --point-a: #00aaff;
  --point-d: #00ffbb;
    }

    nav {
      position: sticky;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 1rem;
      background-color: var(--nav-light);
      box-shadow: 0 4px 10px var(--shadow-light);
      transition: background-color 0.3s, box-shadow 0.3s;
      z-index: 100;
    }

    body.dark nav {
      background-color: var(--nav-dark);
      box-shadow: 0 4px 10px var(--shadow-dark);
    }

    .logo {
      height: 70px;
      width: 70px;
      border-radius: 50%;
      object-fit: cover;
      transition: filter 0.3s;
    }

    body.dark .logo {
      filter: brightness(1.2) drop-shadow(0 0 5px rgba(255,255,255,0.3));
    }

    body:not(.dark) .logo {
      filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
    }

    .menu {
      display: flex;
      gap: 1.5rem;
    }

    .menu a {
      text-decoration: none;
      color: inherit;
      font-weight: 500;
    }

    .toggle-mode {
      cursor: pointer;
      font-size: 1.4rem;
      user-select: none;
      margin-left: 1rem;
    }

    /* --- MENÚ HAMBURGUESA --- */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: space-around;
      width: 24px;
      height: 20px;
      cursor: pointer;
      margin-left: 1rem;
    }

    .hamburger div {
      width: 100%;
      height: 3px;
      background-color: var(--text-light);
      border-radius: 2px;
      transition: background-color 0.3s;
    }

    body.dark .hamburger div {
      background-color: var(--text-dark);
    }

    /* Menú móvil desplegable */
    .mobile-menu {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 60px; /* queda justo debajo de la barra de navegación */
      right: 0;
      height: auto; /* ajusta alto automático según contenido */
      max-width: 250px;
      background-color: var(--nav-light);
      box-shadow: -2px 0 10px rgba(0,0,0,0.3);
      padding: 2rem 1.5rem;
      transition: transform 0.3s ease-in-out;
      transform: translateX(100%);
      z-index: 150;
      border-radius: 0 0 0 10px; /* opcional para suavizar borde */
    }

    body.dark .mobile-menu {
      background-color: var(--nav-dark);
      box-shadow: -2px 0 10px rgba(255,255,255,0.2);
    }

    .mobile-menu.open {
      display: flex;
      transform: translateX(0);
    }

    .mobile-menu a {
      text-decoration: none;
      color: inherit;
      font-weight: 600;
      margin-bottom: 1.5rem;
      font-size: 1.2rem;
    }

    /* Botón cerrar menú móvil */
    .close-menu {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: var(--text-light);
    }

    body.dark .close-menu {
      color: var(--text-dark);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .menu {
        display: none;
      }
      .hamburger {
        display: flex;
      }
    }

    /* Footer fijo en el pie de página */
    footer {
      background: var(--nav-light);
      color: var(--text-light);
      text-align: center;
      padding: 1rem;
      border-top: 1px solid rgba(0,0,0,0.1);
      transition: background-color 0.3s, color 0.3s;
     
      bottom: 0;
      width: auto;
      z-index: 50;
    }

    body.dark footer {
      background: var(--nav-dark);
      color: var(--text-dark);
      border-top: 1px solid rgba(255,255,255,0.1);
    }

  
.video-section {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-container:hover {
  transform: scale(1.03);
}

.video-bg {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(1);
  transition: filter 0.3s ease;
  border-radius: 16px;
}

body.dark .video-bg {
  filter: brightness(0.6);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: rgba(0,0,0,0.4);
  color: white;
  text-align: left;
  backdrop-filter: blur(6px);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

body:not(.dark) .video-overlay {
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-texto-claro);
  backdrop-filter: blur(10px);
}

.video-overlay h1 {
  margin: 0 0 0.3rem 0;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

body:not(.dark) .video-overlay h1 {
  text-shadow: none;
}

.video-overlay p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

body:not(.dark) .video-overlay p {
  text-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
  .video-overlay h1 {
    font-size: 1.5rem;
  }
  .video-overlay p {
    font-size: 1rem;
  }
}

/* --- Adaptar overlay en móviles --- */
@media (max-width: 600px) {
  .video-container {
    flex-direction: column;
  }

  .video-overlay {
    position: static;
    background: none !important;
    color: inherit !important;
    text-align: center;
    padding: 1rem 0.5rem;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
  }

  .video-overlay h1 {
    font-size: 1.4rem;
    text-shadow: none;
    margin-bottom: 0.4rem;
  }

  .video-overlay p {
    font-size: 1rem;
    text-shadow: none;
  }

  .video-container video {
    border-radius: 16px 16px 0 0;
  }
}
.weather-card {
  max-width: 400px;
  margin: 2rem auto 3rem auto;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
  box-shadow: 0 8px 30px rgba(0, 128, 153, 0.3);
  border: 1.5px solid var(--color-acento-claro);
  color: var(--text-light);
  border-radius: 16px;
  
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  transition: background-color 0.3s, color 0.3s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body.dark .weather-card {
  background: var(--nav-dark);
  color: var(--text-dark);
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.weather-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* que no tape */
}

.weather-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.2));
  transition: filter 0.3s ease;
}

body.dark .weather-icon img {
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}

.weather-info h2 {
  margin: 0 0 0.3rem 0;
  font-size: 1.7rem;
}

.weather-info p {
  margin: 0.15rem 0;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .weather-card {
    flex-direction: column;
    text-align: center;
    max-width: 90vw;
    padding: 1rem;
  }
  .weather-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
  }
  .weather-info h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .weather-card {
    flex-direction: row; /* de columna a fila para que sea más ancho */
    justify-content: center;
    align-items: center;
    max-width: 95vw;
    height: 120px; /* menos alto, fijo */
    padding: 1rem 1.5rem;
    text-align: left; /* que quede alineado a la izquierda */
  }
  .weather-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
    margin-right: 1.2rem; /* espacio entre ícono y texto */
  }
  .weather-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }
  .weather-info p {
    margin: 0.1rem 0;
    font-size: 0.9rem;
  }
}


.why-choose-us {
  max-width: 1200px;
  margin: 3rem auto 4rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-light);
}

body.dark .why-choose-us {
  color: var(--text-dark);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-acento-claro);
  user-select: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

body.dark .section-title {
  color: var(--color-acento-oscuro);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}


/* --- SECCIÓN SERVICIOS SUPER INNOVADORA --- */
.services-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
  position: relative;
  perspective: 1500px; /* para efecto 3D */
}

.services-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--color-acento-claro);
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.services-container {
  display: flex;
  gap: -60px; /* superposición */
  flex-wrap: wrap;
  justify-content: center;
  transform-style: preserve-3d;
}

.service-card {
  flex: 0 0 280px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
  border-radius: 25px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  transition: transform 0.7s ease, box-shadow 0.7s ease, opacity 0.7s ease;
  opacity: 0;
  position: relative;
}

body.dark .service-card {
  background: linear-gradient(135deg, rgba(30,30,30,0.9), rgba(60,60,60,0.8));
  box-shadow: 0 20px 40px rgba(255,255,255,0.05);
}

.service-card .service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background-color: #ffd54f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  color: #fff;
  transition: transform 0.6s ease, background-color 0.6s ease;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.service-card:hover {
  transform: translateY(-15px) rotateY(5deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.service-card:hover .service-icon {
  transform: scale(1.3) rotate(15deg);
}

/* Animación al hacer scroll */
.service-card.show {
  opacity: 1;
  transform: translateY(0) rotateY(0) scale(1);
}

.service-card .service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #50e3c2); /* azul-turquesa elegante */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  color: #fff;
  transition: transform 0.6s ease, background 0.6s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.3) rotate(15deg);
  background: linear-gradient(135deg, #50e3c2, #4a90e2); /* efecto invertido al pasar mouse */
}
/* Responsive */
@media (max-width: 1024px) {
  .services-container {
    gap: -40px;
  }
}

@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .service-card {
    max-width: 90%;
  }
}

/* --- Galería de Fotos --- */
.gallery-section {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #004466;
}

body.dark .gallery-section {
  background-color: #001f2e;
  color: #a0eaff;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}
.cotizador-section {
  padding: 20px 10px;
  background-color: var(--background-color);
  color: var(--text-color);
}

.cotizador-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* --- Sección Mercado Envíos Flex Interactivo --- */
.flex-section {
  background: linear-gradient(135deg, #e0f7ff, #ffffff);
  padding: 5rem 1rem;
  color: #004466;
}

body.dark .flex-section {
  background: linear-gradient(135deg, #001f2e, #00334d);
  color: #a0eaff;
}

.flex-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.flex-text {
  text-align: center;
}

.flex-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #0077cc;
}

body.dark .flex-text h2 {
  color: #00d8ff;
}

.flex-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.flex-cta {
  background-color: #0077cc;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.flex-cta:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

.flex-img {
  margin-top: 2rem;
}

.flex-img img {
  width: 120px;
  border-radius: 12px;
}

/* Timeline */
.flex-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInRight 0.6s forwards;
}

.timeline-step:nth-child(1) { animation-delay: 0.2s; }
.timeline-step:nth-child(2) { animation-delay: 0.4s; }
.timeline-step:nth-child(3) { animation-delay: 0.6s; }
.timeline-step:nth-child(4) { animation-delay: 0.8s; }

.timeline-icon {
  font-size: 2rem;
  color: #0077cc;
  min-width: 50px;
  text-align: center;
}

body.dark .timeline-icon {
  color: #00d8ff;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Animación */
@keyframes fadeInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Mapa */
.flex-map {
  margin-top: 3rem;
  text-align: center;
}

.flex-map h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.flex-map iframe {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 992px) {
  .flex-container {
    gap: 2rem;
  }
  .timeline-step {
    flex-direction: column;
    text-align: center;
  }
}

/* Newsletter y Contacto (modo claro y oscuro) */
.newsletter, .contacto {
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
  background: var(--card-bg, #f9f9f9);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: background 0.3s, color 0.3s;
}

.newsletter h2, .contacto h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.newsletter p, .contacto p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.newsletter-form, .contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input,
.contacto-form input,
.contacto-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

.newsletter-form input:focus,
.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #007BFF;
  outline: none;
}

button {
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #0056b3;
}

.redes {
  margin-top: 1.5rem;
}

.redes a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #007BFF;
  transition: color 0.3s;
}

.redes a:hover {
  color: #0056b3;
}

/* Modo oscuro */
body.dark .newsletter,
body.dark .contacto {
  background: #1e1e1e;
  color: #f1f1f1;
}

body.dark input,
body.dark textarea {
  background: #2b2b2b;
  color: #f1f1f1;
  border: 1px solid #444;
}

body.dark button {
  background: #3399ff;
}

body.dark .redes a {
  color: #3399ff;
}

body.dark .redes a:hover {
  color: #66c2ff;
}

/* Responsive */
@media (max-width: 600px) {
  .newsletter, .contacto {
    padding: 1.5rem 1rem;
  }

  .redes a {
    font-size: 1.3rem;
  }
}

/*FOOTER*/
/* Footer fijo en el pie de página */
    footer {
      background: var(--nav-light);
      color: var(--text-light);
      text-align: center;
      padding: 1rem;
      border-top: 1px solid rgba(0,0,0,0.1);
      transition: background-color 0.3s, color 0.3s;
     
      bottom: 0;
      width: auto;
      z-index: 50;
    }

    body.dark footer {
      background: var(--nav-dark);
      color: var(--text-dark);
      border-top: 1px solid rgba(255,255,255,0.1);
    }

/*BOTÓN WSP*/
#whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 90px; /* Más arriba que el footer */
  z-index: 1000;
  background-color: #25d366;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #1ebc59;
}

#whatsapp-button img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

