:root{
    /*! Paleta de colores */
    --principal:#375292;
    --principal_oscuro:rgb(19, 32, 52);
    --secundario: #213258;
    --resalte_1:#5faff5;
    --resalte_2:#b59c74;
    --soporte_1:#9cadcf;
    --soporte_2:#8a7b62;
    --fondo:white;
    --texto:#171717;

    /*! Texto */
    font-family: "Red Hat Display", 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-optical-sizing: auto;

    /*! Tamaños de texto */
    --texto-xxl: 5rem;    /* Para títulos principales (h1) */
    --texto-xl: 3rem;    /* Para títulos secundarios (h2) */
    --texto-lg: 2.5rem;  /* Para subtítulos importantes (h2) */
    --texto-md: 2rem;    /* Para secciones destacadas (h3) */
    --texto-sm: 1.5rem;  /* Para textos generales (p, h4) */
    --texto-xs: 1.2rem;  /* Para detalles secundarios (h5, h6, spans) */
    --texto-xxs: 1rem;   /* Para textos auxiliares y etiquetas */

    /*! Espaciado */
    --line-height-normal: 1.5;
    --line-height-relajado: 1.8;
    --espaciado-letras: 0.02em;

    /*! Grosor de fuentes */
    --w-light: 200;
    --w-regular: 400;
    --w-medium: 500;
    --w-bold: 700;
    --w-black: 900;

    /*! CardGallery */
    --cg-h:35em;

    
}
*{
    scroll-behavior: smooth;
}
/*! Textos */
h1 {
    font-size: var(--texto-xl);
    font-weight: var(--w-light);
    line-height: var(--line-height-relajado);
    letter-spacing: var(--espaciado-letras);
    text-transform: uppercase;
    cursor:default;
}

h2 {
    font-size: var(--texto-xl);
    font-weight: var(--w-light);
    text-transform: uppercase !important;
    cursor:default;
}

h3{
    font-size: var(--texto-sm);
    font-weight: var(--w-light);
    color: var(--principal);
    text-transform: uppercase;
    cursor:default;
}

p {
    font-size: var(--texto-sm);
    font-weight: var(--w-light);
    line-height: var(--line-height-normal);
    cursor:default;
}
a{
    color: var(--texto);
    text-decoration: none;
}
hr{
    width: 100%;
}
ul{
    list-style: none;
}
.md-text{
    font-size: var(--texto-md);
}
.small-text {
    font-size: var(--texto-xs);
    font-weight: var(--w-light);
}
.cite-text {
    max-width: 1250px;
    font-size: 1.7em;
    font-weight: 200;
    line-height: var(--line-height-relajado);
    color:var(--texto);
    padding-bottom: 1.5em;
    border-bottom: solid 2px var(--principal);
}
.type5 .cite-text {
    border-bottom: 0;
}
.ghost-text{
    color: var(--soporte_1);
    font-size: var(--texto-xxs);
    font-weight: var(--w-light);
    opacity: 0.9;
}

/*! Estilos individuales */
.row{
    display: flex !important;
    flex-direction: row !important;
}
.column{
    display: flex !important;
    flex-direction: column !important;
}
.fw-w{
    flex-wrap: wrap;
}
.fg-2{
    flex-grow: 2 !important;
}
.minw-70{
    min-width: 68%;
}
.minw-60{
    min-width: 58%;
}
.minw-45{
    min-width: 45%;
}
.minw-40{
    min-width: 45%;
}
.minw-30{
    min-width: 28%;
}
.mw-30{
    max-width: 30%;
}
.mw-40{
    max-width: 40%;
}
.mw-45{
    max-width: 45%;
}
.mw-50{
    max-width: 50%;
}
.mw-60{
    max-width: 60%;
}
.mw-70{
    max-width: 70%;
}
.mw-80{
    max-width: 80%;
}
.mnh-40t{
    min-height: 40dvh;
}
.of-h{
    overflow: hidden !important;
}
.of-x-h{
    overflow-x: hidden !important;
}
.of-y-h{
    overflow-y: hidden !important;
}
.of-x-a{
    overflow-x: auto;
}
.of-y-a{
    overflow-y: auto;
}
.of-x-s{
    overflow-x: scroll;
}
.of-y-s{
    overflow-y: scroll;
}
.ai-c{
    align-items: center !important;
}
.jc-c{
    justify-content: center !important;
}
.jc-s{
    justify-content: start  !important;
}
.jc-sb{
    justify-content: space-between!important;
}
.ta-c{
    text-align: center !important;
}
.g-1{
    gap: 1em;
}
.pblock-1{
    padding-block: 5em !important;
}
.pblock-2{
    padding-block: 8em !important;
}
.pinline-4{
    padding-inline: 4em !important;
}
.pt-1{
    padding-top: 3em !important;
}
.pt-2{
    padding-top: 5em !important;
}
.pb-1{
    padding-bottom: 3em !important;
}
.pb-2{
    padding-bottom: 5em !important;
}
.mt-1a{
    margin-top: 1.5em !important;
}
.mt-1{
    margin-top: 3em !important;
}
.mt-2{
    margin-top: 5em !important;
}
.mblock-1{
    margin-block: 3em !important;
}
.mb-0{
    margin-bottom:0 !important;
}
.mb-1{
    margin-bottom: 2em !important;
}
.ml-1{
    margin-left: 1em;
}
.c-principal{
    color: var(--principal);
}
.position-s{
    position: sticky !important;
}
/*? Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
/*! Body */
body {
    height: 100dvh;
    overflow-x: hidden;
    background-color: var(--principal_oscuro);
    color: var(--texto);
    scroll-behavior: smooth;
    vertical-align: baseline;
    
}
body, html {
    position: relative;
}
/*! Capa 1 */
.type5{
    background-image: url("../img/SRFII-007.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
footer, .type5{
    bottom: 0;
    left: 0;
    width: 100%;
    color:white;
    min-height:15em;
    padding-block: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-inline: 1.5em;
    position: relative;
    overflow: hidden;
    max-width: none !important;
}
.type5 .seccion-content .sc-item>*, .type5 a, .type5 h3{
    color: white !important;
    
}
footer::after, .type5::after{
    bottom: 0;
    left: 0;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.type5::after{
    background-color: #071631ba;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.812), #2f2f2f66, rgba(0, 0, 0, 0.662));
    backdrop-filter: blur(20px);
}
.type5 button{
    border-radius: 20px;
}
footer::after{
    background-color: #0e1420;
}


footer>.f-content, .type5>.seccion-content {
    position: relative;
    width: 95%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
}
footer>.f-content>*{
    width: 100%;
    height: 33%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
footer>.f-content>*:not(:last-child){
    border-bottom: solid 1px rgba(46, 65, 94, 0.979);
}
.f-logo img{
    height: 4em;
    filter: brightness(100) grayscale(100%);
    margin-block: 1em;
}
.f-elements ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.4em;
    margin-top: 1em;
}
.f-elements ul li a:not(:hover){
    opacity: 0.5;
}
.f-elements ul li a{
    color: rgb(255, 255, 255) !important;
}
.f-sm i{
    color: white;
    font-size: 1.3em;
    margin: 0.2em;
}
.f-sm i:not(:hover){
    opacity: 0.6;
}
.loader{
    content: "";
    position: fixed;
    z-index: 100000;
    width: 100dvw;
    height: 100dvh;
    background-color: #03080fe4;
    backdrop-filter: blur(50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: ease-in-out 0.5s;
}
.loader img{
    filter: grayscale(100%) brightness(100);
    height: 7em;
}
.loader.hidden {
    opacity: 0;
    pointer-events: none;
}
/*! Capa 2 */
main{
    background-color: transparent;
    height: 100dvh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
.contenedor{
    min-height: 100dvh;
    background-color: var(--fondo);
    scrollbar-color: var(--principal);
    scrollbar-width: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
}
.remate{
    position: relative;
    min-height: 100dvh;
    height: 100dvh;
    width: 100dvw;
    margin-bottom: 5em;
    
    overflow: hidden;
    display: flex;
    align-items: end;
    justify-content: center;
    background-color: black;
    background-size: cover;
    background-position: bottom;
    box-shadow: 0px 7px 20px 2px #00000073;
    transition: background  2s ease-in-out;
}
.remate .texto {
    position: relative;
    z-index: 2;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: center;
    padding: 0 1.5em;
    width: 100dvw;
    min-height: 55em;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%,  transparent 70%);
    
}
.remate .texto h2,
.remate .texto p {
    transition: opacity 0.5s ease-in-out;
}
.remate .texto .bi{
    font-size: var(--texto-lg);
    padding: 0.3em 0;
    opacity: 1;
}
.remate .texto h2{
    text-transform: uppercase;
}
/*? Remate-Video */
.remate  video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--texto);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.seccion{
    padding:0 3em;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    max-width: 1600px;
    width: 100dvw;
    overflow: hidden;
    z-index: 1;
    
}
.seccion-content{
    flex-wrap: wrap;
    width: 100%;
    z-index: 1;
}
.seccion-content ul,.seccion-content ol {
    font-size: var(--texto-xs);
    font-weight: var(--w-light);
}
.seccion-content a{
    color: var(--texto) !important;
    font-weight: var(--w-light) !important;
    text-shadow: none;
    border-bottom: solid 1px transparent;
}
.seccion-content a:hover{
    border-color: var(--resalte_1);

}
.noBorder{
    border: 0 !important;
}
.sc-item{
    flex-grow: 1;
    z-index: 1;
    padding:0.8em;
}
.sc-item picture{
    height: 27em;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.437);
    display: flex;
    border-radius: 10px;
}
.sc-item picture > img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    
}
.slideshow {
    position: relative;
    width: 100%;
    height: 27em;
}

.slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.ld-i{
    border-left: solid 1px var(--soporte_1);
}
.ld-d{
    border-right: solid 1px var(--soporte_1);
}

.iconE{
    height: 6em;
    transition: ease 0.35s;
}
.iconF{
    height: 7.5em;
    width: auto;
}
.sc-item:hover .iconE:not(:hover){
    opacity: 0.9;
    transform: scale(0.96);
}
.type2{
    position: relative;
    transition: background-image 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    color: white;
    padding-block: 2em;
    max-width: none !important;
    width: 93.6dvw; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: 3em;
    border-radius: 10px;
}
.type2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d1930de; /* Oscurecimiento */
    backdrop-filter: blur(50px); /* Desenfoque */
    z-index: 0;
    
}
.type2 h3{
    color: white;
    font-weight: 400;
}
.type2 .seccion-content{
    max-width: 1600px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.type3{
    background:whitesmoke;
}
.card{
    min-height: 16em;
    min-width: 15em;
    background-color: white;
    border-radius: 8px;
    color:var(--secundario);
    transition: ease-in-out 0.45s;
    padding: 1em;
}
.card:not(:hover){
    transform: scale(0.98) !important;
}
.card:hover{
    color: var(--principal);
}
.card i{
    font-size: var(--texto-xl);
}
.sc-item>.card-gallery{
    height: 100%;
    width: 32%;
    min-width: 20em;
    flex-grow: 1;
    background-color: var(--fondo);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap:1em;
    box-shadow: 0px 0px 10px #00000022;
    margin: 0.3em;
    padding-bottom: 1.5em;
    border-radius: 15px;
    transition:   ease-in-out 0.4s;
    overflow: hidden;
}
.card-gallery:hover{
    box-shadow: 0px 0px 14px 2px #232a4447;
}
.cg-r:not(:hover){
    transform: scale(0.995) !important;
}
.card-gallery picture{
    width: 100%;
    height:20em;
    border-radius: 0;
    box-shadow: none;
    background-color: black;
    
}
.card-gallery picture img{
    height: 100%;
    object-fit: cover;
    transition: ease-in-out 0.5s;
    opacity: 0.9;
}
.card-gallery:hover picture img{
    opacity: 1;
}
.card-gallery .cg-text{
    height: 12em;
    width: 100%;
    padding: 0.5em 1.5em;
    overflow: hidden;
    text-align: left;
}
.cg-text p{
    font-size: 1em !important;
    font-weight: var(--w-light);
}
.cg-text .bi{
    font-size: var(--texto-md) !important;
}
.cg-text h4{
    font-size: var(--texto-sm);
    font-weight: var(--w-light);
    border-bottom: solid 2px var(--principal);
    padding-bottom: 0.3em;
    margin-bottom: 0.7em;
}
button{
    font-family: "Red Hat Display", 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: var(--texto-sm);
    font-weight: 200 !important;
    padding: 0.4em 55px;
    border: 0;
    border-radius: 10px;
    background-image: linear-gradient(19deg, #56a1dc 0%, #425a94 100%);
    color: white;
    cursor:pointer;
    transition: ease-in-out 0.3s;
    text-transform: uppercase;
}
button:hover{
    box-shadow:0 3px 20px  #4d6995a2;
    background-image: linear-gradient(19deg, #60aeea 0%, #4662a4 100%);
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.319);

}

.d-contact ul,.d-contact p{
    font-size: var(--texto-xxs);
}
/*! Capa 3 */
header {
    position: fixed;
    height: 4.5em;
    z-index: 10000;
    width: 100dvw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 8.1%, rgba(0, 0, 0, 0.8) 15.5%, rgba(0, 0, 0, 0.8) 22.5%, rgba(0, 0, 0, 0.78) 29%, rgba(0, 0, 0, 0.73) 35.3%, rgba(0, 0, 0, 0.67) 41.2%, rgba(0, 0, 0, 0.6) 47.1%, rgba(0, 0, 0, 0.52) 52.9%, rgba(0, 0, 0, 0.44) 58.8%, rgba(0, 0, 0, 0.33) 64.7%, rgba(0, 0, 0, 0.22) 71%, rgba(0, 0, 0, 0.12) 77.5%, rgba(0, 0, 0, 0.05) 84.5%, rgba(0, 0, 0, 0.01) 91.9%, rgba(0, 0, 0, 0) 100%);
    transition: 0.3s ease-in-out;
}
.header-white {
    background: white; /* Color cuando remate no está visible */
    box-shadow: 0px 1px 14px #0000007b;
    height: 4em;
}
.header-white .header-links ul li a{
    color:var(--principal);
    text-shadow: none;
}
.header-white .iconMenu{
    color:var(--principal);
}
.header-white .header-logo > img {

    filter: brightness(1) grayscale(0%) drop-shadow(2px 2px 3px #0000006a);
}
header > .header-logo {
    width: 17%;
    height: 100%;
    min-width: 12rem;
    display: flex;
    align-items: center;
    padding-inline: 1.5em;
}

.header-logo > img {
    width: auto;
    height: 90%;
    filter: brightness(100) drop-shadow(2px 2px 2px #000000d3) grayscale(100%);
    

}
header>.header-links{
    padding-inline: 1.5em;
    display: flex;
    align-items: center;
    gap:2em;
}
.header-links ul{
    text-decoration: none;
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 1.7em;
    
}
.header-links hr{
    border: solid 1px var(--fondo);
    height: 2em;
}
.header-white hr{
    border-color: var(--principal);
}
.header-links .h-redes{
    gap:1em !important;
}
.header-links .h-redes li :not(:hover){
    opacity: 0.8;
}
.header-links>ul>li{
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:1em;
    transition: ease 0.2s;
}
.header-links>ul:hover li:not(:hover){
    opacity: 0.75;
}
li a{
    text-decoration: none;
    color:white;
    transition: ease-in-out 0.4s;
    border-bottom: 3px solid transparent;
    font-weight: var(--w-medium) !important;
    text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.51);
}
li .a-special{
    background-color: var(--soporte_2);
    padding: 0.3em 0.5em;
    border-radius: 5px;
}
.a-special:hover{
    background-color: var(--resalte_2);
    color: var(--principal_oscuro);
}
li a:hover{
    border-bottom: 3px solid var(--fondo);
}
.header-white li a:hover{
    border-bottom: 3px solid var(--principal);
}
.iconMenu{
    display: none;
    height: 100%;
    width: max-content;
    font-size: 2.5em;
    text-align: center;
    margin-inline: 0.3em;
    align-items: center;
    color: var(--fondo);
    transition: ease-in-out 0.4s;
}
.iconMenu:hover{
    color: var(--resalte_1);
}
.sidebar {
    position: fixed;
    top: 0;
    left: -110%;
    height: 100dvh;
    width: 100dvw;
    background-color: #132b53ba;
    background-image: linear-gradient(106deg, #02070ee3, #16263e3d);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: left 0.3s ease-in-out;
}

.sidebar ul {
    list-style: none;
    padding: 0.5em 1.8em;
    overflow-y: auto;
}

.sidebar ul li {
    margin: 1em 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--fondo);
    font-size: 1.5em;
    transition: color 0.2s ease-in-out;
}

/* Cuando el menú está activo */
.sidebar.active {
    left: 0;
}
.sidebar-header{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--fondo);
    font-size: 2em;
    padding: 1em 0.7em;
    transition: left 0.3s ease-in-out;
}
.sidebar-header:hover{
    color: var(--resalte_1);
}
.reveal {
    opacity: 0 ;
    transform: translateY(15px); /* Se inicia un poco desplazado */
    transition: opacity 0.8s ease-out, transform 0.7s ease-out;
}

.reveal.active{
    opacity: 1 !important;
    transform: translateY(0);
}
.d-none{
    display: none !important;
}

/*! Animación */
@keyframes slideFade {
    0% {
        transform: translateY(-8%);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(21%);
        opacity: 0;
    }
}
@keyframes fadeItem {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.animate-slide {
    animation: slideFade 3s infinite ease-in-out;
}
.animate-fade{
    animation: fadeItem 4s infinite ease-in-out;
}
@media (max-width:1200px) and (max-height:1500px) {
    .header-links{
        display: none !important;
    }
    .iconMenu{
        display:flex !important;
    }
    .ld-i, .ld-d{
        border: 0;
        border-top: solid 1px whitesmoke;
    }
    .seccion{
        padding: 0 1.5em !important;
        
    }
    .seccion-content>.mw-40{
        max-width: 100%;
        text-align: center;
    }
    
}
@media (max-width:1000px) and (max-height:500px) {
    p{
        font-size: var(--texto-xs);
    }
    .remate {
        min-height: 100dvh !important;
        height: 100dvh !important;
    }
    .remate .texto {
        justify-content: end !important;
        min-height: 90dvh !important;
        background-image: linear-gradient(to top, rgb(0 0 0 / 86%) 1%, transparent 70%) !important;
        padding-bottom: 0 !important;
    }
    
    .remate .texto h2{
        font-size: var(--texto-lg);
    }
    .seccion-content>*:not(.glosario, .card-info){
        max-width: 100% !important;
        text-align: center;
    }
    .invert{
        flex-direction: column-reverse !important;
    }
    .sc-item picture > img {
        width: 100dvw;
    }
}
@media (max-width:500px) and (max-height:1000px) {
    :root{
        /*! CardGallery */
        --cg-h:20em;
    }
    p{
        font-size: 1em !important;
    }
    h3{
        font-size: var(--texto-xs);
    }
    header{
        height: 3.8em;
    }
    .card{
        min-width: 8em;
        min-height: 10em;
        width: 40%;
        padding: 0.3em;
        flex-grow: 1;
    }
    .card i{
        font-size: var(--texto-md);
    }
    .card h4{
        font-weight: var(--w-medium);
    }
    .card-gallery picture{
        height: 15em !important;
    }
    
    .cg-text{
        text-align: center !important;
    }
    .cg-text p{
        font-size: 1em !important;
        word-break: normal;
        text-wrap:pretty !important;
    }
    .seccion-content>*{
        max-width: 100% !important;
        text-align: center;
    }
    .cite-text{
        font-size: 1.2em !important;
    }
    .phone-hidden{
        display: none !important;
    }
    .remate{
        min-height: 95dvh !important;  
        height: 100dvh !important;  
    } 
    .remate .texto {
        background-image: linear-gradient(to top, rgb(0 0 0 / 78%) 35%, transparent 70%);
    }
    .remate .texto h2{
        font-size: 2.5em;
        font-weight: 400;
    }
    .remate .texto p{
        font-weight: 400;
        margin-block: 0.5em;
        margin-inline: 0;
        font-size: 1.2em !important;
        color: #b2b2b2;
    }
    .card-gallery .cg-text{
        height: 15em;
    }
    .invert{
        flex-direction: column-reverse !important;
    }
    .sc-item picture {
        height: 20em;
    }
    .pblock-1 {
        padding-block: 2em !important;
    }
    .loader img{
        height: 4em;
    }
}