/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Oculta cualquier desbordamiento horizontal */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Top Bar (Barra de Emergencia) */
.top-bar {
    background-color: #d30000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    position: fixed;
    top: 0;
    width: 100vw;
    box-sizing: border-box;
    z-index: 101;
}

/* Agregar espacio para evitar superposición de la barra superior */
main {
    margin-top: 40px; /* Ajusta este valor según la altura de la barra */
}
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Oculta la barra superior en móviles */
    }
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) brightness(0.8); /* Efecto espejo oscurecido */
    color: #fff;
    padding: 10px 20px; /* Ajusta el padding para agregar espacio a los lados */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    top: 50px; /* Mueve el navbar hacia abajo para respetar el espacio de la topbar */
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra en el borde inferior */
}

.navbar .logo {
    margin-right: 20px; /* Añade espacio a la derecha del logo */
}

.navbar .logo img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.navbar .logo:hover img {
    transform: scale(1.2);
}

/* Menú en escritorio */
.desktop-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar los elementos dentro del menú */
}

.desktop-menu ul li {
    margin: 0 30px; /* Espaciado entre los elementos del menú */
}

.desktop-menu ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease; /* Añade un efecto de transición */
    font-size: 19px; /* Asegura que el tamaño de la fuente sea consistente */
    font-weight: 300; /* Asegura que el texto tenga un peso moderado */
}

.desktop-menu ul li a:hover {
    color: #ffffff;
    transform: scale(1.1); /* Efecto de agrandamiento al pasar el mouse */
}

/* Botón "Contáctanos" Estilo WhatsApp */
.cta-whatsapp {
    background-color: #25D366; /* Verde estilo WhatsApp */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-whatsapp:hover {
    background-color: #1ebe57; /* Efecto hover con tono más oscuro */
    transform: scale(1.05);
}

.cta-whatsapp svg {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.cta-whatsapp:hover svg {
    transform: scale(1.2);
}

/* Ajustes adicionales */
.navbar.scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.1); /* Fondo más oscuro cuando se hace scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Aumentar la sombra en scroll */
}

/* Ajustes para la versión móvil */
@media (max-width: 768px) {
    .topbar {
        top: 0; /* Asegura que la topbar esté en la parte superior de la pantalla */
    }

    .navbar {
        top: 0; /* Asegura que la barra esté justo debajo de la topbar */
    }

    .desktop-menu {
        display: none; /* Oculta el menú en la versión móvil */
    }

    .navbar .logo {
        margin-right: 0; /* Elimina el margen en la versión móvil para centrar mejor el logo */
    }

    .navbar {
        justify-content: center; /* Centra el logo en la versión móvil */
    }
}
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    padding-top: 80px;
    background: url('images/hero-1.png') no-repeat center center/cover;
    animation: slide 20s infinite;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

@keyframes slide {
    0% { background-image: url('images/hero-1.png'); }
    20% { background-image: url('images/hero-2.png'); }
    40% { background-image: url('images/hero-3.png'); }
    60% { background-image: url('images/hero-4.png'); }
    80% { background-image: url('images/hero-5.png'); }
    100% { background-image: url('images/hero-1.png'); }
}

.hero-content {
    max-width: 100%;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f90404;
}

.hero p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-logo-mobile {
    max-width: 220px; /* Tamaño para el logo en móvil */
    height: auto;
    margin-bottom: 15px;
    display: none; /* Oculto por defecto */
    margin: 0 auto 15px auto; /* Centrar el logo en móvil */
}

/* Ocultar el texto en móviles */
.hero .mobile-hide {
    display: block;
}

/* Estilos para versión móvil */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Ocultar el texto en móvil */
    .hero .mobile-hide {
        display: none;
    }

    /* Mostrar el logo en la versión móvil */
    .hero-logo-mobile {
        display: block;
    }
}

/* Estilos para versión de escritorio */
@media (min-width: 769px) {
    .hero-logo-mobile {
        display: block;
        max-width: 350px; /* Tamaño del logo en escritorio */
        height: auto;
        margin: 0 auto 20px auto; /* Centrar el logo en escritorio */
    }
}



/* Servicios Section */
.services {
    background-color: #fff;
    padding: 60px 20px;
}

.services .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
    margin-top: 0px;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service-card {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    width: 45%; /* Ajusta el ancho al 45% para que se acomoden 2 tarjetas por fila */
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #d30000; /* Rojo corporativo */
}

.service-card p {
    font-size: 16px;
    color: #333;
    padding: 0 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Botón "Contáctanos" estilo WhatsApp */
.cta-whatsapp {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* Color verde de WhatsApp */
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.cta-whatsapp svg {
    margin-right: 10px;
    font-size: 24px;
}

.cta-whatsapp:hover {
    background-color: #1ebe57; /* Efecto hover */
    transform: scale(1.05);
}

.cta-whatsapp:active {
    transform: scale(0.95);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer .social-media {
    margin-top: 20px;
}

footer .social-media ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

footer .social-media ul li {
    margin: 0 10px;
}

footer .social-media ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

/* Menu desplegable en móviles */
@media (max-width: 768px) {
    .navbar.active nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 1000;
    }

    .navbar nav ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar nav ul li {
        margin: 10px 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 15px;
    }

    .navbar nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

/* Menu desplegable en móviles */
.navbar.active nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
}

    .navbar nav ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar nav ul li {
        margin: 10px 0;
    }

    .cta {
        margin: 10px 0; /* Ajusta el margen del botón en móvil */
        padding: 12px 30px;
        width: 90%;
        text-align: center;
        border-radius: 10px; /* Borde más pronunciado en móvil */
    }

    .hero {
        padding-left: 20px;
    }

    .hero-content {
        max-width: 90%;
        text-align: center;
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    .service-card {
        width: 45%; /* Mantener 2x2 en pantallas más grandes */
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 100%; /* Cambia a 1 tarjeta por fila en tablets y móviles */
    }
}

/* Reportes Section */
.reportes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.reportes .container {
    display: flex;
    max-width: 1200px; /* Define el ancho máximo para centrar el contenido */
    width: 100%; /* El contenedor toma el 100% del ancho disponible */
    justify-content: space-between;
}

.reportes .image-container {
    flex: 1;
    max-width: 40%; /* Mantén el ancho máximo al 40% del contenedor */
    margin-right: 20px; /* Reduce el margen derecho para acercar la imagen a los bullets */
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex; /* Asegura que la imagen esté centrada dentro del contenedor */
    align-items: center;
    justify-content: center;
}

.reportes .image-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Mantén la proporción de la imagen */
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .reportes .container {
        flex-direction: column;
        align-items: center; /* Centra los elementos en pantallas más pequeñas */
    }

    .reportes .content-container {
        max-width: 100%; /* Ajusta el ancho en pantallas más pequeñas */
        margin: 0 auto 20px auto; /* Centra los elementos y agrega un margen inferior */
        text-align: center; /* Centra el texto en pantallas más pequeñas */
    }
}

.reportes .image-container:hover {
    transform: scale(1.15);
}

.reportes .content-container {
    flex: 1;
    max-width: 55%; /* Ajusta el ancho máximo al 55% para los bullets */
    margin-left: 20px; /* Reduce el margen izquierdo para acercar los bullets a la imagen */
}

.reportes .content-container h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.reportes .bullets {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 0 15px; /* Espacio a los lados para centrar mejor los bullets */
}

.reportes .bullets div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.reportes .bullets div:hover {
    background-color: #d30000;
    transform: translateX(10px);
}

.reportes .bullets div img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.reportes .bullets div:hover img {
    transform: scale(1.2);
}

.reportes .bullets div p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.reportes .bullets div:hover p {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reportes {
        flex-direction: column;
        padding: 40px 20px;
    }

    .reportes .image-container {
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .reportes .content-container {
        max-width: 100%;
        padding: 0 15px; /* Asegura que el contenido esté centrado y haya espacio a los lados */
        text-align: center; /* Centra el texto en pantallas móviles */
    }

    .reportes .bullets div {
        width: 100%;
        justify-content: left; /* Centra los bullets en móviles */
        text-align: left;
        padding-left: 20px; /* Asegura un poco de espacio a la izquierda */
    }
}

/* Responsive adjustments for Hero Section */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Permitir que el hero se ajuste según el contenido en móviles */
        padding-top: 80px; /* Ajustar el padding superior en móviles */
    }

    .hero-content {
        max-width: 100%;
        padding: 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 28px; /* Reducir el tamaño del título en móviles */
    }

    .hero p {
        font-size: 14px; /* Reducir el tamaño del subtítulo en móviles */
    }

    .cta-whatsapp {
        font-size: 12px; /* Ajuste adicional para mantener la proporción en móviles */
    }
}
/* Sección ¿Por qué somos la mejor opción? */
.best-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 2px 20px;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.best-option .content {
    flex: 1;
    max-width: 55%;
    padding-right: 20px;
    padding-top: 0px;
}

.best-option h2 {
    font-size: 36px;
    color: #d30000;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-top: 0px;
   
}

.best-option h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.best-option p {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.certification {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    max-width: 20%; /* Ajusta el ancho máximo para que estén en una fila */
    padding: 10px;
    margin-bottom: 0; /* Elimina margen inferior */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification img {
    max-width: 80px;
    height: auto;
    margin-right: 10px;
    transition: transform 0.3s ease; /* Efecto hover solo para la imagen */
}

.certification h4 {
    font-size: 14px;
    color: #333;
    margin: 0; /* Eliminar margen superior */
    font-weight: bold;
    text-align: left; /* Alinear texto a la izquierda */
}

.certification p {
    font-size: 12px;
    color: #9d0909;
    margin: 5px 0 0 0; /* Eliminar margen y alinear bien */
    text-align: left; /* Alinear texto a la izquierda */
}

.certification:hover img {
    transform: scale(1.5); /* Efecto hover solo en la imagen */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .certifications {
        justify-content: center; /* Centra las certificaciones en la versión móvil */
        flex-wrap: wrap;
        gap: 15px; /* Espacio reducido entre tarjetas para pantallas pequeñas */
    }

    .certification {
        flex: 1 1 45%; /* 2x2 en versión móvil */
        max-width: 45%;
        padding: 15px; /* Ajuste del padding en móviles */
    }

    .certification img {
        max-width: 50px; /* Ajusta el tamaño de los íconos en móviles */
    }

    .certification h4 {
        font-size: 14px; /* Ajusta el tamaño del título en móviles */
    }

    .certification p {
        font-size: 10px; /* Ajusta el tamaño del texto en móviles */
    }
}

.best-option .image-container {
    flex: 1;
    max-width: 40%;
    text-align: center;
}

.best-option .image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.best-option .image-container:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .best-option {
        flex-direction: column-reverse;
        text-align: center;
    }

    .best-option .content {
        max-width: 100%;
        padding-right: 0;
    }

    .best-option .image-container {
        max-width: 80%;
        margin: 20px auto;
    }
}
.certifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas en la versión móvil */
    grid-gap: 20px; /* Espacio entre los elementos */
    justify-content: center;
}

.certification {
    flex: 1 1 auto;
    max-width: 100%; /* Asegura que ocupen el 100% del ancho disponible */
    padding: 10px;
    text-align: left; /* Mantén el texto alineado a la izquierda */
}

.certification img {
    max-width: 50px; /* Ajuste del tamaño de los íconos */
    height: auto;
    margin-bottom: 5px;
}

.certification h4 {
    font-size: 14px;
}

.certification p {
    font-size: 12px;
}
/* Estilo de la sección de estadísticas */
.stats-section {
    display: flex;
    justify-content: space-evenly; /* Puedes cambiar a space-evenly si prefieres */
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #9c0d0d, #d30000);
    color: #fff;
    /* Eliminar text-align: left; */
}

.stat {
    flex: 1;
    padding: 20px;
    /* Centrar el contenido dentro de cada .stat */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* Asegurar que el texto esté centrado */
}

.stat .counter {
    font-size: 60px;
    font-weight: bold;
    display: block;
}

.stat p {
    font-size: 20px;
    margin-top: 10px;
}

/* Ajustes para versión móvil */
@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
    }

    .stat {
        text-align: center;
        padding: 10px 0;
    }
}

/* Estilos para la sección "Listos para atenderte" */
.ready-to-serve {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 0px 0px;
    background-color: #f4f4f4;
    overflow-x: auto;
}
.titulos {
    text-align: center;
    margin-bottom: 40px;
}

.titulos .section-title {
    font-size: 36px;
    color: #d30000; /* Rojo corporativo */
    margin-bottom: 10px;
    text-transform: uppercase;
}

.titulos .section-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 300;
}

.ready-to-serve .card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 240px;
    margin: 0 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex: 0 0 auto;
}

.ready-to-serve .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.ready-to-serve .card img {
    width: 100%;
    height: auto;
    border-bottom-left-radius: 50px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease; /* Efecto de zoom */
}

.ready-to-serve .card:hover img {
    transform: scale(1.09); /* Zoom en la imagen */
}

.ready-to-serve .card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-bottom-left-radius: 50px;
    z-index: 2;
    pointer-events: none;
    animation: slide-overlay 1.5s ease forwards; /* Solo se ejecuta una vez */
    animation-play-state: paused; /* Pausada inicialmente */
}

@keyframes slide-overlay {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.ready-to-serve .card .content {
    padding: 15px; /* Ajuste de padding para las tarjetas */
    text-align: center;
    position: relative;
    z-index: 3;
}

.ready-to-serve .card .content h3 {
    font-size: 18px; /* Ajuste del tamaño del título */
    color: #d30000; /* Color rojo para el título */
    margin-bottom: 10px;
}

.ready-to-serve .card .content p {
    font-size: 14px; /* Ajuste del tamaño del texto */
    color: #333;
    margin-bottom: 15px;
}

.ready-to-serve .card .content a.btn {
    display: inline-block;
    padding: 10px 20px; /* Ajuste del tamaño del botón */
    background-color: #25D366; /* Verde estilo WhatsApp */
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px; /* Ajuste del tamaño de la fuente del botón */
}

.ready-to-serve .card .content a.btn:hover {
    background-color: #1ebe57;
}

/* Botón de "Contáctanos" minimalista */
.ready-to-serve .card .content a.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent; /* Fondo transparente para el botón minimalista */
    color: #d30000; /* Texto del botón en rojo */
    border: 2px solid #d30000; /* Borde del botón en rojo */
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    font-size: 12px;
}

.ready-to-serve .card .content a.btn:hover {
    background-color: #d30000; /* Fondo rojo al hacer hover */
    color: #fff; /* Texto blanco al hacer hover */
    transform: scale(1.2); /* Animación de zoom en el botón */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ready-to-serve {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ready-to-serve .card {
        width: 100%;
        max-width: 90%;
        margin: 10px 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ready-to-serve {
        flex-wrap: wrap; /* Permite que las tarjetas se muevan a la siguiente línea en pantallas pequeñas */
        justify-content: center;
    }

    .ready-to-serve .card {
        width: 100%;
        max-width: 90%; /* Ajusta el ancho en móviles */
        margin: 10px 0; /* Espaciado vertical entre tarjetas en móviles */
    }
}

/* NOSOTROS EN ACCIÓN */
.nosotros-accion-section {
    padding: 60px 20px;
    background: #f4f4f4;
    text-align: center;
}

.nosotros-accion-section .accion-title {
    font-size: 36px;
    color: #d30000;
    margin-bottom: 20px;
}

.nosotros-accion-section .accion-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.accion-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.accion-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.accion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.accion-item:hover .accion-img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.accion-item .hover-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.accion-item:hover .hover-text {
    opacity: 1;
}

/* Estilo para la versión de escritorio */
@media (min-width: 769px) {
    .accion-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .accion-item {
        height: auto;
    }

    .accion-img {
        height: 100%;
    }

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

/* Estilos para la versión móvil */
@media (max-width: 768px) {
    .accion-container {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        white-space: nowrap;
        width: 100%;
    }

    .accion-item {
        display: inline-block;
        width: 100%;
        min-width: 80%;
        margin-right: 10px;
    }

    .accion-img {
        height: auto;
    }

    .accion-item .hover-text {
        font-size: 12px;
        padding: 8px;
    }
}


/* Estilos para la sección de Social Proof */
.social-proof-section {
    padding: 0px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.social-proof-header {
    margin-bottom: 40px;
}

.social-proof-title {
    font-size: 34px;
    color: #d30000;
    font-weight: bold;
    margin-bottom: 15px;
}

.social-proof-subtitle {
    font-size: 16px;
    color: #555;
}

.social-proof-reviews {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.review {
    text-align: center;
}

.stars {
    margin-bottom: 10px;
}

.review-info {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.social-proof-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.social-proof-card {
    background-color: #333;
    color: #fff;
    border-radius: 10px;
    width: 300px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.social-proof-card:hover {
    transform: translateY(-10px);
}

.avatar {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.user-info {
    margin-bottom: 15px;
}

.user-name {
    font-weight: bold;
    font-size: 16px;
}

.user-status {
    font-size: 14px;
    color: #d30000;
}

.user-feedback {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .social-proof-reviews,
    .social-proof-cards {
        flex-direction: column;
        align-items: center;
    }

    .social-proof-card {
        width: 90%;
    }
}

/* Estilos para la sección de Carrusel de Logos */
/* Estilos para la sección de Carrusel de Logos */
.logo-carousel-section {
    background: linear-gradient(90deg, #d30000 0%, #a30000 100%);
    padding: 20px 0;
    overflow: hidden;
}

.logo-carousel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-carousel-track {
    display: flex;
    align-items: center;
    animation: scrollLogos 60s linear infinite;
    /* Ajuste para la animación */
    will-change: transform;
}

.logo-carousel-track img {
    margin: 0 15px;
    max-height: 50px;
    filter: brightness(0) invert(1); /* Logos en blanco para destacar en fondo oscuro */
    transition: transform 0.3s ease;
}

.logo-carousel-track img:hover {
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-carousel-track img {
        max-height: 40px;
        margin: 0 10px;
    }
}


/* Estilos para la sección de contacto */
.contact-section {
    background-color: #333333; /* Fondo gris oscuro */
    padding: 60px 20px;
    text-align: left;
    color: #fff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.contact-content p {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    padding: 15px;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

.form-group button {
    background-color: #28A745; /* Botón verde */
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #218838; /* Efecto hover verde más oscuro */
}

/* Ajustes para la vista de escritorio */
@media (min-width: 768px) {
    #contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input,
    .form-group select {
        padding: 15px;
        font-size: 14px;
        border-radius: 5px;
        border: none;
        width: 100%;
        box-sizing: border-box;
        background-color: #fff;
        color: #333;
    }

    .form-group:nth-child(odd) {
        grid-column: 1 / 2;
    }

    .form-group:nth-child(even) {
        grid-column: 2 / 3;
    }

    .form-group:nth-child(5) {
        grid-column: 1 / 3;
    }

    .form-group button {
        grid-column: 1 / 3;
        background-color: #28A745; /* Botón verde */
        color: #fff;
        padding: 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s ease;
    }

    .form-group button:hover {
        background-color: #218838; /* Efecto hover verde más oscuro */
    }
}

/* Ajustes para la vista móvil */
@media (max-width: 768px) {
    .contact-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .contact-content h2 {
        font-size: 24px;
    }

    .contact-content p {
        font-size: 14px;
    }

    #contact-form {
        gap: 10px;
    }

    .form-group input,
    .form-group select {
        padding: 12px;
        font-size: 13px;
    }

    .form-group button {
        padding: 12px;
        font-size: 14px;
    }
}
/* Estilos para el footer */
/* Estilos para el footer */
.footer-distributed {
    background-color: #ffffff; /* Fondo blanco */
    padding: 20px 30px; /* Reduce el padding en general */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    color: #333; /* Color base para el texto */
}

.footer-logo {
    width: 150px; /* Tamaño más compacto para el logo */
    margin-bottom: 15px;
}

.footer-left, .footer-center, .footer-right, .footer-emergency {
    flex: 1;
    margin-bottom: 15px; /* Reduce el margen inferior */
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.footer-center i {
    margin-right: 8px; /* Reduce el espacio entre icono y texto */
    color: #d30000; /* Color rojo Atlas */
}

.footer-center p {
    display: flex;
    align-items: center;
    margin: 8px 0; /* Reduce el margen entre elementos */
    color: #333;
}

.footer-right {
    text-align: left;
}

.footer-emergency {
    text-align: left;
    flex: 1;
    padding: 15px; /* Reduce el padding para compactar */
    background-color: #d30000; /* Fondo rojo para la sección de emergencia */
    color: #fff;
    border-radius: 10px;
    margin-top: 15px; /* Reduce el margen superior */
    margin-bottom: 15px; /* Reduce el margen inferior */
}

.footer-emergency p {
    margin: 8px 0; /* Reduce el margen entre elementos */
    font-size: 16px; /* Texto más compacto para la sección de emergencia */
    font-weight: bold;
}

.footer-links {
    margin: 15px 0; /* Reduce el margen superior e inferior */
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-block;
    margin-right: 10px; /* Reduce el espacio entre enlaces */
    color: #d30000; /* Rojo Atlas para los enlaces */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Reduce el tamaño de la fuente */
}

.footer-company-name {
    color: #666;
    font-size: 12px; /* Reduce el tamaño de la fuente */
    margin-top: 15px; /* Reduce el margen superior */
}

.footer-company-about span {
    display: block;
    margin-bottom: 8px; /* Reduce el espaciado adicional debajo del título */
    font-size: 14px; /* Reduce el tamaño del título */
    color: #d30000; /* Rojo Atlas */
}

.footer-company-about p {
    margin-top: 0;
    margin-bottom: 8px; /* Reduce el espaciado adicional entre párrafos */
    color: #333;
    font-size: 14px; /* Reduce el tamaño de la fuente */
}

.footer-icons {
    margin-top: 15px; /* Reduce el margen superior */
    text-align: center; /* Centrar los iconos de redes sociales */
    width: 100%;
}

.footer-icons a {
    display: inline-block;
    margin-right: 8px; /* Reduce el margen entre iconos */
    color: #333;
    font-size: 20px; /* Tamaño más compacto para los iconos */
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #d30000; /* Rojo Atlas al hacer hover */
}

/* Ajustes para la vista móvil */
@media (max-width: 768px) {
    .footer-distributed {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px; /* Reduce el padding en móviles */
    }

    .footer-emergency {
        text-align: center;
        margin-top: 10px; /* Reduce el margen superior */
        margin-bottom: 10px; /* Reduce el margen inferior */
        font-size: 14px; /* Ajusta el tamaño del texto en móvil */
        padding: 10px; /* Reduce el padding en móviles */
    }

    .footer-center, .footer-right, .footer-left {
        text-align: center;
        margin-bottom: 10px; /* Reduce el margen inferior en móviles */
    }
    
    .footer-center p {
        justify-content: center;
        margin: 6px 0; /* Reduce el margen entre elementos */
    }

    .footer-links a {
        font-size: 12px; /* Reduce el tamaño de la fuente en móviles */
        margin-right: 8px; /* Reduce el espacio entre enlaces en móviles */
    }

    .footer-company-name {
        font-size: 12px; /* Ajusta el tamaño de la fuente en móviles */
        margin-top: 10px; /* Reduce el margen superior en móviles */
    }

    .footer-icons a {
        font-size: 18px; /* Tamaño más compacto para los iconos en móviles */
        margin-right: 5px; /* Reduce el margen entre iconos en móviles */
    }
}
/* Estilos para el preloader */
/* Estilos para el preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Fondo blanco */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner Animación */
/* Estilos para el preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Fondo blanco */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner Animación */
.spinner {
    border: 8px solid #f3f3f3; /* Bordes gris claro */
    border-top: 8px solid #d30000; /* Bordes rojos */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ocultar el preloader con efecto de desvanecimiento */
body.loaded #preloader {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

/* Mostrar el contenido con efecto de desvanecimiento */
body.loaded .main-content {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.main-content {
    opacity: 0; /* Ocultar el contenido hasta que el preloader desaparezca */
    transition: opacity 1s ease-in-out;
}
/* Estilo inicial para todos los títulos antes de la animación */
.animate-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estilo cuando la animación está activa */
.animate-title.active {
    opacity: 1;
    transform: translateY(0);
}
/* Estilos para el botón flotante de contacto */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

}

.floating-contact .contact-button {
    background-color: #d30000; /* Rojo Atlas */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.floating-contact .contact-button:hover {
    transform: scale(1.1);
}

.floating-contact .contact-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-contact:hover .contact-options,
.floating-contact .contact-options.active {
    display: flex;
    opacity: 1;
}

.floating-contact .contact-options a {
    background-color: #d30000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-contact .contact-options a:hover {
    background-color: #a10000;
    transform: translateX(-10px);
}

/* Ajustes para la vista de escritorio */
@media (min-width: 769px) {
    .floating-contact {
        display: block;
    }
}

/* Estilos adicionales para mantener los botones visibles durante 2 segundos después de hover */
.floating-contact:hover .contact-options,
.floating-contact .contact-options.active {
    display: flex;
    opacity: 1;
}

.floating-contact .contact-options.fadeout {
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}
/* Estilos generales para la sección de preguntas frecuentes */
.faq-heading {
    font-weight: 400;
    font-size: 19px;
     -webkit-transition: text-indent 0.2s;
    text-indent: 20px;
    color: #333;
  }
  
  .faq-text {
    font-weight: 400;
    color: #919191;
    width:95%;
    padding-left:20px;
    margin-bottom:30px;
  }
  
  .faq {
    width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 4px;
    position: relative;
    border: 1px solid #E1E1E1;
  }
  .faq label {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 56px;
    padding-top:1px;
   
    background-color: #FAFAFA;
    border-bottom: 1px solid #E1E1E1;
  }
  
  .faq input[type="checkbox"] {
    display: none;
  }
  
  .faq .faq-arrow {
    width: 5px;
    height: 5px;
    transition: -webkit-transform 0.8s;
    transition: transform 0.8s;
    transition: transform 0.8s, -webkit-transform 0.8s;
    -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 2px solid #d30000;
    border-right: 2px solid #d30000;
    float: right;
    position: relative;
    top: -30px;
    right: 27px;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
  }
  
   .faq input[type="checkbox"]:checked + label > .faq-arrow {
    transition: -webkit-transform 0.8s;
    transition: transform 0.8s;
    transition: transform 0.8s, -webkit-transform 0.8s;
    -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-transform: rotate(135deg);
            transform: rotate(135deg);
  }
   .faq input[type="checkbox"]:checked + label {
    display: block;
    background: rgba(255,255,255,255) !important;
    color: #4f7351;
    height: 225px;
    transition: height 0.8s;
    -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
   .faq input[type='checkbox']:not(:checked) + label {
    display: block;
    transition: height 0.8s;
    height: 60px;
    -webkit-transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding-top: 10px;
  }
  
  ::-webkit-scrollbar {
    display: none;
  }

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .faq {
        width: 90%;
        margin: 20px auto;
    }

    .faq-heading {
        font-size: 18px;
        text-indent: 15px;
    }

    .faq-text {
        font-size: 14px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .faq label {
        padding-left: 15px;
        padding-right: 35px;
    }

    .faq .faq-arrow {
        right: 15px;
    }

    .faq input[type="checkbox"]:checked + label + .faq-text {
        max-height: 300px; /* Ajusta esta altura para adaptarse mejor a móviles */
    }
}
/* Estilos para la sección del eslogan */
.slogan-section {
    background-color: #d30000; /* Color corporativo */
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
}

.slogan-section h2 {
    font-size: 28px;
    font-weight: 400;
    margin: 0;
}
/* Estilos alternativos para el botón de Euroascensores */
.cta-euroascensores {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #051178; /* Tono púrpura más claro */
    color: #ffd700; /* Amarillo dorado */
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-euroascensores:hover {
    background-color: #3b18c4; /* Tono ligeramente más oscuro al pasar el cursor */
    transform: translateY(-2px);
}
.form-group.buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-group.buttons button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #4abe14;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group.buttons button#send-email {
    background-color: #0066cc; /* Color azul para el botón de Email */
}

.form-group.buttons button:hover {
    background-color: #134303; /* Color más oscuro al pasar el cursor */
}

.form-group.buttons button#send-email:hover {
    background-color: #084887; /* Color más oscuro para el botón de Email */
}
/* ===== Estilos específicos para legales.html ===== */

#legal-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
    color: #333;
}

#legal-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #d30000; /* Color corporativo */
}

#legal-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

#legal-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

#legal-content ul,
#legal-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

#legal-content a {
    color: #0066cc;
    text-decoration: none;
}

#legal-content a:hover {
    text-decoration: underline;
}

/* Estilos para el índice interno (si lo tienes) */
#legal-content .legal-index {
    margin-bottom: 30px;
}

#legal-content .legal-index ul {
    list-style: none;
    padding: 0;
}

#legal-content .legal-index li {
    margin-bottom: 10px;
}

#legal-content .legal-index a {
    font-size: 18px;
    color: #d30000; /* Color corporativo */
}

#legal-content .legal-index a:hover {
    text-decoration: underline;
}

/* Estilos para separar secciones */
#legal-content section {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

/* Estilos para listas dentro del contenido legal */
#legal-content li {
    margin-bottom: 10px;
}

/* Estilos para tablas (si utilizas tablas en tus documentos legales) */
#legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#legal-content th,
#legal-content td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

#legal-content th {
    background-color: #f5f5f5;
}

/* Adaptabilidad para dispositivos móviles */
@media (max-width: 768px) {
    #legal-content {
        padding: 20px 15px;
    }

    #legal-content h1 {
        font-size: 28px;
    }

    #legal-content h2 {
        font-size: 22px;
    }

    #legal-content p,
    #legal-content li {
        font-size: 15px;
    }

    #legal-content .legal-index a {
        font-size: 16px;
    }
}
/* Estilos para el botón "Ir Arriba" */
#back-to-top {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    background-color: #d30000;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

#back-to-top:hover {
    background-color: #b00000;
}
/* Estilos para centrar el logo y ajustar su tamaño */
.header-logo {
    display: block;
    margin: 0 auto; /* Centra el logo horizontalmente */
    width: 120px; /* Tamaño pequeño ajustable */
    height: auto;
    transition: transform 0.3s ease; /* Animación de suavizado */
}

/* Efecto hover para aumentar ligeramente el tamaño del logo */
.header-logo:hover {
    transform: scale(1.1); /* Aumenta el tamaño del logo al pasar el cursor */
}
