@import "/assets/iconos/style.css";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;600;800;900&display=swap");
@import "/assets/fuentes/redemtion.css";

* {
    font-family: "Montserrat", sans-serif;
}

body {
    background: #efefef;
}
img {
    max-width: 100%;
}

header {
    z-index: 9;
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    background: #fff;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}

header.headerazul {
    background: rgba(0,17, 86, 0.8);
}

header .logo {
    height: 80px;
}
header nav ul,
.header nav ul {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
}

header nav ul li,
.header nav ul li {
    display: table-cell;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}
header nav ul li a,
.header nav ul li a {
    display: block;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    color: #001156;
    padding: 10px;
}
header.headerazul nav ul li a {
    color: #fff;
}

header nav ul li a:hover,
.header nav ul li a:hover {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}
.espacio-header {
    height: 60px;
}

footer {
    background: #333;
}

footer .informacion {
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: left;
    font-size: 16px;
    color: #333;
    font-weight: 700;
}
footer .copy {
    background: #001156;
    color: #fff;
    font-weight: 300;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}
footer h4 {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
}
footer ul,
footer ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer ul li a {
    font-weight: 300;
    color: #fff !important;
    font-size: 14px;
}

footer .informacion-footer {
    color: #fff;
    text-align: right;
    font-size: 14px;
    font-weight: 300;
}

footer .logo {
    height: 100px;
}
footer .informacion-footer .email {
    font-size: 14px;
}
footer .redes {
    margin-top: 10px;
}
footer .redes a {
    background: #001156;
    color: #fff;
    font-size: 20px;
    width: 35px;
    height: 35px;
    text-align: center;
    border-radius: 5em;
    display: inline-block;
    padding-top: 3px;
    margin-left: 10px;
}

.intro-servicios h2 {
    color: #666;
    text-align: left;
    font-weight: 700;
    margin: 0;
    border-bottom: 1px solid #001156;
    padding: 30px;
}

.intro-servicios h3 {
    color: #001156;
    text-align: center;
    font-weight: 700;
    margin: 0;
    padding: 30px;
}

#carouselHome {
    position: relative;
}

#carouselHome .carousel-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
#carouselHome .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
#carouselHome .carousel-item .contenido-banner {
    position: absolute;
    top: 35%;
    width: 800px;
    left: 50%;
    margin-left: -400px;
    text-align: center;
    font-size: 16px;
}
#carouselHome .carousel-item .contenido-banner h2 {
    color: #fff;
    font-size: 65px;
    text-shadow: 1px 1px 2px #000;
    /*background: rgba(255, 255, 255, 0.8);*/
    padding: 0px;
    display: block;
    border-radius: 1em;
    font-family: "Redemtion";
    font-weight: normal;
    font-style: normal;
}

#carouselHome .carousel-item .contenido-banner .btn-azul {
    background: #001156;
    color: #fff;
    padding: 20px;
    font-size: 20px;
    border-radius: 0.5em;
    margin-top: 15px;
    display: inline-block;
}
#carouselHome .carousel-item .contenido-banner h2 * {
    font-family: "Redemtion";
}

#carouselHome .carousel-item .contenido-banner h2 p {
    padding: 0;
    margin: 0;
}
#carouselHome .carousel-item .contenido-banner .descripcion {
    color: #fff;
    font-size: 25px;
}
#carouselHome .carousel-item .contenido-banner .descripcion a {
    color: #fff;
    font-weight: 800;
    /*text-shadow: 0 0 5px #fff;*/
}
#carouselHome .carousel-control-next,
#carouselHome .carousel-control-prev {
    color: #fff;
}

.comolohacemos {
    padding: 20px;
    -webkit-box-shadow: 0 0 20px 10px #d9d9d9;
    box-shadow: 0 0 20px 10px #d9d9d9;
    margin-bottom: 30px;
    background: #fff;
}
.caja-hacemos {
    padding: 5px;
    text-align: center;
}
.caja-hacemos img {
    max-height: 80px;
}
.caja-hacemos h2 {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-transform: uppercase;
    margin-top: 10px;
}
.padding-content {
    padding-top: 50px;
    padding-bottom: 50px;
}
.titulo-verde {
    color: #3f7e76;
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 10px;
}

.descripcion {
    font-size: 18px;
}

.descripcion ul {
    list-style-image: url(../images/vineta.png);
}
.descripcion h2 {
    color: #001156;
    font-size: 22px;
    font-weight: 800;
    margin-top: 20px;
}

.descripcion h3 {
    color: #001156;
    font-size: 20px;
    font-weight: 800;
    margin-top: 20px;
}
.descripcion h4 {
    color: #000;
    font-size: 14px;
    font-weight: 800;
    margin-top: 15px;
    display: block;
}

.descripcion .btgrid .row {
    margin-top: 20px;
}

.descripcion table {
    width: 100%;
}
.descripcion table td {
    padding: 10px;
}
.descripcion table p {
    padding: 0;
    margin: 0;
}

.botones-servicios {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

.botones-servicios ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
}

.botones-servicios li {
    list-style: none;
    margin: 0;
    margin-bottom: 10px;
    padding: 0;
    display: inline-block;
    width: 33%;
    vertical-align: middle;
}
.botones-servicios li a {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    background: #fff;
    -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    border-radius: 0.5em;
    height: 80px;
    justify-content: center;
    align-items: center;
    width: calc(100% - 10px);
    margin: 5px;
    text-transform: uppercase;
}
.botones-servicios li a:hover,
.botones-servicios li a.activo {
    background: #001156;
    color: #fff;
    text-decoration: none;
}
.botones-servicios.fijo {
    left: 0;
}
.botones-servicios.fijo ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: table;
    background: #fff;
    -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
    width: 100%;
    border-radius: 0.5em;
    overflow: hidden;
    position: relative;
}
.botones-servicios.fijo li {
    display: table-cell;
    vertical-align: middle;
    width: auto;
    border-left: 1px solid #ccc;
}
.botones-servicios.fijo li a {
    padding: 5px;
    text-align: center;
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: #666;
    height: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}
.botones-servicios.fijo li:first-child {
    border: 0;
}
.botones-servicios.fijo li.activo {
    background: #001156;
}
.botones-servicios.fijo li a.activo {
    background: #001156;
    color: #fff;
}
.botones-servicios.fijo li:hover {
    background: #001156;
}
.botones-servicios.fijo li:hover a {
    color: #fff;
    text-decoration: none;
    border-radius: 0;
}

.menu-responsive {
    display: block;
    text-align: right;
    font-size: 30px;
    color: #001156 !important;
    text-shadow: 0 0 2px #ffffff;
}

nav .menu-responsive {
    padding-right: 20px;
}

.mensaje-contacto {
    text-align: center;
    font-size: 19px;
    margin-bottom: 15px;
    padding: 10px;
    color: #001156;
    font-weight: 800;
}

/* Contenedor principal */
.grid-gallery {
    display: grid;
    gap: 0px;
    width: 100%;
    grid-auto-rows: minmax(250px, auto);
}

/* Estilos generales de los items */
.grid-gallery .grid-gallery-item {
    overflow: hidden;
    position: relative;
    background: no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 1 elemento → 1 columna */
.grid-container-1 {
    grid-template-columns: 1fr;
}

/* 2 elementos → 2 columnas iguales, mínimo 50% cada uno */
.grid-container-2 {
    grid-template-columns: repeat(2, minmax(50%, 1fr));
}

/* 3, 6, 9... elementos → Estructura: 1 grande + 2 pequeños */
.grid-container-3,
.grid-container-6,
.grid-container-9,
.grid-container-12 {
    grid-template-columns: minmax(50%, 2fr) minmax(50%, 1fr);
}

.grid-container-3 .grid-gallery-item:nth-child(1),
.grid-container-6 .grid-gallery-item:nth-child(1),
.grid-container-6 .grid-gallery-item:nth-child(4),
.grid-container-9 .grid-gallery-item:nth-child(1),
.grid-container-9 .grid-gallery-item:nth-child(4),
.grid-container-9 .grid-gallery-item:nth-child(7),
.grid-container-12 .grid-gallery-item:nth-child(1),
.grid-container-12 .grid-gallery-item:nth-child(4),
.grid-container-12 .grid-gallery-item:nth-child(7),
.grid-container-12 .grid-gallery-item:nth-child(10) {
    grid-row: span 2;
}

/* 4 elementos → 2 columnas con 2 elementos cada una */
.grid-container-4 {
    grid-template-columns: repeat(2, minmax(50%, 1fr));
}

/* 5 elementos → Combinación de 3 (1 grande + 2 pequeños) y 2 en la fila inferior */
.grid-container-5 {
    grid-template-columns: minmax(50%, 2fr) minmax(50%, 1fr);
}

.grid-container-5 .grid-gallery-item:nth-child(1) {
    grid-row: span 2;
}

.grid-container-5 .grid-gallery-item:nth-child(2),
.grid-container-5 .grid-gallery-item:nth-child(3) {
    grid-column-start: 2;
}

.grid-container-5 .grid-gallery-item:nth-child(4),
.grid-container-5 .grid-gallery-item:nth-child(5) {
    grid-column: span 2;
}

/* 7 elementos → Combinación de 3 y 4 */
.grid-container-7 {
    grid-template-columns: minmax(50%, 2fr) minmax(50%, 1fr);
}

.grid-container-7 .grid-gallery-item:nth-child(1) {
    grid-row: span 2;
}

.grid-container-7 .grid-gallery-item:nth-child(2),
.grid-container-7 .grid-gallery-item:nth-child(3) {
    grid-column-start: 2;
}

.grid-container-7 .grid-gallery-item:nth-child(4),
.grid-container-7 .grid-gallery-item:nth-child(5) {
    grid-column: span 2;
}

.grid-container-7 .grid-gallery-item:nth-child(6),
.grid-container-7 .grid-gallery-item:nth-child(7) {
    grid-column: span 2;
}

/* 8 elementos → 6 + 2 */
.grid-container-8 {
    grid-template-columns: minmax(50%, 2fr) minmax(50%, 1fr);
}

.grid-container-8 .grid-gallery-item:nth-child(1),
.grid-container-8 .grid-gallery-item:nth-child(4) {
    grid-row: span 2;
}

.grid-container-8 .grid-gallery-item:nth-child(2),
.grid-container-8 .grid-gallery-item:nth-child(3),
.grid-container-8 .grid-gallery-item:nth-child(5),
.grid-container-8 .grid-gallery-item:nth-child(6) {
    grid-column-start: 2;
}

.grid-container-8 .grid-gallery-item:nth-child(7),
.grid-container-8 .grid-gallery-item:nth-child(8) {
    grid-column: span 2;
}



.grid-gallery .grid-gallery-item::before {
    content: "";
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}
.grid-gallery .grid-gallery-item h3 {
    color: #fff;
    font-size: 20px;
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-weight: 700;
    z-index: 2;
}
.grid-gallery .grid-gallery-item .caption {
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 60px;
    z-index: 1;
    overflow: hidden;
    -webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}

.grid-gallery .grid-gallery-item:hover .caption {
    top: 0;
}
.grid-gallery .grid-gallery-item .caption .descripcion {
    position: absolute;
    width: 100%;
    bottom: 80px;
    left: 0;
    padding: 30px;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.banner-contenido {
    display: block;
    padding-top: 100px;
    padding-bottom: 30px;
    background: repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    text-align: left;
    position: relative;
    min-height: 400px;
}
.banner-contenido::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    top: 0;
    left: 0;
}
.banner-contenido h2,
.banner-contenido h1 {
    width: 500px;
    max-width: 100%;
    font-weight: 800;
    position: absolute;
    z-index: 1;
    color: #fff;
    bottom: 30px;
}

.botones-nosotros {
    margin-bottom: 10px;
    display: block;
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 0.5em;
    color: #666666;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
    -webkit-transition: all 500ms ease-in-out;
    -moz-transition: all 500ms ease-in-out;
    -ms-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
}
.botones-nosotros:hover {
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    color: #001156;
    text-decoration: none;
}
.botones-nosotros.activo {
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    color: #fff;
    background: #001156;
    text-decoration: none;
}

.introduccion-nosotros {
    font-weight: 800;
    font-size: 25px;
    border-bottom: 1px solid #001156;
    margin-bottom: 30px;
    color: #666;
}

.box-servicio {
    border-radius: 0.5em;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}
.box-servicio .descripcion-contenido {
    padding: 20px;
}

.box-servicio .imagen {
    display: block;
    height: 400px;
    background: no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.box-servicio .descripcion-contenido .titulo-contenido {
    color: #000;
    font-size: 28px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}

#form-contacto {
    display: inline-block;
    text-align: left;
    background: #fff;
    padding: 20px;
    padding-top: 0;
    border: 0px solid #ccc;
    width: 500px;
    -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

#form-contacto .form-control {
    border-color: #ccc;
    resize: none;
}
#form-contacto label {
    color: #001156;
    font-weight: 800;
}

.btn-azul {
    background: #001156;
    padding: 5px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 0.5em;
    border: 0;
    color: #fff;
    font-weight: 800;
}

.fondo-blanco {
    background: #fff;
}

.titulo-azul {
    color: #001156;
    font-weight: 800;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn-azul {
    background: #001156;
    color: #fff;
    border-radius: 0.5em;
    display: inline-block;
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
}

.box-articulo {
    display: block;
    height: calc(100% - 30px);
    border: 1px solid #ccc;
    margin-bottom: 30px;
}
.box-articulo:hover {
    text-decoration: none;
}
.box-articulo .image {
    background: no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    display: block;
    height: 250px;
}

.box-articulo .info {
    padding: 20px;
    color: #333;
    font-size: 12px;
}

.box-articulo .info h2 {
    font-weight: bold;
    font-size: 14px;
    color: #001156;
}

.btn-servicio {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.5em;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}
.btn-servicio span {
    display: block;
    background: #001156;
    color: #fff;
    padding: 10px;
    font-size: 15px;
}

.description-servicio {
    border-radius: 0.5em;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
}

@media (max-width: 990px) and (min-width: 0px) {
    footer {
        text-align: center;
    }

    footer h4 {
        margin-top: 20px;
    }

    footer .informacion-footer {
        text-align: center;
    }

    .botones-servicios li {
        width: 48%;
    }

    .botones-servicios.fijo li a {
        font-size: 12px;
    }

    footer .informacion {
        text-align: center;
    }
}
@media (max-width: 768px) and (min-width: 0px) {
    header .logo {
        height: auto;
        max-width: 100%;
        max-height: 54px;
        margin-top: 10px;
    }

    header nav {
        position: fixed;
        width: 250px;
        height: 100%;
        right: 0;
        top: 0;
        max-width: 100%;
        background: #fff;
        padding: 5px;
        display: none;
        -webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    }
    header nav ul,
    header nav ul li {
        display: block;
    }
    header nav ul li a,
    header.headerazul nav ul li a {
        color: #001156;
    }

    #carouselHome .carousel-item .contenido-banner {
        width: 90%;
        margin-left: -45%;
    }

    .botones-servicios li {
        width: 100%;
    }
    .botones-servicios li a {
        height: auto;
        font-size: 16px;
        padding: 10px;
        display: block;
    }
    .botones-servicios.fijo {
        display: block;
        width: 100%;
        position: relative !important;
        z-index: 2;
        top: 0 !important;
    }

    .botones-servicios.fijo ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block;
        text-align: center;
        background: transparent;
        position: relative;
        box-shadow: none;
    }

    .botones-servicios.fijo li {
        display: block;
        border-left: 0;
        margin-bottom: 15px;
    }
    .botones-servicios.fijo li.activo {
        background: transparent;
    }
    .botones-servicios.fijo li:hover {
        background: transparent;
    }
    .botones-servicios.fijo li a {
        padding: 10px;
        display: block;
        background: #fff;
        -webkit-box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
        box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.5);
        text-align: center;
        font-size: 16px;
        font-weight: 800;
        color: #333;
        border-radius: 0.5em;
        height: auto;
        margin: 5px;
    }
    .botones-servicios li a:hover {
        background: #001156;
        color: #fff;
        text-decoration: none;
    }

    .box-servicio .imagen {
        height: 200px;
    }

    .banner-contenido {
        min-height: 200px;
    }

    .banner-contenido h2,
    .banner-contenido h1 {
        width: 100%;
        display: block;
        font-size: 23px;
        text-align: center;
        left: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .padding-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .introduccion-nosotros {
        font-size: 18px;
    }
    .descripcion {
        font-size: 16px;
    }
    #carouselHome .carousel-item .contenido-banner h2 {
        font-size: 40px;
        margin: 0;
    }
    #carouselHome .carousel-item .contenido-banner h2 p {
        padding: 0;
        margin: 0;
    }
    #carouselHome .carousel-item .contenido-banner .descripcion {
        color: #fff;
        font-size: 20px;
    }

    #carouselHome .carousel-item .contenido-banner .btn-azul {
        padding: 10px;
        font-size: 16px;
    }

    .intro-servicios h2 {
        font-size: 25px;
        text-align: center;
    }

    .grid-gallery .grid-gallery-item {
        width: 50% !important;
        height: 200px !important;
    }

    .grid-gallery .grid-gallery-item .caption {
        display: none;
    }

    footer .informacion {
        text-align: center;
    }
    .descripcion table {
        font-size: 12px;
    }
    .descripcion table th {
        width: auto !important;
    }
    .descripcion table thead {
        font-size: 11px;
    }
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr) !important; /* Siempre 2 columnas */
    }
}
@media (max-width: 576px) and (min-width: 0px) {
    .intro-servicios h2 {
        font-size: 20px;
    }
    .intro-servicios h3 {
        font-size: 18px;
    }
    .grid-gallery .grid-gallery-item {
        width: 100% !important;
        height: 200px !important;
    }
    .grid-gallery {
        grid-template-columns: 1fr !important; /* Siempre 1 columna */
    }
}
