* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 1px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: .2s ease-out all;
    justify-content: space-between;
    padding: 5px;
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.logo img {
    max-height: 90px;
    margin-left: 40%
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que los elementos se ajusten si no hay espacio */
}

nav a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #ba3535;
    color: #fff;
}

.link-wiki {
    color: #ba3535;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    padding: 8px 10px;
    border-radius: 5px;
}

.link-wiki:hover {
    background-color: #ba3535;
    color: #fff;
}

.login-btn {
    background-color: #ba3535;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    margin-right: 3%;
}

.login-btn:hover {
    background-color: #d44c4c;
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #ba3535;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 116px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
}

.mobile-menu a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: #ba3535;
    color: #fff;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.hero {
    margin-top: 3px;
    background: linear-gradient(135deg, #ba3535, #d44c4c);
    color: #fff;
    padding: 80px 20px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.hero-text .btn-group a {
    text-decoration: none;
    margin: 10px 15px 0 0;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s, background-color 0.3s;
}

.hero .btn-primary {
    background-color: #527ec4;
    color: #fff;
}

.hero .btn-primary:hover {
    transform: scale(1.1);
}

.hero .btn-secondary {
    background-color: #fff;
    color: #ba3535;
    border: 2px solid #ba3535;
}

.hero .btn-secondary:hover {
    background-color: #393939;
    color: #fff;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 90%;
    max-height: 300px;
    object-fit: contain;
}

/* CSS DE SECTION DE Todo lo que Necesitas en un Solo Lugar */
.section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, rgb(105 103 103));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 50% 100%, 0 calc(100% - 50px));
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: bold;
}

.section.solutions {
    padding-bottom: 100px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 50% 100%, 0 calc(100% - 80px));
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.item {
    background: #fff;
    padding: 30px;
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.item img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ba3535;
    font-weight: bold;
}

.item p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    text-align: left;
}

/* modificación */
.sectionKnowledge {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, rgb(105 103 103));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 50% 100%, 0 calc(100% - 50px));
}

.sectionKnowledge h2 {
    font-size: 3.4rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.sectionKnowledge p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.knowledge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-item {
    text-align: left;
    width: 400px;
    padding: 15px 20px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

.knowledge-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 30px;
    background: #ba3535;
    transition: height 0.5s ease, top 0.5s ease;
}

.knowledge-item img {
    width: 60px; /* Fija el ancho de las imágenes */
    height: 60px; /* Fija el alto de las imágenes */
    object-fit: contain; /* Asegura que las imágenes mantengan sus proporciones */
    margin-bottom: 15px;
}

.knowledge-item h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
    padding-left: 10px;
}

.knowledge-item p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.4;
    padding-left: 10px;
}

.knowledge-item:hover {
    transform: translateY(-5px);
    color: #ba3535;
}

.knowledge-item:hover::before {
    height: 100%;
    top: 0;
}


/* FIN */

footer {
    background: #ba3535;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.trusted-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.trusted-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.trusted-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logo-container img {
    max-height: 100px; /* Tamaño máximo uniforme para los logos */
    max-width: 200px; /* Limita el ancho máximo para evitar estiramientos */
    object-fit: contain; /* Mantiene proporciones */
    transition: transform 0.3s ease, filter 0.3s ease; /* Efecto de transición */
    filter: grayscale(100%); /* Escala de grises predeterminada */
}

.logo-container img:hover {
    transform: scale(1.1); /* Efecto de agrandamiento */
    filter: grayscale(0%); /* Vuelve a color al pasar el cursor */
}

.grayscale-image {
    filter: grayscale(100%); /* Convierte la imagen completamente a escala de grises */
    transition: filter 0.3s ease; /* Transición suave para el efecto */
}

.grayscale-image:hover {
    filter: grayscale(0%); /* Vuelve a color cuando pasas el cursor */
}

/* Seccion de estilos para section de devs */
.sectionDevs {
    padding: 80px 20px;
    text-align: center;
    background: #f8f9fa;
}

.sectionDevs h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.sectionDevs p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.developer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.developer-item {
    text-align: left;
    width: 280px;
    padding: 15px 20px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

.developer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 30px;
    background: #ba3535;
    transition: height 0.5s ease, top 0.5s ease;
}

.developer-item img {
    width: 60px; /* Fija el ancho de las imágenes */
    height: 60px; /* Fija el alto de las imágenes */
    object-fit: contain; /* Asegura que las imágenes mantengan sus proporciones */
    margin-bottom: 15px;
}

.developer-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    padding-left: 10px;
}

.developer-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
    padding-left: 10px;
}

.developer-item:hover {
    transform: translateY(-5px);
    color: #ba3535;
}

.developer-item:hover::before {
    height: 100%;
    top: 0;
}

/* -------*/
/* Estilos para swiper */
/* -------*/

 /* CSS de swiper de imagenes
 */

.swiper-pagination-bullet {
    background: #333;
}

.trusted-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.swiper-container {
    width: 100%;
    max-width: 1100px; /* Limita el ancho máximo del slider */
    margin: 0 auto;
    padding: 20px 0 50px; /* Espacio inferior adicional para la paginación */
    overflow: hidden; /* Evita el scroll horizontal */
    position: relative; /* Asegura que los elementos hijos estén posicionados dentro */
    margin-top: 20px;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Asegura que las imágenes no se encogen */
}

.swiper-slide img {
    max-width: 170px; /* Aumenta el tamaño de las imágenes */
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.swiper-slide img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: #333;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px; /* Asegura que la paginación esté siempre en la parte inferior */
    left: 0;
    width: 100%; /* Se alinea al centro horizontal */
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: #333;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1; /* Destaca la paginación activa */
}

/* CSS de banderas
 */
.flags-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap; /* Diseño responsivo */
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flag-item img {
    width: 110px; /* Tamaño fijo inicial */
    aspect-ratio: 1; /* Mantiene una relación de aspecto cuadrada */
    border-radius: 50%; /* Forma redonda */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag-item img:hover {
    transform: scale(1.2); /* Efecto hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.flag-item p {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.flags-message {
    font-size: 1.4rem;
    color: #333;
    text-align: center;
    max-width: 500px; /* Limita el ancho del texto */
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: auto;
}

/* -------*/
/* Estilos nuevos para soluciones*/
/* -------*/
.interactive-section {
    padding: 60px 20px;
    text-align: center;
}

.interactive-section h2 {
    font-size: 2.8rem;
    margin-bottom: 30px; 
    color: #333;
}

.interactive-section .content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px; 
    flex-wrap: wrap;
}

.interactive-section .menu {
    flex: 1;
    max-width: 350px; 
    margin-left: -10%;
}

.interactive-section .menu-item {
    padding: 20px; 
    margin-bottom: 15px; 
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem; 
    transition: background-color 0.3s, color 0.3s;
}

.interactive-section .menu-item:hover {
    background-color: #527ec4;
    color: #fff;
}

.interactive-section .menu-item.active {
    background-color: #ba3535;
    color: #fff;
}

.interactive-section .details {
    flex: 2;
    text-align: left;
    max-width: 500px; 
}

.interactive-section .details h3 {
    font-size: 1.5rem; 
    margin-bottom: 15px; 
}

.interactive-section .details p {
    font-size: 1rem; 
    line-height: 1.8; 
    margin-top: 10px; 
}

.interactive-section .details img {
    margin-bottom: 20px;
    max-width: 130%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* -------*/
/* section porque elegir nuestra api */
/* -------*/
.api-highlights {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a, rgb(105 103 103));
    clip-path: polygon(50% 0, 100% 50px, 100% 100%, 0 100%, 0 50px);
}

.api-highlights h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: bold;
}

.api-highlights .container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Más espacio entre las tarjetas */
    flex-wrap: wrap;
}

.api-highlights .item {
    background: #fff;
    padding: 30px;
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.api-highlights .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.api-highlights .item img {
    width: 100%; /* Asegura que ocupe el ancho disponible */
    max-width: 150px; /* Ancho máximo para unificar tamaño */
    height: 150px; /* Altura fija para todas las imágenes */
    margin-bottom: 20px;
    object-fit: contain; /* Ajusta el contenido de la imagen sin deformarla */
    border-radius: 10px; /* Opcional, agrega esquinas redondeadas */
}

.api-highlights .item h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #333;
}

.api-highlights .item p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

@media (min-width: 444px) and (max-width: 1200px) {
    header {
        padding: 20px 9%; /* Reduce el padding lateral */
    }

    nav {
        gap: 15px; /* Reduce la separación entre los enlaces */
    }

    .login-btn {
        padding: 8px 15px; /* Reduce el tamaño del botón */
        font-size: 0.9rem; /* Ajusta el tamaño de la fuente */
    }

    .logo img {
        max-height: 90px;
        margin-left: 0; /* Elimina el margen izquierdo */
    }
}


/* Responsive Design */
@media (min-width: 444px) and (max-width: 992px) {
    .interactive-section .details img {
        margin-bottom: 20px;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .interactive-section .menu {
        flex: 1;
        max-width: 350px; 
    }

    .developer-item {
        width: 45%; /* Acomoda dos elementos por fila en pantallas medianas */
    }
}

@media (max-width: 935px) {
    .interactive-section .details img {
        margin-bottom: 20px;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .interactive-section .menu {
        flex: 1;
        max-width: 350px; 
    }

    .developer-list {
        flex-direction: column;
        gap: 30px; /* Mayor espacio vertical en pantallas pequeñas */
    }

    .developer-item {
        width: 90%; /* Ocupa casi todo el ancho en pantallas pequeñas */
    }

    .trusted-section h2 {
        font-size: 1.8rem; /* Reduce el tamaño del título */
    }

    .trusted-section p {
        font-size: 1rem; /* Reduce el tamaño del texto */
    }

    .logo-container {
        gap: 20px; /* Reduce el espaciado entre los logos */
    }

    .logo-container img {
        max-height: 80px; /* Reduce el tamaño de los logos */
        max-width: 150px; /* Reduce el ancho máximo */
    }

    .logo-container {
        gap: 30px; /* Más espacio en pantallas grandes */
        flex-wrap: nowrap; /* Mantener una sola línea si es posible */
    }

    nav {
        display: none; /* Oculta el menú principal */
    }

    .login-btn {
        display: none; /* Oculta el botón principal */
    }

    .menu-toggle {
        display: block; /* Muestra el botón del menú móvil */
    }

    .mobile-menu {
        margin-top: -10px;
        display: none;
        flex-direction: column;
        padding: 10px 0;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu a {
        text-decoration: none;
        color: #4a4a4a;
        font-size: 1.2rem;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-image img {
        max-height: 200px;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .item {
        width: 90%;
    }

    .swiper-container {
        padding: 20px 0 60px; /* Más espacio inferior para pantallas pequeñas */
    }

    .swiper-slide img {
        max-width: 140px; /* Reduce el tamaño de las imágenes */
        max-height: 80px;
    }

    .swiper-pagination {
        bottom: 15px; /* Ajusta la posición de la paginación */
    }

    .flags-container {
        gap: 20px; /* Reduce el espacio entre banderas */
    }

    .flags-container .flag {
        width: 100px; /* Reduce el tamaño de las banderas */
    }

    .flags-container .flags-message {
        font-size: 1.4rem; /* Reduce el tamaño del texto */
        margin: 10px; /* Ajusta el margen */
    }

    .flag-item img {
        width: 80px; /* Reduce el tamaño de las banderas */
    }
    .flag-item p {
        font-size: 0.9rem; /* Reduce el tamaño del texto */
    }
}

@media (max-width: 480px) {
    .interactive-section .details img {
        margin-bottom: 20px;
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .interactive-section .menu {
        flex: 1;
        max-width: 350px; 
    }

    .trusted-section h2 {
        font-size: 1.5rem; /* Título más pequeño */
    }

    .trusted-section p {
        font-size: 0.9rem; /* Texto más compacto */
    }

    .logo-container img {
        max-height: 70px; /* Ajusta aún más los logos */
        max-width: 120px; /* Reduce el ancho en móviles */
    }

    .flags-container {
        flex-direction: column; /* Coloca banderas y texto en columna */
        gap: 15px;
    }

    .flags-container .flag {
        width: 110px; /* Tamaño más pequeño para pantallas muy pequeñas */
    }

    .flags-container .flags-message {
        font-size: 1.2rem; /* Texto aún más pequeño */
    }
}

/* Footer */
.footer {
    background-color:#ebebeb; /* Gris claro */
    color: #333;
    padding: 40px 20px;
    font-family: 'Roboto', Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.86rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left; /* Alineación a la izquierda */
}

.footer-column h3 {
    font-size: 1rem; /* Tamaño más pequeño */
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #ba3535;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 5px 0; /* Espaciado reducido */
}

.footer-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem; /* Tamaño reducido */
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ba3535;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-column p {
    color: #666 !important;
}

.footer-column a:hover {
    color: #ba3535;
}

.social-icons-container {
    display: flex;
    justify-content: flex-start; /* Alinea íconos a la izquierda */
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #ba3535;
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom a {
    color: #666;
    text-decoration: underline;
    margin: 0 5px;
}

.footer-bottom a:hover {
    color: #ba3535;
}

/* ================================================================================================ */
/* ESTILOS DE PRUEBA HERO INDEX*/
/* ================================================================================================ */
/* ======================
   ESTILOS BASE
   ====================== */

   .heroImageIndex {
    position: relative;
    height: 90vh;
    width: 100%;
    background: url('<?= $selected_image ?>') no-repeat center center;
    background-size: contain;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
  }
  
  .hero-overlay-heroImageIndex {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .hero-content-box-heroImageIndex {
    position: absolute;
    top: 35%;
    left: 1%;
    max-width: 50%;
    height: 40%;
    background: rgb(39 39 39 / 75%);
    border-radius: 12px;
    padding: 25px 35px;
    box-shadow: 0 6px 20px rgba(255,255,255,0.2);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    backdrop-filter: none;
  }
  
  .hero-content-heroImageIndex {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 100%;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Ajuste para evitar que el texto se desborde */
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-y: auto;
  }
  
  .hero-content-heroImageIndex h1 {
    font-size: 3.2rem;
    font-weight: bold;
    margin: 0;
  }
  
  .hero-content-heroImageIndex h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
  }
  
  .hero-content-heroImageIndex h3 {
    font-size: 1.7rem;
    font-weight: 400;
    margin: 0;
  }
  
  .hero-icon-heroImageIndex {
    position: absolute;
    bottom: 0;
    right: 10px;
    z-index: 3;
  }
  
  .hero-icon-heroImageIndex img {
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
  
  .hero-icon-heroImageIndex img:hover {
    opacity: 1;
    transform: scale(1.1);
  }
  
  .contador-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ba3535;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2rem;
    font-weight: 400;
    z-index: 1000;
  }
  
/* ======================
   MEDIA QUERIES
   ====================== 
*/

/* --- Entre 1030px y 1160px --- */
@media (min-width: 1658px) {
  .heroImageIndex {
    position: relative;
  }
  .hero-content-box-heroImageIndex {
    left: 1%;
    right: 1%;
    top: 50%;
    max-width: 50%;
    height: auto;
    padding: 25px 35px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .hero-content-heroImageIndex h1 {
    font-size: 2.7rem;
  }

  .hero-content-heroImageIndex h2 {
    font-size: 2.3rem;
  }

  .hero-content-heroImageIndex h3 {
    font-size: 1.9rem;
  }

  .hero-icon-heroImageIndex img {
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
}

@media (min-width: 1030px) and (max-width: 1658px) {
  .hero-content-box-heroImageIndex {
      top: 50%;
      left: 1%;
      max-width: 100%;
      height: auto;
      padding: 25px 35px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  } 
  .hero-content-heroImageIndex h1 {
    font-size: 2rem;
  }
  .hero-content-heroImageIndex h2 {
    font-size: 1.8rem;
  }
  .hero-content-heroImageIndex h3 {
    font-size: 1.6rem;
  }
  .hero-icon-heroImageIndex img {
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
}
  
/* --- Entre 1026px y 1029px --- */
@media (min-width: 1026px) and (max-width: 1029px) {
  .hero-content-box-heroImageIndex {
    top: 74%;
    left: 1%;
    right: 1%;
    max-width: 100%;
    height: auto;
    padding: 25px 35px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  }

  .hero-icon-heroImageIndex img {
    width: 70px;
   }
}

/* --- Tablets y pantallas medianas (máximo 1025px) --- */
@media (max-width: 1025px) {
  .hero-content-box-heroImageIndex {
    left: 1%;
    right: 1%;
    top: 50%;
    max-width: 100%;
    height: auto;
    padding: 0;
  }
  
  .hero-content-heroImageIndex h1 {
    font-size: 1.4rem;
  }
  .hero-content-heroImageIndex h2 {
    font-size: 1.1rem;
  }
  .hero-content-heroImageIndex h3 {
    font-size: 1rem;
  }
}
/* --- Dispositivos entre 795px y 992px --- */
@media (min-width: 795px) and (max-width: 992px) {
    .header{
        margin-top: 29px;
    }
    .hero-content-box-heroImageIndex {
        left: 1%;
        right: 1%;
        top: 35%;
        max-width: 100%;
        padding: 0;
        height: auto;
    }
    
    .hero-content-heroImageIndex h1 {
        font-size: 2.2rem;
    }
    .hero-content-heroImageIndex h2 {
        font-size: 1.5rem;
    }	
    .hero-content-heroImageIndex h3 {
        font-size: 1.4rem;
    }
}
  
/* --- Dispositivos entre 769px y 794px --- */
@media (min-width: 769px) and (max-width: 794px) {
    .header{
        margin-top: 30px;
    }
    .hero-content-box-heroImageIndex {
      left: 1%;
      right: 1%;
      top: 35%;
      max-width: 100%;
      height: auto;
      padding: 0;
    }
    .hero-icon-heroImageIndex img {
      width: 40px;
    }
    .hero-content-heroImageIndex h1 {
      font-size: 2rem;
    }
    .hero-content-heroImageIndex h2 {
      font-size: 1.5rem;
    }
    .contador-container {
      font-size: 0.8rem;
    }
    .hero-icon-heroImageIndex img {
      width: 60px;
    }
}  

@media (min-width: 769px) and (max-width: 1025px) {
    .hero-content-box-heroImageIndex {
        top: 70%;
        height: auto;
    }

    .hero-icon-heroImageIndex img {
        width: 70px;
    }
}

@media (min-width: 993px) and (max-width: 1076px) {
    .interactive-section .content {
        justify-content: unset;
    }
    .hero-content-heroImageIndex h1 {
        font-size: 2.2rem;
    }
    .hero-content-heroImageIndex h2 {
        font-size: 1.7rem;
    }
    .hero-content-heroImageIndex h3 {
        font-size: 1.5rem;
    }
}

/* --- Dispositivos pequeños y móviles (máximo 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-content-box-heroImageIndex {
    left: 1%;
    right: 1%;
    top: auto;       /* Desactiva la posición superior */
    bottom: 0;       /* Posiciona la caja en la parte inferior */
    max-width: 100%;
    padding: 0;
    height: auto;
  }
  .hero-icon-heroImageIndex img {
    width: 60px;
  }
  /* Reducir la tipografía para móviles */
  .hero-content-heroImageIndex h1 {
    font-size: 1.6rem;
  }
  .hero-content-heroImageIndex h2 {
    font-size: 1.4rem;
  }
  .hero-content-heroImageIndex h3 {
    font-size: 1.3rem;
  }
  .contador-container {
    font-size: 0.8rem;
  }
}
  
/* --- Ajustes específicos para pantallas muy pequeñas --- */
@media (max-width: 480px) {
  .hero-content-box-heroImageIndex {
    top: auto;
    bottom: 0;
    height: auto;
  }
  .hero-content-heroImageIndex h1 {
    font-size: 1.4rem;
  }
  .hero-content-heroImageIndex h2 {
    font-size: 1.1rem;
  }
  .hero-content-heroImageIndex h3 {
    font-size: 1.1rem;
  }
  .logo img {
    margin-left: 0%;
  }
  .menu-toggle {
    margin-right: 5%;
  }

  .hero-icon-heroImageIndex img {
    width: 50px;    
  }
}

@media (max-width: 420px) {
  .hero-content-box-heroImageIndex {
    top: auto;
    bottom: 0;
    height: auto;
  }
}

@media (max-width: 419px) {
  .hero-content-box-heroImageIndex {
    top: auto;
    bottom: 0;
    height: auto;
  }

  .logo img {
    margin-left: 0%;
  }
  .menu-toggle {
    margin-right: 5%;
  }
}

@media (max-width: 414px) {
  .hero-content-box-heroImageIndex {
    top: auto;
    bottom: 0;
    height: auto;
  }

  .logo img {
    margin-left: 0%;
  }
  .menu-toggle {
    margin-right: 5%;
  }
  header {
    margin-top: 70px;
    }
}

@media (max-width: 375px) {
  .hero-content-box-heroImageIndex {
    top: auto;
    bottom: 0;
    height: auto;
}

  .logo img {
    margin-left: 0%;
  }
  .menu-toggle {
    margin-right: 5%;
  }
  header {
    margin-top: 70px;
  }
}

@media (min-width: 376px) and (max-width: 443px) {
    .hero-content-box-heroImageIndex {
        top: auto;
        bottom: 0;
        height: auto;
    }
    header {
        margin-top: 68px;
    }
    .hero-content-heroImageIndex h1 {
        font-size: 1.2rem;
    }
    .logo img {
        margin-left: 0%;
    }
    .menu-toggle {
      margin-right: 5%;
    }
    header {
        margin-top: 70px;
    }
}


.google-form-iframe.styled-form {
  position: absolute;
  top: 60%;
  right: 6%;
  transform: translateY(-50%);
  width: 360px;
  height: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: 'Segoe UI', sans-serif;
}

.form-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.form-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-tabs .tab {
  background: #e0e0e0;
  color: #555;
  padding: 6px 12px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}

.form-tabs .tab.active {
  background: #b23232;
  color: #fff;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.form-step.active {
  display: flex;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

select, textarea {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
}

.form-buttons button {
  padding: 6px 14px;
  font-size: 0.9rem;
  border: none;
  background: #b23232;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.form-buttons button:hover {
  background: #8e2222;
}


/* Pantallas grandes */
@media (min-width: 1658px) {
  .google-form-iframe {
    top: 60%;
    right: 2%;
    width: 520px;
    height: 600px;
    transform: translateY(-50%);
  }
}

/* Entre 1030px y 1657px */
@media (min-width: 1030px) and (max-width: 1657px) {
  .google-form-iframe {
    top: 60%;
    right: 2%;
    width: 460px;
    height: 600px;
    transform: translateY(-50%);
  }
}

/* Entre 1026px y 1029px */
@media (min-width: 1026px) and (max-width: 1029px) {
  .google-form-iframe {
    top: 74%;
    right: 2%;
    width: 440px;
    height: 600px;
    transform: translateY(-50%);
  }
}

/* Entre 795px y 1025px */
@media (min-width: 795px) and (max-width: 1025px) {
  .google-form-iframe {
    position: static;
    margin: 20px auto 0 auto;
    width: 100%;
    max-width: 550px;
    height: 600px;
  }
}

/* Entre 769px y 794px */
@media (min-width: 769px) and (max-width: 794px) {
  .google-form-iframe {
    position: static;
    margin: 20px auto 0 auto;
    width: 100%;
    max-width: 550px;
    height: 600px;
  }
}

/* Móviles entre 481px y 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .google-form-iframe {
    position: static;
    margin: 20px auto 0 auto;
    width: 100%;
    max-width: 450px;
    height: 580px;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  .google-form-iframe {
    position: static;
    margin: 20px auto 0 auto;
    width: 100%;
    max-width: 100%;
    height: 500px;
  }
}


/* Popup Scroll Survey */
.popup-scroll-survey {
  position: fixed;
  bottom: 40px;
  left: 20px; /* Aquí cambiamos de 'right' a 'left' */
  width: 320px;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  overflow-y: auto;
  z-index: 9999;
  padding: 20px;
  display: none;
  animation: fadeInUp 0.5s ease-in-out;
}

.popup-scroll-survey h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.popup-scroll-survey select,
.popup-scroll-survey textarea {
  width: 100%;
  margin: 6px 0 14px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.popup-scroll-survey textarea {
  resize: vertical;
  min-height: 60px;
}
.popup-scroll-survey .popup-question {
  font-weight: 600;
  margin-top: 10px;
}
.popup-scroll-survey .popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.popup-scroll-survey .popup-submit {
  display: block;
  margin-top: 10px;
  width: 100%;
  background: #b23232;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
.hidden { display: none; }