/* Estilos globales */
:root {
    --md-typeset-a-color: #006494;
}

.md-header, .md-tabs {
    background-color: #004D74 !important;
}

.md-tabs {
    background-color: #FFFFFF !important;
    color: #004D74 !important;
}

.md-nav__item .md-nav__link--active {
    color: #1B98E0 !important;
}

h2 {
    margin-top: 3em !important;
}

h3, h4 {
    margin-top: 2.4em !important;
}

.PageDescription, .page-description {
    font-size: 18px;
    font-weight: 300;
}

.home-card {
    width: 44%;
    float: left;
    margin: 0 3%;
    font-size: 16px;
    font-weight: 300;
}

.home-card a {
    font-weight: 400;
}

.home-slider {
    position: absolute;
    top: 10%;
    right: 0;
    z-index: 0;
}

.home-teaser {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.home-teaser-inner {
    width: 50%;
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    justify-content: flex-start;
}

.home-teaser-img {
    width: 475px;
}

.color-grid {
    display: flex;
}

.color-grid_swatch {
    float: left;
    width: 18%;
    padding: 20px 10px;
}

.color-grid_swatch span {
    display: grid;
    font-size: small;
}

.text-white {
    color: #ffffff;
}

.image-location {
    position: center;
    width: 50%;
}

/* Clase para imágenes*/
.icon {
    width: 58px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.icon-small {
    width: 15px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.icon-medium {
    width: 24px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.text-image {
    width: 158px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.text-small {
    width: 130px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.text-image-large {
    width: 120px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.text-image-medium {
    width: 74px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.text-image-small {
    width: 64px;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.box-notify-images {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

.banner {
    width: 600px;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 20px;
    gap: 24px;
}

/* Estilo para las tarjetas */
.home-card-margin-block {
    width: calc(33.33% - 20px);
    border: 0px
}

.home-card-margin {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Contenedor de la imagen */
.card-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 0px;
    justify-content: center;
    align-items: center;
}

.img-cont-wrp {
display: inline-block;
width: 50%;
text-align: center;
}

/* Estilo para el contenido de las tarjetas */
.title-p {
    font-size: 16px;
}

/* Estilo para el título en las tarjetas */
.title-p {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0;
    color: #333;
}

/* Estilos para el lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 4);
    z-index: 1000;
    text-align: center;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mostrar el lightbox */
.lightbox.show {
    display: block;
    opacity: 1;
}

/* Contenedor para la imagen dentro del lightbox */
.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 95%;
    max-height: 95%;
}

/* Estilo para la imagen dentro del lightbox */
.lightbox img {
    max-width: 100%;
    object-fit: contain;
}

/* Estilo para el botón de cierre del lightbox */
.lightbox .close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0%;
    outline: none;
    z-index: 1001;
}

/* Estilo para desactivar el scroll del fondo */
.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Estilos para el zoom y efecto al pasar el mouse sobre la imagen */
.lightbox-content img {
    transform: scale(1); /* Estado normal */
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-content img.zoomed {
    transform: scale(2); /* Zoom al 200% */
    cursor: zoom-out;
}

.lightbox-content img {
    max-width: 100%;
    transition: transform 0.3s ease;
    object-fit: contain;
    cursor: pointer;
}

/* Estilos para los controles de zoom */
.controls-lightbox {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    width: 180px;
    height: 80px;
}

.zoom-controls {
    display: flex;
    gap: 10px;
}

.zoom-button {
    background-color: #0170AE;
    border: none;
    padding: 7px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.zoom-button:hover {
    background-color: #015b8b;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.zoom-in,
.zoom-out {
    font-size: 20px;
    color: #FFFFFF;
}

.reset-zoom {
    font-size: 18px;
    color: #FFFFFF;
}

/*Estilo de listas personalizadas*/
.custom-list-item {
    display: flex;
    align-items: center;
    margin: 0.5em 0;
    list-style: none;
    padding-left: 10px;
}

.custom-list-item a {
    text-decoration: none;
    color: inherit;
}

.custom-list-item .twemoji,
.custom-list-item .material-icons {
    margin-right: 0.5em;
}

/* Media Queries para Responsividad */
@media (min-width: 771px) {
    .home-teaser {
        flex-direction: row-reverse;
    }
    .home-teaser-inner {
        width: 70%;
        order: 1;
    }
    .home-teaser-img {
        order: 2;
        width: 475px;
    }
    .banner {
        width: 500px;
    }
    .home-card-margin {
        margin-bottom: 4px;
        margin-right: 4px;
    }

    .image-container {
        max-width: 50%;
    }

    .img-crop {
        width: 100%;
        top: -45px;
        left: 0%;
        transform: translate(-0%, -0%);
    }
    .space-for-big-screens {
        display: none;
    }    
    
}

/* Pantallas medianas */
@media (max-width: 770px) {
    .home-teaser {
        flex-direction: column;
    }
    .home-teaser-inner {
        width: 100%;
        margin-bottom: 20px;
        order: 2;
    }
    .home-teaser-img {
        max-width: 90%;
        height: auto;
        order: 1;
    }
    .img-container {
        max-width: 600px;
    }
    .img-crop {
        width: 100%;
        top: -45px;
        left: 0%;
        transform: translate(-0%, -0%);
    }

    .container {
        justify-content: center;
        padding-bottom: 0;
        gap: 0px;
    }
    
    .home-card-margin {
        width: 100%;
        margin-bottom: 12px;
    }

}
