/* --- TODO ESTO ES EL HEADER PRINCIPAL --- */
/* --- BARRA SUPERIOR DE CONTACTO --- */
.top-bar {
  background-color: #eaeaea;
  font-size: 0.9rem;
  border-bottom: 1px solid #ccc;
}
  /*Ocultar el top bar*/
  @media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
} 

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar a {
  color: #333;
  text-decoration: none;
}

.top-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  object-fit: contain;
}

/*ACA EMPIEZA LA LISTA DE RFID,NOSOTROS,CONTACTO ETC*/

.main-header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  top: 0;
  position: sticky;
  z-index: 999;
}

.logo img {
  height: 60px;
}

/* NAV */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #0077cc;
}

/* DROPDOWN */
.nav-menu .dropdown {
  position: relative;
}

.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  min-width: 250px;
  z-index: 10;
}

.nav-menu .dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li a {
  padding: 10px 15px;
  display: block;
  color: #333;
  border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover {
  background-color: #f2f2f2;
}

:root {
  --primary: #0067b8;
  --secondary: #00a2ff;
  --dark: #2c3e50;
  --light: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}


section {
  padding: 20px 0;
}
h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--dark);
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: #dda920;
}

h3 {
  font-size: 1.8rem;
  margin: 25px 0 15px;
  color: var(--primary);
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/*HASTA ACA ES TODO EL HEADER*/
body {
    font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  
}

/* --- HERO --- */
.hero-invue {
  background: url('../img/invue/invueBanner1.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero-invue h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px #000;
}

.hero-invue p {
  font-size: 1.25rem;
  text-shadow: 1px 1px 2px #000;
}

.hero-content{
    text-align: center;
}

/* --- ¿QUÉ ES INVUE? --- */

.que-es-invue .image {
  padding-top: 20px;
}
/* Imágenes responsive en .que-es-invue */
.que-es-invue .image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px; /* Opcional, si quieres bordes redondeados */
}

/* Video responsive en .que-es-invue */
.que-es-invue .video {
  width: 100%;
  max-width: 800px;
  margin-top: auto;
  padding-top: 20px;
}

.que-es-invue .video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Ajusta el contenedor en móvil */
@media (max-width: 900px) {
  .que-es-invue .container.flex {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .que-es-invue .image,
  .que-es-invue .info {
    width: 100%;
    max-width: 100%;
  }
  .que-es-invue .image img {
    max-width: 100vw;
  }
  .que-es-invue .video {
    max-width: 100vw;
    padding-top: 10px;
  }
  .que-es-invue .video video {
    max-width: 100vw;
  }
}

.que-es-invue ul {
  margin-top: 15px;
  padding-left: 20px;
}

.que-es-invue ul li {
  margin-bottom: 10px;
}
/*CARRUSEL DE SOLUCIONES*/
.categorias-invue {
            padding: 80px 0;
            /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
            background: linear-gradient(179deg, #9facb9 50%, #dda920 100%);
            color: white;
            position: relative;
        }

        
        /* Carrusel */
        .carousel-container {
            position: relative;
            overflow: hidden;
            padding: 20px 0;
        }
        
        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
            gap: 25px;
        }
        
        .carousel-card {
            flex: 0 0 calc(33.333% - 20px);
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            min-height: 400px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .carousel-card:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .carousel-card img {
            width: 100%;
            height: 180px;
            object-fit: contain;
            border-radius: 12px;
            margin-bottom: 20px;
        }
        
        .carousel-card h3 {
            font-size: 1.4rem;
            margin-bottom: 15px;
            color: #fff;
            font-weight: 600;
        }
        
        .carousel-card p {
            font-size: 1rem;
            margin-bottom: 25px;
            color: rgba(255, 255, 255, 0.9);
            flex-grow: 1;
        }
        
        .carousel-card a {
            display: inline-block;
            background: #dda920;
            color: white;
            padding: 12px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .carousel-card a:hover {
            background: #dda920;
            transform: translateY(-2px);
        }
        
        /* Controles del carrusel */
        .carousel-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 40px;
        }
        
        .carousel-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .carousel-btn:hover {
            background: var(--accent);
            border-color: var(--accent);
        }
        @media (max-width: 900px) {
        .carousel-card {
          flex: 0 0 90vw;
          min-width: 90vw;
          max-width: 95vw;
          padding: 20px 10px;
        }
        .carousel-track {
          gap: 10px;
        }
        }
        
        /* Indicadores 
        .carousel-indicators {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }
        
        .indicator {
            padding: 8px 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        
        .indicator.active {
            background: var(--accent);
        }*/

/*FIN DE CARRUSEL*/


/* --- POR QUÉ ELEGIR INVUE --- */
.porque-elegir {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.iconos-elegir {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.icono {
  max-width: 200px;
}

.icono img {
  width: 50px;
  margin-bottom: 15px;
}

.icono p {
  font-weight: bold;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-invue h1 {
    font-size: 2.2rem;
  }
  .que-es {
    flex-direction: column;
  }
}

/* --- SECCIÓN POR QUÉ ELEGIR INVUE --- */
.porque-invue {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

.porque-invue h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
    position: relative;
}



.beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.beneficio {
    background: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.beneficio:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #dda920;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.beneficio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.beneficio:hover:before {
    transform: scaleX(1);
}

.beneficio i {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #dda920;
    background: rgba(52, 152, 219, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.beneficio:hover i {
    background: #dda920;
    color: white;
    transform: rotateY(180deg);
}

.beneficio h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.beneficio p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .beneficios {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .porque-invue h2 {
        font-size: 2rem;
    }
}

/*PARTNER OFICIAL*/
.onebeat-floating-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    /* background: rgb(193 193 193 / 70%); */
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 8px 12px;
    cursor: pointer;
    overflow: hidden;
    min-width: 56px;
    max-width: 320px;
    transition: background 0.3s, width 0.3s;
    width: auto;
}

/* Logo siempre visible y bien proporcionado */
.onebeat-floating-badge .partner-logo {
    height: 45px;
    width: 117px;
    min-width: 56px;
    min-height: 40px;
    border-radius: 10px;
    /* background: #fff; */
    padding: 4px;
    margin-right: 8px;
    object-fit: contain;
    transition: transform 0.2s;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.10); */
}

/* Texto oculto por defecto, no empuja el logo */
.partner-badge-text {
    opacity: 0;
    width: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.25s, width 0.3s, max-width 0.3s;
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    margin-left: 0;
    white-space: nowrap;
}

/* Al hacer hover, se despliega el texto horizontalmente */
.onebeat-floating-badge:hover .partner-badge-text,
.onebeat-floating-badge:focus-within .partner-badge-text {
    opacity: 1;
    width: 180px;
    max-width: 220px;
    margin-left: 10px;
}

/* Efecto de expansión del badge */
.onebeat-floating-badge:hover,
.onebeat-floating-badge:focus-within {
    background: linear-gradient(90deg, #00a2ff 0%, #fc604a 100%);
}

/* Texto destacado */
.partner-badge-text strong {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.partner-badge-text span {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Responsive: ocultar en móvil */
@media (max-width: 600px) {
    .onebeat-floating-badge { display: none; }
}

/*FOOTER*/

.main-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 0;
    font-size: 0.95rem;
}

.footer-contact h3,
.footer-links h3,
.footer-social h3 {
  color: #ffffff;  
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-brand img {
    width: 180px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.5;
}

.footer-contact ul, 
.footer-links ul {
  
    list-style: none;
    margin-top: 15px;
}

.footer-contact li, 
.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.footer-contact a {
    color: white !important; /* Fuerza color blanco */
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact a:hover {
    color: #3498db !important; /* Azul corporativo al hacer hover */
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-social h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none; /*para sacarle el subrayado*/
}

.social-icons a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.contact-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    text-decoration: none;
}

.contact-btn:hover {
    background: #2980b9;
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    color: #7f8c8d;
    margin: 0 10px;
    text-decoration: none;
}

.legal-links a:hover {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
  .main-footer {
    padding: 18px 0 0; /* antes 40px 0 0 */
    font-size: 0.85rem;
  }
  .footer-container {
    padding: 0 8px; /* antes 0 20px */
    gap: 16px;      /* antes 30px */
  }
  .footer-brand img {
    width: 140px;   /* más chico */
    margin-bottom: 8px;
  }
  .footer-bottom {
    padding: 10px 0; /* antes 20px 0 */
    margin-top: 16px; /* antes 40px */
    font-size: 0.8rem;
  }
}
/*FIN DEL FOOTER*/

/* Menú hamburguesa responsive */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  margin-left: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Efecto hover y rotación al click */
.menu-toggle:hover {
  color: #007bff;
}
.menu-toggle.active {
  transform: rotate(180deg);
}

/* --- Menú principal --- */
@media (max-width: 900px) {
  .main-header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    width: 100%;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    z-index: 1000;

    /* Estado inicial oculto (animable) */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Cuando el menú se abre */
  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px; /* ajustá según tu contenido */
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin: 0;
  }

  /* Animación al aparecer los <li> */
  .nav-menu ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-menu.open ul li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Efecto hover en los ítems */
  .nav-menu ul li a {
    display: block;
    width: 100%;
    padding: 5px;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .nav-menu ul li a:hover {
    background: #f1f1f1;
    color: #007bff;
  }

  /* Dropdowns */
  .nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    display: none;
  }

  .dropdown-menu.show {
    display: flex;
    flex-direction: column;
  }

  /* Texto slide */
  .texto-slide {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 95vw;
    text-align: center;
    padding: 20px 10px;
  }
}
/*Agregar a todas las pestañas desde aca*/
/* --- Dropdown animado --- */
@media (max-width: 900px) {
  .dropdown-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fafafa;
    border-left: 3px solid #007bff;
    margin-top: 5px;
    
    /* Oculto por defecto con animación lista */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.35s ease;
  }

  /* Cuando se abre */
  .dropdown.open > .dropdown-menu {
    max-height: 600px; /* ajustá según cantidad de ítems */
    opacity: 1;
    transform: translateY(0);
  }

  /* Ítems internos animados */
  .dropdown-menu li {
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
  }

  .dropdown.open > .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hover de los submenús */
  .dropdown-menu li a {
    padding: 10px 15px;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .dropdown-menu li a:hover {
    background: #f0f4ff;
    color: #007bff;
  }

  /* Flecha indicadora opcional */
  .dropdown > a::after {
    content: " ▾";
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }

  .dropdown.open > a::after {
    transform: rotate(180deg);
  }
}