/* ================================
   Variables
================================ */
:root {
    --color-principal-azul: #007bff;
    --color-acento-rojo: #dc3545;
}

/* ================================
   Estilos Globales
================================ */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* ================================
   Header & Navegación
================================ */
header {
    background-color: #f8f8f8;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo {
    width: auto;
    height: 120px;
}
header .logo2{
    
   height: 20%;
}
nav {
    display: flex;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* en desktop horizontal */
}

nav ul li {
    margin-left: 25px;
    position: relative; /* necesario para dropdown */
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-principal-azul);
}

/* ================================
   Dropdown
================================ */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 20;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-top: 3px solid var(--color-principal-azul);
}

.has-dropdown:hover .dropdown-menu {
    display: block; /* desktop hover */
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu a {
    color: #333;
    font-weight: normal;
    padding: 8px 15px;
    text-align: left;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: var(--color-acento-rojo);
}

/* ================================
   Menú Hamburguesa
================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
     position: relative;
  z-index: 9999;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-principal-azul);
    transition: all 0.3s ease-in-out;
}

/* ================================
   Media Queries (Responsive)
================================ */
@media (max-width: 768px) {
  /* Botón hamburguesa visible en móvil */
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 9999; /* asegura que se pueda tocar siempre */
  }

  /* Ocultar menú por defecto */
  nav {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 15px;
  }

  /* Mostrar menú cuando está abierto */
  nav.is-open {
    display: block;
  }

  /* Menú vertical */
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  nav ul li {
    margin: 5px 0;
  }

  /* Dropdown activo en móvil */
  .has-dropdown.is-active .dropdown-menu {
    display: block !important;
    position: static; /* evita superposición */
    box-shadow: none;
    border-top: none;
    padding: 0;
  }

  .dropdown-menu li a {
    padding: 10px 15px;
    font-size: 0.95em;
    color: #555;
    display: block;
  }

  .dropdown-menu li a:hover {
    background-color: var(--color-principal-azul);
    color: #fff;
  }
}


/* ================================
   Servicios (íconos)
================================ */
.services-icons {
    padding: 80px 20px;
    text-align: center;
}

.services-icons h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item {
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

/* ================================
   Franja de Logos
================================ */
.brand-strip {
    background: #f8f8f8;
    padding: 20px 10px;
    text-align: center;
    border-top: 4px solid var(--color-acento-rojo);
    border-bottom: 4px solid var(--color-principal-azul);


    overflow: hidden;
}

.brand-logos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 0;

     animation: scroll-logos 30s linear infinite; 
    justify-content: flex-start; /* Alineación inicial */
    flex-shrink: 0; /* Evita que el contenedor se encoja */
}
@keyframes slide-logos {
  
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* desplaza hacia la izquierda */
  
}
.brand-logos img {
    max-height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.brand-logos img:hover {
    transform: scale(1.1);
}

.brand-message {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-principal-azul);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-message img {
    width: 28px;
    height: 28px;
}



/*animación celular*/
.brand-strip {
  overflow: hidden;
  background: #fff;
  padding: 15px 0;
}

.brand-logos {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* logos generales */
.brand-logos img {
  height: 550px;
  object-fit: contain;
}

/* --- SOLO EN CELULAR --- */
@media (max-width: 768px) {
  .brand-logos {
    display: flex;
    animation: scroll-logos 30s linear infinite; /* velocidad lenta */
    width: max-content;
  }
  
  @keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* desplaza hacia la izquierda */
  }
}


/* ================================
   Footer
================================ */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.main-footer {
    background-color: #f2f2f2;
    padding: 40px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info, .footer-map {
    margin: 20px;
    flex: 1 1 300px;
}

.footer-info h3 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--color-principal-azul);
}

.footer-info p, .footer-info li {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.footer-info ul {
    list-style: none;
    padding: 0;
}

.footer-map iframe {
    border-radius: 8px;
}

.whatsapp-link, .social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.whatsapp-link {
    color: #4CAF50;
}

.social-link {
    color: #3b5998;
}

.whatsapp-link img, .social-link img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

























/* --- Estilos base --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 9999; /* asegura que esté encima de todo */
  }

  /* --- Panel del menú --- */
  nav {
    position: fixed; /* antes absolute, ahora fixed para quedar encima de todo */
    top: 60px; /* ajusta según la altura de tu encabezado */
    right: 0; /* pegado al lado derecho */
    width: 75%; /* ocupa 75% del ancho de pantalla */
    max-width: 300px;
    background: #fff;
    border-left: 1px solid #eee;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* oculto fuera de pantalla */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9998; /* debajo del botón pero encima de todo */
  }

  nav.is-open {
    transform: translateX(0); /* se desliza desde la derecha */
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🔹 alineación a la izquierda */
    gap: 12px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    transition: background 0.2s ease;
  }

  nav ul li a:hover {
    background: var(--color-principal-azul);
    color: #fff;
  }

  /* --- Dropdowns --- */
  .has-dropdown.is-active .dropdown-menu {
    display: block !important;
    position: static;
    background: transparent;
    box-shadow: none;
  }

  .dropdown-menu li a {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #555;
  }

  .dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}
@media (max-width: 768px) {
  /* --- BOTÓN HAMBURGUESA --- */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999;
    position: relative;
    transition: transform 0.3s ease;
  }

  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  /* 🔹 Animación cuando el menú está abierto */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* --- PANEL DEL MENÚ --- */
  nav {
    position: fixed;
    top: 60px;
    right: 0;
    width: 75%;
    max-width: 300px;
    background: #fff;
    border-left: 1px solid #eee;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9998;
  }

  nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    transition: background 0.2s ease;
  }

  nav ul li a:hover {
    background: var(--color-principal-azul);
    color: #fff;
  }

  /* --- Dropdowns en móvil --- */
  .has-dropdown.is-active .dropdown-menu {
    display: block !important;
    position: static;
    background: transparent;
    box-shadow: none;
  }

  .dropdown-menu li a {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #555;
  }

  .dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}



.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.qr-section {
    text-align: center;
}

.qr-code {
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: white;
    margin-top: 10px;
    max-width: 150px;
}
