:root {

    /* Colors */

    --primario: #FF0000;
    --primarioHover: #b90202;
    --gris: #4D4D4D;
    --blanco: #fff;
    --negro: #000;

    --separacion: 5rem;
}



html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 62.5%;
    /* 1rem = 10px */
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body{
    font-family:"Inter", sans-serif;;

}

img {
    max-width: 100%;
    display: block;
}


.contenedor {
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;
}

h1 {
    font-size: 5rem;
   
}

h2 {
    font-size: 3rem;
    color: var(--gris);
}

h3 {
    font-size: 1.8rem;
    color: var(--gris);
}
@media (min-width: 768px) {
    h3 {
        font-size: 2rem;
        color: var(--gris);
    }
}



p{
    font-size: 1.8rem;
    padding: 0;
    margin: 0;
}

@media (min-width: 1200px) {
    p{
        font-size: 1.8rem;
    }
}


a {
    text-decoration: none;
    font-size: 1.6rem;
}



/* utilidades */

.active_enlace{
    border-bottom: var(--primario) solid 1px;
}
.active a{
    color: var(--primario);
}

/* Estilos para los enlaces del menú */
nav a {
    color: black; /* Color del texto */
    text-decoration: none; /* Quita el subrayado */
    transition: color 0.3s ease, border-bottom 0.3s ease; /* Transición suave */
}

/* Efecto hover */
nav a:hover {
    border-bottom: 2px solid #FF0000; /* Añade un borde inferior */
}


/* header */
.active-menu{
    position: fixed;
    background-color: #ffffff !important;
    z-index: 1;
    /* color: white; */
}

.header {
    width: 100%;
    height: 95vh;
    background-image: url('../src/img/hero.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top right;
    display: flex;
    align-items: center;
    justify-content: center;
    
}



.header__content {
    color: white;
    text-align: left;
    padding: 20px;
}

.header__navegacion{
    background-color: rgba(255, 255, 255, 0.555) ;
    z-index: 1000;
}


.header__text h1 {
    font-size: 4rem;
    font-weight: bold;
    width: 95%;
}
@media (min-width: 768px) {
    .header__text h1 {
        font-size: 6rem;
       
    }

}


.header__text p {
    width: 95%;
}
@media (min-width: 768px) {
    .header__text p {
        font-size: 2.5rem;
       
    }

}



.boton-header{
    color: var(--blanco);
    background-color: var(--primario);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 30px;
    border-radius: 4px;
    transition: 0.3s;
}
.boton-header:hover{
    background-color: var(--primarioHover);
}

.titulo{
    color: var(--gris);
    font-weight: 600;
}

.titulo::after {
    content: '';
    display: block; /* Asegura que ocupe su propia línea */
    width: 8rem; /* Ancho de la línea */
    border-bottom: solid var(--primario) 3px; /* Línea debajo del título */
    margin-top: 0.5rem; /* Espacio entre el título y la línea */
}


/* Nosotros */
.nosotros{
    height: auto;
   
}

.nosotros img{
    border: solid rgb(255, 255, 255) 10px;
    width: 1800px;
    height: 100%;
}

.nosotros .valor img{
    border: none;
    width: 8rem;
    
}

.mision p, .vision p{
    width: 100%;
}
@media (min-width: 768px) {
    .mision p, .vision p{
        width: 75%;
        text-align: justify;
    }
}

.icono{
    width: 5rem;
    height: 5rem;
    background-color: var(--primario);
    padding: 0.5rem 1rem;
    border-radius: 50%;
    color: var(--blanco);
}


.section-obscura {
    background-image: url('/src/img/objetivo.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed; /* Esto crea el efecto parallax */
    width: 100%;
    padding: 5rem 0;
    min-height: 400px; /* Añadimos una altura mínima para que el efecto sea visible */
}
.servicios-content {
    padding: 20px;
}


.section-obscura h2{
    color: var(--blanco);
    text-align: center;
    font-size: 6rem;
}
/* Ajustar el diseño responsivo de las tarjetas de servicios */
.servicio {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .servicio {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .servicio {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* Ajustar el tamaño de las tarjetas de servicios */
/* Estilos base para las tarjetas de servicios */
.servicio-card {
    width: auto;
    height: auto;
    background-color: rgb(255, 255, 255);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease; /* Transición suave para todos los cambios */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra inicial */
}

/* Efecto hover */
.servicio-card:hover {
    background-color: #f8f9fa; /* Cambia el color de fondo al pasar el cursor */
    transform: translateY(-5px); /* Eleva la tarjeta ligeramente */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Aumenta la sombra */
}

/* Estilos para el ícono */
.servicio-card .icon {
    transition: transform 0.3s ease; /* Animación suave para el ícono */
}


.servicio-card:hover .icon {
    transform: scale(1.1); /* Escala ligeramente el ícono al pasar el cursor */
}

/* Estilos para el texto */
.servicio-card p {
    transition: color 0.3s ease; /* Cambio de color suave para el título */
}

.servicio-card:hover p {
    color: #FF0000; /* Cambia el color del título al pasar el cursor */
}


.servicio-card span {
    transition: color 0.3s ease; /* Cambio de color suave para la descripción */
    font-size: 1.8rem;
}

.servicio-card:hover span {
    color: #4D4D4D; /* Cambia el color de la descripción al pasar el cursor */
}

/* Contenedor del carrusel */
.carrusel-container {
    width: 100%;
    overflow: hidden;
}

/* Pista del carrusel */
.carrusel-track {
    display: flex;
    animation: carrusel 20s linear infinite;
    will-change: transform; /* Mejora el rendimiento de la animación */
}

/* Estilos para cada logo */
.logo-empresa {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Evita que los logos se deformen */
    margin-right: 20px; /* Espacio entre logos */
}

.logo-empresa img {
    width: 100%;
    max-width: 300px; /* Máximo ancho en desktop */
    height: auto; /* Mantiene la proporción */
}

/* Animación del carrusel */
@keyframes carrusel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Desplaza la mitad del track para el efecto infinito */
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .logo-empresa img {
        max-width: 200px; /* Reducimos el tamaño en tablet */
    }

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

@media (max-width: 480px) {
    .logo-empresa img {
        max-width: 150px; /* Más pequeño en móviles */
    }

    .logo-empresa {
        margin-right: 10px; /* Menos espacio entre logos */
    }

    @keyframes carrusel {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}
/* formulario */
.contacto{
    padding: 10rem 0;
     
}
.formulario label input{
    font-size: 1.3rem;
}



/* width="800" height="600" */
/* Estilos para el contenedor del mapa */
.mapa {
    width: 100%;
    height: 100%; /* Asegura que el contenedor ocupe toda la altura disponible */
    overflow: hidden; /* Evita desbordamientos */
    padding: 0; /* Elimina el padding si lo hay */
    margin: 0; /* Elimina el margen si lo hay */
}

/* Estilos para el iframe del mapa */
.mapa-iframe {
    width: 100%; /* Ocupa el 100% del ancho del contenedor */
    height: 400px; /* Ajusta la altura según tus necesidades */
    border: 0; /* Elimina el borde por defecto */
    display: block; /* Asegura que el iframe se comporte como un bloque */
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    .mapa-iframe {
        height: 500px; /* Altura más pequeña para dispositivos móviles y tabletas */
    }
}
@media (min-width: 1200px) {
    .mapa-iframe {
        height: 600px; /* Altura más pequeña para dispositivos móviles y tabletas */
    }
}

.redes{
    margin-top: -2rem;
}
.redes img{
    width: 3rem;
}

hr{
    border:#acacac solid 1px;
}


/* Estilos para las tarjetas de valores */
.valor {
    transition: transform 0.3s ease;
    padding: 2rem;
    border-radius: 1rem;
}

.valor:hover {
    transform: translateY(-5px);
    
}

.valor img {
    transition: transform 0.3s ease;
}

.valor:hover img {
    transform: scale(1.1);
}

.valor h3 {
    transition: color 0.3s ease;
}

.valor:hover h3 {
    color: var(--primario);
}

.valor p {
    transition: color 0.3s ease;
}

.valor:hover p {
    color: var(--gris) !important;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px; /* Changed from left to right */
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}

.contact-info i {
    color: var(--primario);
}

.hover-link {
    position: relative;
    transition: color 0.3s ease;
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--primario);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.hover-link:hover {
    color: var(--primario) !important;
}

.hover-link:hover::after {
    width: 100%;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primario);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}


/* Image Modal Styles */
#imageModal .modal-dialog {
    max-width: 90%; /* Adjust as needed */
    display: flex; /* Added for vertical centering */
    align-items: center; /* Added for vertical centering */
    min-height: calc(100% - 1rem); /* Added for vertical centering */
}

@media (min-width: 992px) { /* Adjust breakpoint if needed */
    #imageModal .modal-dialog {
        min-height: calc(100% - 3.5rem); /* Adjust for larger screens */
    }
}


#imageModal .modal-content {
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    box-shadow: none;
}

#imageModal .modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

#imageModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Make close button white */
    font-size: 1.5rem;
    opacity: 0.8;
}
#imageModal .btn-close-white:hover {
    opacity: 1;
}

/* Style for the image inside the modal */
#modalImage {
    max-width: 100%; /* Ensure image doesn't exceed modal width */
    max-height: 85vh; /* Limit image height to 85% of viewport height */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    margin: 0 auto; /* Center image horizontally if needed */
}


.recognition-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recognition-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}



.invalid-feedback {
    color: red;
    font-size: 0.875em; /* Adjust as needed */
    display: none; /* Hide by default */
    width: 100%;
    margin-top: 0.25rem;
  }
  
  .is-invalid {
    border-color: red !important; /* Ensure override */
  }
  
  .is-invalid ~ .invalid-feedback {
    display: block; /* Show when input is invalid */
  }