/***   FUENTES   ***/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300&family=Roboto:wght@300&family=Ubuntu:wght@500&display=swap');

/***   GENERALES   ***/
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth;}
body {
    background-color: #f8f9fa; display: flex; flex-direction: column; justify-content: space-around; width: 100vw; font-family: 'Roboto', sans-serif; color: #373435; font-size: 14pt;
}
h1, h2, h3, h4 { 
    position: relative; text-align: left; width: 100%; font-family: 'Ubuntu', sans-serif; margin: 10px 0; }
h1 { font-size: 1.8em; text-transform: uppercase; }
h2 { font-size: 1.5em;  }
h3 { font-size: 1.3em;  }
h4 { font-size: 1.1em; }
br { margin: 3px; }
.textrojo { color: #c63f2c; }
.textazul { color: #1d1d5d; }
:is(p,em) {
    width: 100%; text-align: justify; margin: auto; margin-bottom: 15px; padding: 0 20px;
}
em {  color:#707070; font-style: italic; font-size: .9rem;  }

:is(a,a.principal) { color: #0b60a9; text-decoration: none; transition: all 0.4s; margin: auto; }
:is(a,a.principal):hover { color: #c63f2c; text-decoration: underline; }
a.secundario {
    color:#c63f2c; 
}    
a.boton { background-color: #c63f2c; padding: 8px 20px; color: #fff; text-transform: uppercase; text-decoration: none; font-size: .8em; font-weight: bold;  }
a.boton:hover { background-color: #0b60a9; color:#fff; text-decoration: none }
a.boton-secundario { padding: 8px 20px; border: 1px solid #000; text-transform: uppercase; text-decoration: none; font-size: .8em; font-weight: bold; color: #000; }


/*  FORMULARIOS  */
.formulario {
    position: relative; width: 90%; display: flex; flex-direction: column; justify-content: space-around; margin: auto;
}
form { position: relative; width: 100%; padding: 15px; box-sizing: border-box; display: flex; flex-direction: column; }
:is(input,textarea,select)   { position: relative; border: 1px solid #707070; height: 36px; width: 100%; padding: 3px 15px; box-sizing: border-box; background-color: #fff; margin: auto; }
textarea { height: 100px; }
form label { position: relative; left: 5px; color: #111; font-size: 0.9em; margin-top: 15px; }
form label i { color:#e75501; }
input:not(:placeholder-shown):invalid { /* box-shadow: 0px 0px 7px #f00 inset; **/ border: 2px dotted #c63f2c; }
form button { background-color: #c63f2c; padding: 8px 20px; color: #fff; text-transform: uppercase; text-decoration: none; font-size: .8em; font-weight: bold; margin: auto; border: 0px; }
form button:hover { transform: scale(1.1); }

/***   ENCABEZADO   ***/
:is(.header, .header-fixed) { transition: all 200ms ease; }
header { 
    position: relative; width: 100%; top: 0px; z-index: 400; display: flex; justify-content: space-between; background-color: #fff; box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2); align-items: center;
}
.header { height: 140px; }
.header-fixed { height: 100px; position: fixed; }
:is(.header, .header-fixed) .logo { position: relative; margin: auto 3%; height: 84%; }
:is(.header, .header-fixed) .logo img { position: relative; height: 100%; }
    /*  MENU  */
nav { position: relative; margin: auto; right: 10%; display: flex; }
nav ul { position: relative; display: flex; flex-direction: row; list-style: none; padding: 3px; }
nav ul li {  margin: auto; }
nav ul li a {  padding: 10px; text-decoration: none; color: #373435 !important; font-weight: bolder; text-transform: uppercase; font-size: 1.1rem; }
nav ul li a:hover {  background-color: #082776; color: #fff !important }
#check__menu, header label.iconmenu { display: none; }
nav ul li ul li a { color:#082776; }
nav ul li a.resaltado {  background-color: #082776; border: 1px solid #fff; border-radius: 3px;}
        /*  SUBMENU  */
nav ul li ul { position: absolute; display: flex; flex-direction: column; width: auto; padding: auto; top: 45px; background-color: #fff; box-shadow: 0px 2px 3px #999; z-index: 500; visibility: hidden; opacity: 0; transition: all 300ms ease; }
nav ul li ul::before { content: ""; width: 0;height:0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 12px solid #fff; position: absolute; top: -12px; left: 20px; }
nav ul li:hover > ul { visibility: visible; opacity: 1; top: 50px; display: block; z-index: 500; }
nav ul li ul li { position: relative; display: flex; margin-left: 0; width: 100%; }
nav ul li ul a { width: 100%; }
nav ul li ul a:hover { background-color: #082776; }
        /* FIN SUBMENU */
    /* FIN MENU  */
/***  FIN ENCABEZADO   ***/

/* **************************
/*    CUERPO DEL SITIO     */
/* *********************** */
main { position: relative; width: 100vw; max-width: 1920px; height: auto; display: flex; flex-direction: column; }
section { position: relative; top:0; width: 100vw; height: auto; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; }
section .contenedor { position: relative; margin: auto; width: 90%; display: flex; justify-content: space-between; }
:is(.separador, .separadorch) {  position: relative; margin: auto; width: 100%; height: 50px;  }
.separadorch { height: 25px; }

div img { position: relative; width: 100%; overflow: hidden;  }
.azul { background-color: #0b60a9;  }
.rojo { background-color: #c63f2c;  }

    /**  GRID  **/
:is(.grid, .gridnovedades, .gridcontenido) { position: relative; width: 100%; display: grid; grid-gap: 25px; margin: auto; }
.grd-1-2 { grid-template-columns: 1fr 2fr;}
.grd-2 { grid-template-columns: repeat(2, 1fr); }
.grd-2-1 { grid-template-columns: 2fr 1fr;}
.grd-3 { grid-template-columns: repeat(3, 1fr); }
.grd-5 { grid-template-columns: repeat(5, 1fr);}
.grid div { position: relative; width: 100%; margin: auto; top: 0px; display: flex; justify-content: space-around; vertical-align: center; }
.grid .card { flex-direction: column;}
.grid .card ul li a { padding: 7px; transform: all .3s; }
.grid .card ul li a:hover {background-color: #0b60a9; color: #fff; }
.gridnovedades {
    margin: 10px 0; grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
    "encabezado contenido contenido"
    "encabezado contenido contenido"
}
.gridcontenido {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
    "contenido contenido contenido aside";
}
.gridcontenido:nth-child(2n) {
    grid-template-areas:
    "aside contenido contenido contenido";
}
:is(.encabezadogrid, .novedades, .aside){  display: flex; justify-content:space-between}
.encabezadogrid {  align-items: center; grid-area: encabezado;  }
.novedades {  grid-area: novedades;  }
.desarrollo {  text-align: justify; box-sizing: border-box; grid-area: contenido; font-size: 1em;  }
.aside { display: flex; text-align: justify; padding: 20px; box-sizing: border-box; grid-area: aside; flex-direction: column; }
.aside img {  position: relative; margin: auto; height: auto; }
.aside div { margin: 0 auto; width: 100%;
}
@media screen and (max-width: 1000px){
    .grd-3 {grid-template-columns: repeat(2,1fr);}
}
@media screen and (max-width: 720px){
    :is(.grd-1-2 ,.grd-2, .grd-3) {grid-template-columns: 1fr;}
    .gridcontenido {
        grid-template-columns: 1fr;
        grid-template-areas:
        "contenido"
        "aside";
    }
}
  /**  FIN GRID  **/




/***  COMPONENTES DEL SITIO  ***/
.borde { border: 1px solid #707070;  }
.caja {  position: relative; width: 100%; padding: 20px; box-sizing: border-box; background-color: #fff; justify-content: space-around; align-items: flex-start; box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1); }
#cobertura { position: relative; margin: auto; z-index: 4; margin-top: 20px; width: 90%; max-width: 1641px; background-color: #fff;  }
#accesos .tableta { position: relative; width: 100%; height: auto; min-height: 125px; display: flex; justify-content: space-between; transition: all 0.3s; }
#accesos .tableta:hover { box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.2);  }
#accesos .tableta .icono {  width: 200px; height: 100%; min-height: 125px; justify-content: center; align-items: center; margin: auto; color: #fff; font-size: 1.5em;  }
#accesos .tableta a { font-family: 'Ubuntu', sans-serif; color: #373435; text-decoration: none; text-align: center;  }
#accesos .tableta a:hover {  color: #c63f2c; text-decoration: underline;  }

#contacto { height: auto; min-height: 125px; align-items: center; background-color: #efefef;  }

    /*  NOTICIAS  */
.tarjetanoticia { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; margin-top: 0;  }
.tarjetanoticia .imagen { position: relative; width: 100%; height: 200px; overflow: hidden; }
.tarjetanoticia .imagen img { object-fit: cover; }
.tarjetanoticia .titulo {  position :relative; margin: 0; width: 100%; height: auto; word-wrap: break-word; justify-content: flex-start; font-weight: 200; }
:is(.tarjetanoticia, *) .resumen { height: auto; margin-bottom: 15px; font-size: .8em; word-wrap: break-word; }

.cuadrocambiosparadas {
    position: relative; width: 90%; margin: 15px auto; background-color: #fff; color: #707070;
}
:is(.tarjetanoticia, *) .fecha { position: relative; width: 100%; justify-content: flex-start; font-size: 0.6em; color: #707070  }
.tarjetanoticia .enlace { width: 100%; display: flex; justify-content: space-between; margin-bottom: 0px;  }
.gridnovedades .enlace { margin-top: 25px; }



    /*  PARALLAX  */
.parallax { transform-style: preserve-3d; position: relative; width: 100%; min-height: 70vh; background-color: #fff; color: #000; display: flex; flex-wrap: wrap; justify-content: flex-start; }
.parallax .imagenparallax { position: absolute; width: 100%; height: 100%; overflow: hidden; display: flex; justify-content: center; align-items: center; background-size:auto  }
.parallax div { position: relative; z-index: 10; }
.cuadroblc-trns {
    position: relative; right: 0px; float: right !important; width: 30%; min-width: 300px; background-color: rgba(255,255,255,0.8); color: #373435; display: flex; flex-direction: column; text-align: center; border-radius: 8px; padding: 20px; box-sizing: border-box;
}
.cuadroblc-trns i {
    font-size: 1.3rem; padding: 15px; background-color: #373435; color: #efefef; border-radius: 50%; margin: 15px 0;
}


/***   BANNER INICIO  -  VIDEO    ***/
:is(.banner-inicio, .banner) {
    position: relative; width: 100vw; display: flex; justify-content: center; align-items: center; z-index: 1; overflow: hidden; background-color: #495678; object-position: center; top: 0px; margin-bottom: 0px;
}
.banner-inicio {
    height: 90vh; max-height: auto;
}
.banner-inicio video {
    position: relative; margin: auto; top: 0;
    opacity: .8;
}
.banner-inicio .texto-slider {
    position: absolute; z-index: 3; width: 100%; height: 60%; overflow: hidden; display: flex; justify-content: space-around;
}
:is(.banner-inicio, .banner) div {
    position: absolute; z-index: 100; top: 35%; left: 0%; color: #fff; text-shadow: 5px 5px 7px rgba(0, 0, 0, 0.5); font-size: 2rem; font-weight: bold; font-family: 'Ubuntu', sans-serif; display: flex; 
}
.banner-inicio :is(div img, div .textobanner){
    position: absolute; width: 40vw; text-align: center;
}
/** banner  **/
.banner {
    height: 55vh; color: #fff; text-shadow: 3px 3px 3px #000; vertical-align: text-top;
}
.banner img {
    position: absolute; margin: auto; width: 100%; object-fit: cover; opacity:0.8;
}
.banner .titulopagina {
    position: absolute; margin-top: 0; height: 60%; width: 75%; font-size: 2rem;
}

/* ***********************************
**      MEDIAS QUERYS              ***
*********************************** */
@media screen and (max-width:1000px){
    :is(.header, .header-fixed) {
        height: 100px;
    }
    
}
@media screen and (max-width:720px){
    :is(.header, .header-fixed) {
        height: 80px;
    }
    :is(.banner-inicio, .banner) {
        height: 35vh; 
    }
    .banner .titulopagina { font-size: 1.3rem; }
    .cuadroblc-trns { position: relative; width: 90%; margin: auto; }
}


/***   TARJETAS   ***/
#certificaciones {
    padding: 20px 0;
}
.card {
    position: relative; width: 50% !important; overflow: hidden;
}
.card::before{
    font-family: "Font Awesome 5 Free"; font-weight: 400;
    content: "\f002";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background-color: rgba(54, 4, 171, .4);
    z-index: 10;
    color: #fff; font-size: 2rem; font-weight: bold;
    display: flex;
    justify-content: center; align-items: center;
    transform: scale(0);
    transition: all .3s;
}
.card:hover::before {
    transform: scale(1);
}
.cardhorario {
    position: relative; width: 50% !important; overflow: hidden; font-weight: 400; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.cardhorario ul li a{
    position: relative; width: 100%; display: block; padding: 5px;
}



/**   TABLAS   **/
table {
    width: 80%; font-size: 1rem;
}
tr {
    background-color: #fff;
}
tr:nth-child(2n-1) {
    text-align: center; background-color: #ededed;
}
td {
    border: 1px solid #bbb;
}

:is(.left, .right){
    position: relative; width: 48%; max-width: 720px; margin: 5px 0px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; color: #fff; font-size: 1rem; font-weight: bolder;
}
:is(.poligonleft, .poligonright, .leftchevron, .rightchevron){
    min-height: 150px;
}
.poligonleft {
    clip-path: polygon(10% 0, 100% 0%, 100% 100%, 10% 100%, 0% 50%);
}
.poligonright {
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
}
.leftchevron {
    clip-path: polygon(100% 0%, 90% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
}
.rightchevron {
    clip-path: polygon(100% 0, 100% 50%, 100% 100%, 0% 100%, 25% 50%, 0% 0%);
}

/* *************************
    PIE DE PAGINA Y COPY   
************************* */
footer { clear: both; position: relative; width: 100%; height: auto; padding: 20px 10px; box-sizing: border-box; background-color: #495678; color: #fff; font-size: 1rem }
footer .piedepagina { display: flex; justify-content: space-between; flex-wrap: wrap; margin: 20px auto; width: 90%; max-width: 1641px; }
footer .piedepagina div { position: relative; margin: auto; width: auto; min-width: 300px; }
footer img { margin: auto; width: 200px}
footer ul { list-style: none; padding: 0px; margin: 0px;display: flex; justify-content:flex-end; }
footer ul li { margin: 15px 5px; }
footer ul li a { display: flex; color: #082265;text-decoration: none; width: 45px; height: 45px; border-radius: 50%; background-color: #fff; }
footer ul li a i { font-size: 1.3rem; margin: auto}
footer ul li a:hover { transform: scale(1.2); border: 5px solid #c63f2c; }
footer hr { margin: 20px auto 20px auto; color: #fff; width: 85vw;}
    /** desarrollo **/
.diseno { position: relative; width: 100%; margin-bottom: 0px; text-align: left; font-size: 0.8rem; color: #999; } .diseno a { color: #999; text-decoration: none; padding: 5px 12px; } .diseno a:hover { background-color: #c63f2c; color: #fff; border-radius: 6px;}
/* *************************
         FIN FOOTER
************************** */


@media screen and (max-width: 1324px) {
    header label.iconmenu, .header-fixed label.iconmenu { display: block; position: relative; font-size: 2rem; margin: auto; top: 15px; padding: 20px;  }
    /***  MENU PRINCIPAL   **/
    nav {position: absolute; width: 100%; margin: auto; left: 5px; }
    nav ul { flex-direction: column; background-color: #fff; position: relative; left: 0; top: 15px; width: 100%; height: auto; transition: all 300ms ease; z-index: 150; opacity: 0; visibility: hidden; }
    nav ul li { position: relative; width: 100%; height: 50px; text-align: left; padding: 0;  }
    nav ul li a { color: #082776; width: 100%; display: block;}
    nav ul li:hover ul { position: relative; display: flex; visibility: visible; opacity: 1; top: 10px; left: 5px; }
    nav ul li ul li { display: flex;margin:0;padding:0; }
    nav ul li ul::before { left: 50px; }
    #check__menu { display: none; }
    #check__menu:checked ~ nav > ul { height: auto; visibility: visible; opacity: 1; width: 100%; top: 10px; }
}

@media screen and (max-width: 920px) {
    .grid { grid-gap: 10px; }
    
    :is(.banner-inicio, .banner) div {
        font-size: 1.5rem; 
    }
    .contenedor { width: 80%; }
     .cajanovedad {
        flex-direction: column;
     }
     .cajanovedad .imagen { clear:both;
        position: relative; top: 0px; width: 100%; height: auto; max-height: min-content;
     }


     footer .piedepagina div { margin-bottom: 25px; justify-content: center; text-align: center;}
     footer ul { list-style: none; padding: 0px; margin: 0px;display: flex; justify-content:space-around; }
}

@media screen and (max-width: 500px) {
    :is(.banner-inicio, .banner) div {
        font-size: 1.3rem; 
    }
    .contenedor { width: 94%; }
    
}
