/* Estilos generales */
body {
    font-family: Arial, sans-serif;
}

/* Navbar y Cabecera con fondo responsive */
/*.navbar,*/
header {
    background-image: url('../imagenes/home.jpg');
    /* Ruta a la imagen */
    background-size: cover;
    /* Hace que la imagen cubra todo el área */
    background-position: center;
    /* Centra la imagen */
    position: relative;
    background-attachment: fixed;
    /* Mantiene la imagen fija mientras se hace scroll */
    padding-bottom: 0;
    /* Evita que haya un espacio blanco */
}

/* Cabecera */
header {
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

header .lead {
    color: white;
}

/* Navbar */
.navbar {
    z-index: 2;
    padding: 1rem 2rem;
}

.navbar .nav-link {
    background-color: #fff;
    color: #003E77 !important;
}

.navbar .nav-link:hover {
    color: #FFBF00 !important;
    /* Color amarillo mostaza en hover */
}

.nav-item.active .nav-link {
    background-color: #FFB401;
    color: #003E77 !important;
    /* Cambia el color a lo que desees */
    font-weight: bold;
    /* Otras opciones de estilo */
}

/* Estilo menú desplegable*/
.navbar .dropdown-menu {
    position: absolute;
    z-index: 1050;
}

/* Ocultar el icono en pantallas grandes */
.navbar-toggler {
    display: none;
}

/* Mostrar el icono solo en dispositivos móviles y tablets */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
        border: none;
        background: transparent !important;
        padding: 10px;
    }
}
/*
/* Contenedor del icono de hamburguesa 
.navbar-toggler-icon {
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Crear las tres líneas blancas 
.navbar-toggler-icon span {
    display: block;
    background-color: white;
    height: 3px;
    width: 100%;
    position: absolute;
    transition: all 0.3s ease;
}

/* Posicionar cada línea correctamente 
.navbar-toggler-icon span:nth-child(1) {
    top: 0;
}

.navbar-toggler-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon span:nth-child(3) {
    bottom: 0;
}
*/
/* Filtro azul (overlay) en el fondo */
/*.navbar::before,*/
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 28, 61, 0.5), rgba(6, 28, 61, 0.9));
    /* Degradado claro a oscuro del color #061C3D */
    z-index: -1;
}

/* Borde inclinado hacia la derecha */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
    /* Borde inclinado hacia la izquierda */
    z-index: 1;
}


/* Animación para los títulos */
header h1 {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
    margin-top: 250px;
}

header p {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
    margin-bottom: 36px;
}

/* Botones */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.custom-button {
    font-weight: bold;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    min-width: auto;
    display: inline-block;
}

/* Botón "Trabajamos juntos ->" */
.white-btn {
    font-weight: bold;
    background-color: white !important;
    /* Fondo blanco */
    color: #003E77 !important;
    /* Color de texto azul oscuro */
    border: 2px solid #003E77 !important;
    /* Borde azul oscuro */
}

.white-btn:hover {
    background-color: #FFB401 !important;
    /* Fondo amarillo en hover */
    color: white !important;
    /* Texto blanco en hover */
    border-color: #FFB401 !important;
    /* Borde amarillo en hover */
}

/* Titulo Nuestros servicios*/
.h2-nuestros {
    font-size: 2.5rem;
    font-weight: bold;
    color: #003E77;
}

.row.row-cols-md-2{
    align-items: stretch;
}

/* Botón "Nuestros Servicios" */
.black-btn {
    background-color: #FFB401 !important;
    /* Fondo amarillo */
    color: #003E77 !important;
    /* Color de texto azul oscuro */
    border: 2px solid #FFB401 !important;
    /* Borde amarillo */
}

.black-btn:hover {
    background-color: white !important;
    /* Fondo blanco en hover */
    color: #003E77 !important;
    /* Texto azul oscuro en hover */
    border-color: #003E77 !important;
    /* Borde azul oscuro en hover */
}

/* Estilos de servicios */
.service-card {
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* Asegura que todas las tarjetas tengan la misma altura */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h4{
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.pre-jud-title{
    margin-bottom: 50px !important;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Botones "Ver más" */
.btn-lg.black-btn {
    background-color: #FFB401;
    color: #003E77;
    border: 2px solid #FFB401;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-lg.black-btn:hover {
    background-color: white;
    color: #003E77;
}

/* Responsividad */
@media (max-width: 768px) {
    /*.navbar-brand img {
        height: 30px;
    }*/

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .custom-button {
        width: auto;
    }

    .service-card {
        margin-bottom: 15px;
    }
}

/*Sección de Por que nosotros*/
/* Estilos generales */
.nosotros {
    background: url('../imagenes/body.jpg') no-repeat center center/cover;
    padding: 50px 20px;
    margin-top: 100px;
}

.contenedor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo para cada cuadro */
.cuadro {
    background: #061C3D;
    /* Fondo semi-transparente */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    /*display: flex;*/
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    /* Garantiza altura mínima */
}

/* Estilo para el título principal */
.titulo {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

/* Estilo para los subtítulos */
h3 {
    color: #FFB401 !important;
    font-size: 20px;
    /*margin-bottom: 10px;*/
}

/* Estilo para los párrafos (color blanco) */
.cuadro p {
    color: white;
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

/* Diseño Responsivo para sección Por que nosotros */

/* Para tablets (máximo 991px) - Dos columnas */
@media (max-width: 991px) {
    .contenedor {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* Para móviles (máximo 600px) - Una columna */
@media (max-width: 600px) {
    .contenedor {
        grid-template-columns: 1fr;
    }
}

/* Media Query para pantallas pequeñas (dispositivos móviles) */
@media (max-width: 768px) {

    /* Reducimos márgenes en pantallas pequeñas */
    .video-container {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 10px;
        /* Reducimos padding */
        height: auto;
        /* Altura automática para adaptarse al tamaño del contenido */
    }

    /* Hacemos que el video ocupe menos espacio en pantallas móviles */
    .video {
        max-width: 90%;
        /* El video ocupará hasta un 90% del ancho en móviles */
        max-height: 60vh;
        /* El video ocupará hasta el 60% de la altura en móviles */
    }
}


/* Estilo para el video */
.video {
    max-width: 100%;
    /* Asegura que el video no se desborde */
    max-height: 80vh;
    /* Hace que el video no ocupe más del 80% de la altura de la ventana */
    object-fit: contain;
    /* Asegura que se mantenga la resolución sin estirarse */
}

/* Carrusel*/

.h2-carrusel {
    font-size: 2.5rem;
    font-weight: bold;
    color: #003E77;
}

.p-lead-servicios {
    font-size: 1.25rem;
    color: #666;
    margin-top: 20px;
    text-align: justify;
}

.carrusel {
    width: 80%;
    margin: 50px auto;
    overflow: hidden;
}

.carrusel-images {
    display: flex;
    width: max-content;
    animation: mover 20s linear infinite;
}

.logos{
    display: flex;
    width: 100%;
    height: 300px;
    scale: (1.5);
}

.logos img{
    width: 100%;
    height: 100%;
}

/* Fondo gris claro para la caja 
.logo-box {
    width: 170px;
    width: 100%;
    height: 100px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: solid 1px #d3d3d3;
    border-radius: 10px;*/
    /* Esquinas redondeadas 
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* Sombra suave 
}*/

/* Escala de grises para las imágenes */
/*.logo-box img {
    max-width: 95%;
    max-height: 95%;
    filter: grayscale(100%) contrast(100%) brightness(100%);
}*/

@keyframes mover {
    0% {
        transform: translateX(0);
    }

    5% {
        transform: translateX(-110px);
    }

    10% {
        transform: translateX(-220px);
    }

    15% {
        transform: translateX(-330px);
    }

    20% {
        transform: translateX(-440px);
    }

    25% {
        transform: translateX(-550px);
    }

    30% {
        transform: translateX(-660px);
    }

    35% {
        transform: translateX(-770px);
    }

    40% {
        transform: translateX(-880px);
    }

    45% {
        transform: translateX(-990px);
    }

    50% {
        transform: translateX(-1100px);
    }

    55% {
        transform: translateX(-1210px);
    }

    60% {
        transform: translateX(-1320px);
    }

    65% {
        transform: translateX(-1430px);
    }

    70% {
        transform: translateX(-1540px);
    }

    75% {
        transform: translateX(-1650px);
    }

    80% {
        transform: translateX(-1760px);
    }

    85% {
        transform: translateX(-1870px);
    }

    90% {
        transform: translateX(-1980px);
    }

    95% {
        transform: translateX(-2090px);
    }

    100% {
        transform: translateX(-2200px);
    }
}

/*Contátenos*/
.contacto {
    background-color: #FFB401;
}

/*Botón Formulario*/
.col-6.col-md-5.contacto {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 115vh;
    /* Asegura que el contenedor tenga una altura completa */
}

.formulario-contacto {
    background-color: white;
    padding: 25px 15px;
    /* Menor espacio de relleno para hacerlo más pequeño */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    /* Ajuste el tamaño máximo del formulario */
    box-sizing: border-box;
    /*margin: auto;  Centra el formulario en su contenedor */
}

.formulario-contacto .form-control {
    margin-bottom: 15px;
    border-radius: 8px;
}

.formulario-contacto .btn-formulario {
    background-color: #003E77;
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    width: 100%;
}

.formulario-contacto .form-text {
    font-size: 12px;
    color: gray;
}

.h2-contacto {
    font-size: 2rem;
    font-weight: bold;
    color: #003E77;
}

.p-lead {
    font-size: 1rem;
    font-weight: bold;
    color: #003E77;
    margin-top: 20px;
}

/* Estilos responsivos para móvil */
@media (max-width: 767px) {

    /* Hacer que el contenedor de contacto ocupe todo el ancho*/
    .col-6.col-md-5.contacto {
        width: 100%;
        padding-left: 15px;
    }

    /* Hacer que el contenedor de footer ocupe todo el ancho*/
    .col-sm-6.col-md-7.footer {
        width: 100% !important;
        padding: 0;
    }

    .formulario-contacto {
        padding: 30px;
        /* Reduce el padding en pantallas pequeñas */
        max-width: 100%;
        /*antes 90% El formulario ocupará el 90% del ancho de la pantalla */
        margin-top: 15px;
    }

    /* Asegura que el texto dentro del formulario también se ajuste */
    .formulario-contacto .form-control {
        font-size: 14px;
        /* Reducir el tamaño de fuente de los campos en pantallas pequeñas */
    }

    .formulario-contacto .btn-formulario {
        font-size: 14px;
        /* Reducir el tamaño de fuente del botón en pantallas pequeñas */
    }

    /* Asegurar que el texto de ayuda (emailHelp) se muestre correctamente */
    .formulario-contacto .form-text {
        font-size: 12px;
        color: gray;
        text-align: center;
        /* Centrar el texto de ayuda */
    }

    /* Hacer que el logo o footer se ajuste bien a la pantalla */
    .footer {
        text-align: center;
        padding: 15px 0;
    }

    .footer h3 {
        font-size: 1.2rem;
        color: white;
    }
}

/* Para pantallas de tabletas (768px a 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {

    .col-6.col-md-5.contacto,
    .col-sm-6.col-md-7.footer {
        width: 100%;
        padding-left: 15px;
    }

    .formulario-contacto {
        padding: 15px;
        max-width: 100%;
        /* El formulario ocupará el 100% del ancho de la pantalla */
    }
}

.formulario-contacto .black-btn {
    background-color: #003E77 !important;
    /* Fondo amarillo */
    color: white !important;
    /* Color de texto azul oscuro */
    border: 2px solid #003E77 !important;
    /* Borde amarillo */
}

.formulario-contacto .black-btn:hover {
    background-color: white !important;
    /* Fondo blanco en hover */
    color: #003E77 !important;
    /* Texto azul oscuro en hover */
    border-color: #003E77 !important;
    /* Borde azul oscuro en hover */
}

/* Footer */
.footer {
    padding: 20px;
    background-color: #003E77;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra los elementos */
    width: 100%;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 292px;
    height: 54px;
    margin-top: 80px;
    margin-bottom: 80px;
}

.footer-icons {
    display: flex;
    gap: 20px;
    margin-left: 30px;
    /* Añadir un margen entre el logo y los iconos */
}

.footer-icon {
    width: 44px;
    height: 44px;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: white;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    margin: 0;
    font-size: 16px;
    /*white-space: nowrap;  Evita que el texto se divida en varias líneas */
}

.footer-info i {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.footer-columns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    /* Limitar el tamaño máximo */
    margin-top: 20px;
}

.footer-column {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin: 5px 0;
}

.footer-column li a {
    text-decoration: none;
    color: #838E9E;
    font-size: 16px;
}

.footer-column li a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

/* Estilos responsivos para móvil */
@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo img {
        padding-top: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
    }

    .footer-icons {
        margin-left: 0;
        margin-top: 10px;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-info {
        flex-direction: column;
        align-items: center; /* Centra el contenido */
        text-align: center;
    }

    .footer-info p {
        justify-content: center;
        width: 100%;
    }

    .footer-info i {
        align-self: flex-start; /* Alinea el icono arriba */
        position: relative;
        top: 3px; /* Ajusta la posición del icono */
        right: 10px;
    }
}

/* Iconos RRSS*/

.social-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}
.social-icons img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-iso {
    position: fixed;
    bottom: 50px;
    left: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.logo-iso a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}
.logo-iso img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}