.container-fluid {
    width: 100%;
}


/* HEROES DE LAS PÁGINAS (EXCEPTO HOME) */

    .banner-big {
        /*height: min(100dvh,100dvw); */
        height: 100dvh;
        margin-bottom: var(--altomenu);
        container-type: inline-size;
        container-name: heroes;
        background-position: left top;
        background-repeat: no-repeat;
        background-size: cover;
        background-color: black;
    }
    
    @media (orientation: landscape) and (max-height: 500px) {
        .banner-big { height: 425px; } /* Valor obtenido a base de probar según el contenido de todos los hero banners */
    }
    
    .banner-big__contenido {
        width: 100%;
        height: 100%;
        display:flex;
        flex-direction: column;
        justify-content:center;
        padding-inline: max(2.5rem,8vw);
        padding-bottom:1rem;
        color: #fff;
        background-color: rgba(0, 22, 63, 0.75);
    }

    @container heroes (min-width: 1023px) {
     .banner-big__contenido { width:60%; }
    }
    
    .banner-big h1 {
        font-size: 3rem;
        margin-bottom: 1.25rem;
    }
    
    .banner-big blockquote {
        font-size: 1.15rem;
    }
    
    .banner-big nav {
        justify-content: left;
    }

/* ############################################## */


.presentacion__contenedor {
    width: 100%;
}

.presentacion__contenido {
    width: 80%;
    max-width: 70ch;
    margin: auto;
}

@media only screen and (min-width: 1600px) {
    .presentacion__contenedor {
        background-image: url('../storage/images/fondos/logo_lines.svg');
        background-position: left center;
        background-repeat: no-repeat;
        background-size: 25vw;
    }
}

.titulo {
    margin: 3rem 0;
    text-align: center;
}

.titulo h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
}

.rejilla-n {
    width: 95%;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px,100dvw), 1fr));
    grid-gap: 1.75rem;
    justify-content: space-around;
}

.rejilla-n img {
    width: 100%;
}

.rejilla-n a {
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 160px;
    overflow: hidden;
    box-shadow: 2px 2px 3px #666;
    border: 3px solid var(--azultenue);
}

.rejilla-n a:hover {
    border: 3px solid var(--azulmedio);
}

.rejilla-4, .rejilla-3, .rejilla-2, .rejilla-2x {
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px,100dvw), 500px));
    grid-gap: 1.75rem;
    justify-content: space-around;
}

.celda-imagen {
    max-height: 550px;
}

.celda-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.marco-anuncios {
    margin-top: 3rem;
}

.img-container {
    align-self: center;
}

.img-container img {
    width: 100%;
    max-height: 200px;
}

.titulo-small {
    font-size: 1.75rem;
    margin-bottom: 3rem;
    line-height: 5rem;
    border-bottom: 1px solid var(--azulmedio);
    text-align: center;
}

/* ENLACES PARA SUBSECCIONES DENTRO DE LA PÁGINA */

/* Normal - Azul */

.subseccion {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.subseccion * {
    transition: all .35s ease;
}

.subseccion a {
    padding: .5rem 1.5rem;
    position: relative;
    text-decoration: none;
    flex: 0 0 auto;
}

.subseccion a::before, .subseccion a::after {
    content: '';
    height: 14px;
    width: 14px;
    position: absolute;
    transition: all .35s ease;
    opacity: 0.2;
}

.subseccion a::before {
    content: '';
    right: 0;
    top: 0;
    border-top: 3px solid var(--azulclaro);
    border-right: 3px solid var(--azulmedio);
    transform: translate(-100%, 50%);
}

.subseccion a:after {
    content: '';
    left: 0;
    bottom: 0;
    border-bottom: 3px solid var(--azulmedio);
    border-left: 3px solid var(--azulclaro);
    transform: translate(100%, -50%)
}

.subseccion a:hover:before, .subseccion a:hover:after {
    transform: translate(0, 0);
    opacity: 1;
}

.subseccion a:hover {
    color: var(--azulmedio);
    background-color: rgba(var(--azulclaro-rgb), 0.3);
}

/* Claro - Blanco */

.subseccion-claro a::before {
    border-top: 3px solid var(--gris);
    border-right: 3px solid white;
}

.subseccion-claro a:after {
    border-bottom: 3px solid var(--gris);
    border-left: 3px solid white;
}

.subseccion-claro a {
    color: white;
}

.subseccion-claro a:hover {
    color: white;
}

/* ############################################## */

.pni {
    grid-area: pni;
}

.ico {
    grid-area: ico;
}

.osa {
    grid-area: osa;
}

.eps {
    grid-area: eps;
}

.pji {
    grid-area: pji;
}

.eos {
    grid-area: eos;
}

.spie {
    grid-area: spie;
}

.vacio {
    grid-area: vacio;
}

.inputfrm {
    flex: 1 0 300px;
    border: 1px solid var(--gris);
    padding: .75rem;
    background: #fff;
    margin: 10px;
}

.extfrm {
    display: flex;
    align-items: center;
}

.inputfrm label {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--azulmedio);
    font-size: .9rem;
    transition: .3s;
}

.inputfrm:hover label {
    font-size: 0.75rem;
}

.inputfrm label.radioycheck {
    display: inline-block;
    margin: 0;
    padding: 0 0 0 .5rem;
    color: var(--azulmedio);
    font-size: .9rem;
}

.inputfrm input[type="text"], .inputfrm input[type="email"], .inputfrm input[type="tel"], .inputfrm input[type="password"], .inputfrm textarea {
    display: block;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #fff;
    font-size: 1rem;
    width: 90%;
}

.inputfrm input::placeholder {
    font-size: .7rem;
}

.invalid-feedback {
    font-size: 0.7rem;
    color: red;
}

fieldset {
    width: 95%;
    margin: 1rem auto;
}

legend {
    color: var(--azulmedio);
    background: #fff;
    font-size: 1rem;
    line-height: 2rem;
    padding: 0 .5rem;
    box-shadow: 0px 0px 3px #999;
}

.fieldsetfrm {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.fieldsetfrm p {
    margin: 0.5rem 0;
    flex: 0 0 95%;
}

.verticalfrm {
    flex-direction: column;
}

.fieldsetfrm ol li {
    margin: 0.5rem 0;
}

button[type="submit"] {
    line-height: 2rem;
    font-size: 1.25rem;
    color: #fff;
    padding: 0 .5rem;
    background: var(--azulmedio);
    box-shadow: 1px 1px 3px #999;
    margin: 1rem;
    border-radius: 5px;
}

.fieldsetfrm .requerido {
    border: 1px solid var(--azulmedio);
}

.main-footer {
    width: 100%;
    margin-top: 3rem;
}

.main-footer div {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    background: #00163F;
    box-sizing: border-box;
    padding: 1rem;
    position: relative;
}

.main-footer div:nth-child(2) {
    padding: 0;
    background: #fff;
    overflow: hidden;
    height: 0;
    transition: .5s;
}

.main-footer div:nth-child(3) {
    background: var(--azulmedio);
}

.main-footer div:first-child:after {
    content: '';
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #00163F;
    position: absolute;
    bottom: -20px;
    z-index: 1;
}

.main-footer p {
    padding: 0 1rem;
    margin: 0;
    line-height: 2rem;
    color: #fff;
    align-self: center;
}

.main-footer p:first-of-type {
    cursor: pointer;
}

.main-footer p.direccion:hover {
    color: var(--azulclaro);
}

.main-footer a {
    color: #fff;
}

.main-footer a:hover {
    color: var(--azulclaro);
    background: none;
}

.home-colaboradores {
    width: 100%;
    padding: 1rem;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    grid-gap: 0px;
    justify-content: space-around;
    margin: 3rem 0;
}

.home-colaboradores img {
    width: 120px;
}

.banner-small {
    margin-top: var(--altomenu);
    min-height: 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-small h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 2px black;
    text-align: center;
}

.aniversario {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: 4fr 6fr;
    width: 90%;
    margin: 5rem auto;
}

@media only screen and (max-width: 1200px) {
    .aniversario {
        display: grid;
        grid-gap: 2rem;
        grid-template-columns: 1fr;
        width: 90%;
        margin: 5rem auto;
    }
}

.aniversario__info {
    background-color: #fff;
    box-shadow: 5px 5px 20px 0px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5rem;
}

.aniversario__foto {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.aniversario__foto img {
    width: 100%;
    padding: 0;
    margin: 0;
    object-fit: contain;
}

.aniversario__foto-link:hover {
    color: transparent;
    background-color: transparent;
}

.aniversario__titulo {
    font-size: 1.3rem;
    text-align: center;
    font-weight: bold;
    color: #fff;
    width: 100%;
    padding: 0.5rem 0px;
    box-sizing: border-box;
    background-color: #2881E6;
    position: absolute;
    bottom: -.75rem;
}

.aniversario__texto {
    padding: 0 2rem 2rem 2rem;
}

.aniversario__subtitulo {
    font-size: 1.1rem;
    text-align: center;
    color: #2881E6;
    border-bottom: 1px solid #aaa;
    padding-bottom: 1rem;
    padding-top: 2rem;
}

.aniversario__ponente {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    text-align: center;
    font-weight: bold;
}

.aniversario__cargo {
    font-size: .8rem;
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.aniversario__rejilla {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: .75rem;
}

.aniversario__rejilla a img {
    width: 100%;
    object-fit: cover;
}

.aniversario__rejilla a:hover {
    color: #fff;
}

.aniversario__fotos h2 {
    text-align: left;
    margin: 0;
    padding: 2rem 0rem .5rem .5rem;
}

.historial-actividad {
    margin: 1rem 0;
    width: 100%;
}

.historial-actividad td {
    padding: 8px 50px 8px 8px;
}

.historial-actividad tr:nth-child(even) {
    background-color: rgb(228, 241, 252);
}

.historial-actividad th {
    padding: 8px;
    background-color: #2881E6;
    color: white;
    text-align: left;
}

.historial-actividad__campo {
    text-transform: capitalize;
}




.applet-card {
    width: 300px;
    height: 350px;
    background-color: transparent;
    perspective: 1000px;
}

.applet-card__inner {
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    background-color: transparent;
}

.applet-card:hover .applet-card__inner {
    transform: rotateY(180deg);
  }

.applet-card__front, .applet-card__back {
    position: absolute;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
}

.applet-card__front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1A2980;  /* fallback for old browsers */
    background: linear-gradient(to right bottom, #1A2980, #26D0CE);
/*  background-color: #2881E6;
    background-image: linear-gradient(to right bottom, var(--azuloscuro), var(--azulmedio) 33%, var(--azuloscuro-medio) 66%) ; */
}

.applet-card__front--infogeneral {
    background-color: #2881E6;
    background-image: linear-gradient(to right bottom, var(--azuloscuro), var(--azulmedio) 33%, var(--azuloscuro-medio) 66%) ;
}

.applet-card__back {
    transform: rotateY(180deg);
    background-color: #eee;
    display:flex;
    flex-direction: column;
    gap: 1rem;
}

.applet-card__title {
    color:var(--blanco);
    font-size: 1rem;
    padding:0;
    margin: 0;
    text-transform: uppercase;
}

.applet-card__icon {
    width: 130px;
    aspect-ratio: 1/1;
    position: relative;
    display:block;
}

.applet-card--closed::before {
    content: "\f023";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2rem;
    position:absolute;
    top:43%;
    right:25%;
    color:var(--blanco);
}

.applet-card__credits {
    color:var(--blanco);
    font-size: .7rem;
}

.applet-card__credits-title {
    padding:0;
    margin: 0;
}

.applet-card__credits-text {
    font-weight: bold;
    padding:0;
    margin: 0;
    text-align: left;
}

.applet-card__description {
    color: var(--grisoscuro);
    font-size: .9rem;
    flex-grow: 1;
    text-align: left;
}

.applet-card__buttons {
    flex-grow: 0;
    display:flex;
    justify-content: space-between;

}

.applet-card__btn {
    background-color: var(--azulmedio);
    color: var(--blanco);
    display:block;
    padding: .25rem .5rem;
    font-size: .7rem;
}

.applet-card__btn:hover, .applet-card__btn:active, .applet-card__btn:focus {
    background-color: var(--azuloscuro);
}

.applet-card__btn-secondary {
    background-color: transparent;
    color: var(--azuloscuro);
    display:block;
    padding: .25rem .5rem;
    font-size: .7rem;
}

.applet-card__btn-disabled,
.applet-card__btn-disabled:hover,
.applet-card__btn-disabled:active {
    background-color: var(--gris);
    color: var(--grisoscuro);
    display:block;
    padding: .25rem .5rem;
    font-size: .7rem;
    cursor: not-allowed;
    pointer-events: none;
}

.applet-card__btn-secondary:hover, .applet-card__btn-secondary:active, .applet-card__btn-secondary:focus {
    background-color: var(--azuloscuro);
    color: var(--blanco);
}

.applet-card__haztesocio {
    font-size: .7rem;
    flex-grow: 0;
    text-align: left;
    padding: 0;
    margin:0;
}

.applet-card__link {
    padding: 0;
    margin:0;
}
