/* Generales */

/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

::-moz-selection { /* Code for Firefox */
  color: #fff;
  background: #2670a0;
}

::selection {
  color: #fff; 
  background: #2670a0;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}


body {
  font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
}
h1 {
  	font-size: 48px;
    font-weight: 700;
    color: #5bc5f1;
}
h2 {
  	font-size: 24px;
    font-weight: 500;
    color: #2670a0;
    position: sticky;
    top: 150px;
}
h2.privacidad {
  	font-size: 24px;
    font-weight: 500;
    color: #2670a0;
    position: relative;
    margin: 20px 0;
    top: 0;
}
p {
    font-weight: 300;
    font-size: 16px;
    color: #222;
    margin-bottom: 20px;
    line-height: 120%;
}
p a {
    color: #222;
    transition: color .3s ease;
    text-decoration: none;
    display: inline-block;
}
p a:after {
content: '';
display: block;
height: 1px;
width: 100%;
transition: width .3s ease;
background: #222;
}
p a:hover {
    color: #5bc5f1;
}
p a:hover:after {
width: 0;
}
p b {
    font-weight: 700;
}

/* Home */
.isotipo {
		position: fixed;
		top: 50%;
		left: -350px;
        margin-top: -450px;
   		z-index: 1;
        mix-blend-mode: multiply;
	}
.isotipo img {
		width: 904px;
        height: 897px;   
	}
.section{
		overflow: hidden;
        z-index: 10;
	}
.videofondo {
		position: absolute;
		right: 0;
		bottom: 0;
		top:0;
		right:0;
		width: 100vw;
		height: 100vh;
		background-size: 100% 100%;
 		background-color: black; /* in case the video doesn't fit the whole page*/
  		background-image: /* our video */;
  		background-position: center center;
  		background-size: contain;
   		object-fit: cover; /*cover video background */
   		z-index: 3;
	}
.imagenfondo {
  		margin: 0;
        z-index: 10;
}
.imagenfondo img {
  		display: block;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
}

/*solves problem with overflowing video in Mac with Chrome */
	#section0{
		overflow: hidden;
	}


/* Hiding video controls
* See: https://css-tricks.com/custom-controls-in-html5-video-full-screen/
	* --------------------------------------- */
	video::-webkit-media-controls {
	  display:none !important;
	}

.conttextohome {
  	position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 6;
}
.textohome {
    padding: 0.7vw 12vw 1vw 1vw;
    background-color: rgba(39,112,161,0.8);
    position: relative;
}
.textohome h1.titulo {
    text-align: left;
  	font-size: 3.5vw;
    color: #fff;
}

/* Resto páginas */

.fotocabecera {
  	width: 100%;
    height: 400px;
    margin-top: 100px;
}
.fotocabecera img {
        height: 100%;
        width: 100%;
        object-fit: cover;
}
.cabecerasinfoto {
  	width: 100%;
    height: 70px;
    margin-top: 100px;
    background-color: #5bc5f1;
    position: relative;
}
.izq {
  	background-color: #2670a0;
    height: 120px;
    min-width: 5%;
    width: calc(50% - 640px);
    margin-top: -35px;
    position: relative;
}
.izqcontacto {
    height: 120px;
    min-width: 5%;
    width: calc(50% - 640px);
    margin-top: -100px;
    position: relative;
}
.fondoblanco {
    width: 100%;
  	background-color: #fff;
}
.contenido {
  	width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    margin-top: -120px;
    position: relative;
    display: block;
}
.cajatitulo {
  	background-color: #2670a0;
    height: 120px;
    margin-top: -170px;
    display: flex;
    flex-direction: column-reverse;
    position: absolute;
}
.cajatitulo h1 {
    margin: 0 0.5em 0.5em 0;
}
.columnas {
  	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 170px;
    padding-bottom: 100px;
}
.colsimple {
  	width: 31%;
    margin-bottom: 20px;
}
.colsimple p {
    margin-top: 20px;
    position: sticky;
    top: 198px;
}
.colsimpleref {
  	width: 31%;
}
.colprincipal {
  	width: 63%;
}
.colprincipal img {
  	width: 100%;
    margin-bottom: 20px;
}
.multiport {
    height: 50px;
    width: 252.5px;
    margin-bottom: 35px;
}
.multiport img {
    height: 50px;
    width: 252px;
}
.certificados {
    margin-top: 40px;
    display: flex;
}
.certificado {
    margin-right: 40px;
    width: 135px;
}
.certificado:last-child {
    margin-right: 0;
}
.certificado img {
    width: 100%;
    border: 1px solid #222;
    margin-bottom: 10px;
}
.certificado p {
    text-align: center;
    font-weight: 700;
}
.columnasref {
  	display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 170px;
    padding-bottom: 50px;
}
.cajareferencia {
  	width: 23.5%;
    margin-bottom: 2%;
    margin-right: 2%;
    position: relative; 
    background-color:#5bc5f1;
}
.cajareferencia:nth-child(4n) {
    margin-right: 0;
}
.cajareferencia img {
    width: 100%;
    display: block;
    -webkit-transition: opacity .3s ease-out;
	   -moz-transition: opacity .3s ease-out;
	    -ms-transition: opacity .3s ease-out;
	     -o-transition: opacity .3s ease-out;
	        transition: opacity .3s ease-out;
}
.cajareferencia:hover img {
    opacity: 0.7;
}
.cajareferenciatxt {
    font-size: 17px;
    font-weight: 700;
    color: #5bc5f1;
    background-color: #2670a0;
    padding: 10px 10px 10px 30px;
    position: absolute;
    left: 0;
    bottom: 0;
}
.mapa {
    margin-top: -70px;
}
.botonlistado { 
    padding-bottom: 100px;
}

/* Footer */

.pie {
  	width: 100%;
    flex-shrink: 3;
    padding: 70px 0 50px 0;
    background-color: #f5f5f5;
}
.centrar {
  	width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}
.pieizq {
    display: flex;
    justify-content: flex-start;
}
.footerlogo {
  width: 50px;
  height: 50px;
    overflow: hidden;
    margin-top: -1em;
    margin-right: 2em;
}
.footerlogo img{
  width: 471px;
  height: 61px;
}
.pie p {
    font-weight: 400;
    font-size: 14px;
    color: #2670a0;
}
.pie p a {
    color: #2670a0;
}
.pie p a:hover {
    color: #5bc5f1;
}
.pie p a:after {
    background: #2670a0;
}


/****************************** Mediaquerys *******************************/


@media screen and (max-width: 1100px) {
.columnasref {
    justify-content: space-between;
}
.cajareferencia {
  	width: 48%;
    margin-right: 0;
}
}

@media screen and (max-width: 960px) {
.conttextohome {
    right: inherit;
        left: 5vw;
}
.textohome {
    padding: 0.7vw 1vw;
}
.textohome h1.titulo {
  	font-size: 1.8em;
}
.isotipo {
		left: -550px;
}
h1 {
    font-size: 36px;
}
.columnas {
    flex-direction: column;
}
.colsimple {
  	width: 100%;
}
.colsimpleref {
  	width: 100%;
}
.colprincipal {
  	width: 100%;
}
.centrar {
    flex-direction: column;
}
.pieder {
    margin-top: 40px;
    margin-left: calc(50px + 2em);
}
.fotocabecera {
    height: 40vh;
}
}

@media screen and (max-width: 550px) {
.cajareferencia {
  	width: 100%;
}
}

@media screen and (max-width: 450px) {
h1 {
    font-size: 30px;
}
}

@media screen and (max-width: 400px) {
.certificados {
    flex-direction: column;
}
}


/********** Sello 50 aniversario ***********/

.sello50 {
  	width: 200px;
    height: 200px;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    background-image: url(../img/sello_50_aniversario_caldenor.png);
    background-size: 200px 200px;
}
.pie {
    padding: 70px 0 140px 0;
}

@media screen and (max-width: 960px) {
.sello50 {
  	width: 160px;
    height: 160px;
    background-size: 160px 160px;
}
}

@media screen and (max-width: 600px) {
.sello50 {
  	width: 140px;
    height: 140px;
    background-size: 140px 140px;
}
}
