/* General styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	font-size: 62.5%;
}
body {
   
	font-family: 'Poppins', sans-serif;
	font-size: 1.7rem;
	color: rgb(46, 94, 142);
	
}
a {
	text-decoration: none;
	color: inherit;
}
/* End general styles */
.primary-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	width: 100%;
    padding: 10px;
	transition: background-color 0.5s;
}
.container {
	max-width: 120rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
}


/* ventana hacia abajo menu */

.dropdown{
	position: relative;
	cursor: pointer;
}
.dropdown > a{
	display: flex;
	align-items: center;
	
	
}
.dropdown > a > img{
	width: 20px;
}
.dropdown:hover .menu2{
	opacity: 1;
	visibility: visible;
}

.menu2 > a {
	font-size: 14px;
	padding: 12px 20px;
}

.menu2 > a:hover{
	background:rgb(0, 174, 239);
}

.menu2 {
	position: absolute;
	top: 30px;
	right: -20px;
	display: grid;
	width: 180px;
	padding: 8px 0;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #313131;
	box-shadow: 
	0 40px 40px
	rgb(0, 0, 0 / 6%);
	opacity: 0;
	visibility: hidden;
	transition: 0.25s;
	color: rgb(17, 89, 138);
}

.menu2::before{
	content: "";
	background: inherit;
	border-top: 1px solid #000000;
	border-right: 1px solid #313131;
	position: absolute;
	top: -7px;
	right: 22px;
	width: 12px;
	height: 12px;
	rotate: -45deg;
}


/* titulo animado */

.title span {
	--total: calc(var(--duration) + var(--delay));
    margin-top: 20px;
    margin-bottom: 50px;
	position: relative;
	display: flex;
    justify-content:center;
	color: transparent;
	overflow: hidden;
	animation: reveal 1s var(--total) forwards;
}

@keyframes reveal {
	from {
		transform: translateX(500px);
	}
	to {
        display: flex;
		color: rgb(0, 152, 74);
		
	}
}

/* fin titulo anima */
.navbar {
	height: 7.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid 
		rgba(255, 255, 255, 0.05);
	transition: height 0.25s;

}
.logo {
	font-size: 2.4rem;
	font-weight: 900;
	
    
}
/* logotipo tamaño */
img{
	width: 150px;
	height: 150px;
	
	
}

.nav-list {
	list-style: none;
	display: flex;
	margin-left: auto;
	margin-right: auto;
    gap: 4.5rem;
	
    
   
}
/* menu superior caract. */
.nav-link {
	transition: color 0.25s;
	align-items:flex-start;
	color: rgb(17, 89, 138);
	
}
.nav-link:hover {
	color: rgb(0, 152, 74);
}

nav #toggle,
nav label {
  display: none;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}


/* CAMBIOS TRAS TAMAÑO DE PANTALLA */

@media (max-width: 50.625em) {

	/* ventana de contactar emergente de información */

	.map{

		width: 200px ;
		height: 200px;
	}
	.inf_contact{
		height: 190px;
		font-size: 10px;
	}
	.popup h2{
		font-size: 16px;
	}
	
	
	
	.navbar {
		height: 7.5rem;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 2px solid 
			rgba(255, 255, 255, 0.05);
		transition: height 0.25s;
	
	}
    nav .menu {
      width: 100%;
      height: 0;
      overflow: hidden;
      
    }
	 
    
	.nav-list {
		flex-direction:column;
		flex-wrap:wrap;
		list-style: none;
		display: flex;
		margin-left: auto;
		margin-right: auto;
		margin-top: 2px;
		gap: 2rem;
		align-items: center;
		justify-content:flex-end;
		
		
	   
	}
	
	
    nav label {
      display:inline;
      color: rgb(0, 152, 74);
      cursor: pointer;
	  
	  
    }
    nav #toggle:checked ~ .menu  {
        
      height: auto;
      margin: 0 auto;
	  display:contents;
	  position: absolute;

    }
	.title span::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 25px;
		transform: scaleX(0);
		transform-origin: left;
		background-color: rgb(0, 152, 74);
		animation: rollIn var(--duration) var(--delay) forwards,
			rollOut var(--duration) var(--total) forwards;
	}

	nav #toggle:checked ~ .button{
		opacity: 0;
		
	}

    .demo-content{
        flex-direction:column;
        justify-content:space-between;    
        place-content: center;
        align-items: center;
		
		
    }

	section article{
		margin-top: 30px;
	}
	
	
	

}
.button {
	display: inline-block;
	background-color: #fff;
	color: #313131;
	padding: 0.8rem 2rem;
	border-radius: 2rem;
	transition: background-color 0.25s;
}
.button:hover {
	background-color: #d3d3d3;
}

header.active {
	background-color: rgb(255, 255, 255);
	box-shadow: 0 3px 1rem rgba(0, 0, 0, 0.1);
}
header.active .navbar {
	height: 6rem;
}


/* cambio de color tras navegar hacia abajo */

header.active .logo,
header.active .nav-link,
header.active .material-icons {
	color: rgb(17, 89, 138);
}
header.active .nav-link:hover {
	color: rgb(0, 152, 74)
}
header.active .button {
	background-color: #313131;
	color: rgb(255, 255, 255);
}


/* contacto de aparición de información */

.popup{
	width: 600px;
	background: rgb(46, 94, 142);
	border-radius: 6px;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%,-50%) scale(0.1);
	text-align: center;
	padding: 0 30px 30px;
	color: #fff;
	visibility: hidden;
	transition: transform 0.5s, top 0.5s;
}

.open-popup{
	visibility: visible;
	top: 290%;
	transform: translate(-50%,-50%) scale(1);
}

.popup h2{

	font-size: 38px;
	font-weight: 500;
	margin: 30px 0 10px;

}

.popup button{
	display: inline-block;
	background-color: #ffffff;
	color: rgb(46, 94, 142);
	padding: 0.8rem 2rem;
	border-radius: 2rem;
	transition: background-color 0.25s;
}

/* mapa de lugar */

div iframe{
	position: relative;
	overflow: hidden;
	width: 100%;
}
/* fin mapa de lugar */
/* Hero Demo Content*/
.hero {
	width: 100%;
	height: 23vh;
	background: url('gotas-agua-limpia-sobre-fondo-claro.jpg') center no-repeat;
	background-size: cover;
	position: relative;
}

/* imagen fondo oscurecido */
.hero::after {
	content: '';
	width: inherit;
	height: inherit;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.0);
}


			  /* tttt */

			  .contenidoLegal {
				color: rgb(0, 0, 0);
				margin-left: 150px;
				margin-right: 180px;
				font-size: 15px;
				
			}
			

/* footer */

.footer {
    padding-block: 50px;
    padding-bottom: 25px;
    background-color: rgb(17, 89, 138);
	color: #fff;
    /* Margin-top: auto; for demo use only */
    margin-top: auto;
}
.footer__container {
    max-width: 1160px;
    margin: auto;
    padding: 0 15px;
}
.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    row-gap: 20px;
}
.footer__title {
    font-size: 18px;
    color: rgb(114, 191, 68);
    font-weight: 500;
    margin-bottom: 20px;
}
.footer__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer__list-link {
    transition: color 0.25s;
}
.footer__list-link:hover {
    color: rgb(247, 148, 30);
}
.footer__divider {
    margin-block: 25px;
    border: none;
    border-top: 1px solid rgba(252, 255, 255, 0.1);
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer__list--bottom {
    flex-direction: row;
}