/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f2f6f9;
  color: #1f2937;
}


.soluciones-header {
  background: linear-gradient(135deg, #000204, #004b84);
  color: white;
  text-align: center;
    padding: 120px 20px 60px; 
}

.soluciones-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.subtitulo {
  font-size: 1.2rem;
  opacity: 0.85;
}

/* ===== CONTENEDOR DE SOLUCIONES ===== */
.soluciones-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.solucion-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.solucion-card:nth-child(even) {
  animation-delay: 0.3s;
}

.solucion-card.reverse {
  flex-direction: row-reverse;
}

.video-frame {
  flex: 1;
  min-width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-frame:hover {
  transform: scale(1.02);
}

.contenido {
  flex: 1;
  padding: 1rem;
}

.contenido h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #010e18;
}

.contenido p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.6;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CAROUSEL 3D ===== */
.carousel-3d-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.carousel-3d-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #00477c;
}

.carousel-3d {
  position: relative;
  margin: 0 auto;
  width: 400px;
  height: 300px;
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear; 
  perspective: 1000px;
}

.carousel-item {
  position: absolute;
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  top: 50px;
  left: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
  backface-visibility: hidden;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* LOGO MÁS PEQUEÑO */
.logo img {
  height: 50px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #1a4cff;
  font-weight: bold;
}

.nav-menu a.active::after {
  content: "";
  display: block;
  height: 3px;
  background: #1a4cff;
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
}

/* LOGIN LINK MÁS PEQUEÑO */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-login img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.btn-login:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(0, 123, 255, 0.8));
}

/* ===== FOOTER ===== */
.footer {
  background-color: #00294d;
  color: #ffffff;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand img {
  width: 120px;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 1rem;
}

.footer-column {
  margin: 15px;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-column p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.social a {
  margin-right: 12px;
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social a:hover {
  color: #25D366; 
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

/* ===== SERVICIOS ===== */
.servicios-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background-color: #ffffff;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio {
  background-color: #fafafa;
  width: 32%;
  padding: 25px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.servicio img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.servicio:hover img {
  transform: scale(1.05);
}

.servicio h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #002c5a;
}

.servicio p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* ===== MENÚ FLOTANTE Y CARRITO ===== */
.zoox-style-menu {
  background: #ffffff;
  border-radius: 0 0 24px 24px;
  padding: 0.75rem 2rem;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1280px;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: top 0.3s ease;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-toggle {
  background: white;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.menu-toggle img {
  width: 24px;
  height: auto;
}

.menu-links {
  display: flex;
  gap: 1.5rem;
}

.menu-links a {
  text-decoration: none;
  font-weight: 600;
  color: #1a2c2a;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.menu-links a:hover {
  color: #3b82f6;
}

/* PANEL DESPLEGABLE */
.dropdown-panel {
  display: none;
  flex-direction: column;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: absolute;
  top: 80px;
  left: 2rem;
  z-index: 998;
}

.dropdown-panel a {
  color: #1a2c2a;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.dropdown-panel a:hover {
  color: #3b82f6;
}

.dropdown-panel.active {
  display: flex;
}

/* ICONO FLOTANTE CAMIÓN Y CARRITO */
.icono-flotante {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
}

.icono-flotante:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.icono-flotante img {
  width: 28px;
  height: auto;
}

/* CLASE PARA CARRITO */
.carrito-flotante {
  right: 2rem;
  bottom: 2rem;
  background: #3b82f6;
}

.carrito-flotante:hover {
  background: #2563eb;
}

/* OCULTAR Y MOSTRAR MENÚ */
.icono-visible {
  display: flex;
}

.menu-oculto {
  top: -120px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .solucion-card,
  .solucion-card.reverse {
    flex-direction: column;
  }

  .soluciones-header h1 {
    font-size: 2rem;
  }

  .contenido h2 {
    font-size: 1.6rem;
  }

  .contenido p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .servicios-section {
    flex-direction: column;
    align-items: center;
  }

  .servicio {
    width: 90%;
  }

  .menu-links {
    display: none;
  }
}

.soluciones-header {
  padding-top: 6rem; /* antes era 4rem, subimos 2rem más */
  padding-bottom: 4rem;
}
/* =========================
   HAMBURGUESA
========================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #004080;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animación X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
}



.menu-mobile {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: white;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  z-index: 999;
}

.menu-mobile.show {
  display: flex;
}

.menu-mobile a {
  padding: 16px;
  text-decoration: none;
  color: #002c5a;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.menu-mobile a:hover {
  background: #eaf2ff;
  color: #1a5fff;
}



@media (max-width: 768px) {

  .menu-links {
    display: none;
  }

  .login-link {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}


@media (min-width: 769px) {
  .menu-toggle,
  .menu-mobile {
    display: none !important;
  }
}

