@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

@media screen and (max-width: 600px) {
  #main-content {
    width: 100%;
  }
}

:root{
	--main-background: #fff;
	--main-fonts-color: #0b0c0f;
    --main-header-background:#21252e;
	--main-font-family: 'Co Text Bold';
}
@font-face {
    font-family: 'Co Text Bold';
  src: url('fuentes texto/Co Text Bold.otf') format('opentype')
}
*{
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
}

main{
	padding: 0;
	width: 100%;
	height: 100%;
	background: var(--main-background);
}

/*────────────────── 
       header
──────────────────*/

header{
	margin: 0 auto;
	width: 100%;
	height: 70px;
	display: flex;
    align-items: center; 
	justify-content: space-around; 
    background: transparent;
	position: fixed;
	top: 0;
	transition: 0.3s;
	z-index: 5;
}
.nav-show{
	opacity: 0;
}

header:hover{
	opacity: 1;
	background: lightblue;
}

.logo img{
	padding-top: 5px;
	height: 50px;
	cursor: pointer;
}

.nav-bar{
	list-style:none;
	position: relative;
	display: inline-flex;
}

a.nav-link{
	margin: 2px;
	padding: 5px 10px;
	text-decoration: none;
	color: var(--main-fonts-color);
	font-family: var(--main-font-family);
	cursor: pointer;
	text-transform: uppercase;
}



.nav-link:hover {
	color: #000000;
    background: var(--main-decor-color);
}

/*──────────────────
       home
──────────────────*/

#home{ 	
	margin: auto;
	height: 100vh;
	color: var(--main-fonts-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
}

#home .filter{
  background-image: url('imagenes apoyo/img0.png');
  /* Otras propiedades de fondo opcionales */
  background-repeat: no-repeat;
	background-size: cover;
	background-position:center;
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
	opacity:.20;
}  
.custom-h1 {
  font-size: 5vw; 
  line-height: 1.2;
  text-align: center; 
}

.intro {
	text-align:center;
    color: var(--main-fonts-color);
	z-index: 1;
	margin: auto;
	padding: 20px;
}

.intro  p{
    margin: 5px;
	font-family: var(--main-font-family);
	text-align:center;
}
 h1{
  padding-bottom: 15px;
    letter-spacing: normal;
    font-family: var(--main-font-family);
  font-style: normal;
  color: var(--main-fonts-color);
 }

 h2{
  padding-bottom: 15px;
    letter-spacing: normal;
    font-family: var(--main-font-family);
  font-style: normal;
  color: var(--main-fonts-color);
 }

 h3{
	padding-bottom: 15px;
    letter-spacing: normal;
    font-family: var(--main-font-family);
	font-style: normal;
	color: var(--main-fonts-color);
	
}

 h4{
  padding-bottom: 15px;
    letter-spacing: normal;
    font-family: var(--main-font-family);
  font-style: normal;
  color: var(--main-fonts-color);
}

p{
    margin: 5px;
  font-family: var(--main-font-family);
  text-align:center;
}

.container {
    display: flex;
    flex-direction: row;
  flex-wrap:nowrap;
  align-items: stretch;
}

.text-section1 {
    height: 100px;
  width: auto;
    padding-right: 2%;
}

.image-section1 {
    width: 35%;
    padding-left: 2%;
}


/*──────────────────
    home p1
──────────────────*/
#informacion .flex-container {
  display: flex;
  flex-direction: row;
  background-color:#ffce00
}
#informacion .texto {
  flex: 1;
  text-align: center;
  padding-top: 200px;

  
}
#informacion .imagen {
  flex: 1;
  text-align: right;
  max-width: auto;
  max-height:600px;
 
  
}
#informacion .texto h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
#informacion .texto h4 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
#informacion .texto p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
/*──────────────────
    home p3
──────────────────*/
#informacion .flex-container2 {
  display: flex;
  flex-direction: row;
  background-color:lightgray
}

#informacion .image-container {
  flex: 1;
  text-align: left;
  max-width: 800px;
  height:auto;
}

#informacion .text-box {
  color: white;
  flex: 1;
  text-align: center;
  padding-top: 250px;
  background-color: #ffce00;
  
}

#informacion .text-box h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}


/*──────────────────
    funcionamiento
──────────────────*/

#funcionamiento{ 	
  margin: auto;
  height: 80vh;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background-image: url('imagenes apoyo/img3.jpg');
}

#funcionamiento .filter{
    background-repeat: no-repeat;
  background-size: auto;
  background-position:center;
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
  opacity:.20;
}  

#funcionamiento {
  margin: 5px;
  font-size:1.2rem;
  font-family: var(--main-font-family);
  text-align:center;
}


.containedor {
  display: flex;
  
}

.box {
  width: 700px;
  height: 320px;
  background-color:rgb(255, 206, 0, 0.5);
  border: 1px solid #deb716;
  padding-top: 1.5 vh;
  
}


/*──────────────────
    social media
──────────────────*/

.social-media{
	padding: 10px;
	display: flex;
	position: center;
    align-items: space-around;
	justify-content:center;
}

.social-media a {
    margin: 10px;
    font-size: 2rem;
    text-align:center;
    display: inline-block;
	color: var(--main-fonts-color);
}

.social-media a i{
	cursor: pointer;
}

.social-media  a:hover {
	color: var(--main-decor-color);

}

/*──────────────────
      projects
──────────────────*/

#projects{
	margin-top:100px;
    height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
    justify-content: center;
	text-align:center;
	color: var(--main-fonts-color);
}
#projects h3{
    padding-top: 70px;
}
#projects p{
	font-family: var(--main-font-family);
	padding: 10px;
}

.work{
	display: flex; 
	flex: 1;
    flex-wrap: wrap;
    justify-content:center;
	align-items: center;
	padding: 20px;
}

.card{
	display: flex;
	flex-direction: column;
	margin: 20px;
	width: 200px;
	height:auto;
	border-radius:12px;
    background:#ffce00;
  
}

.card img{
	width: 100%;
	height:70%;
	border-radius:10px 10px 0px 0px;
}

.card .work-content{
	text-align: center;
	padding: 10px 5px;
	font-size: 1rem;
	color: black;
	font-family: var(--main-font-family);
	cursor: pointer;
}

.card a{
	text-decoration: none;
}

.card .work-content:hover{
    color:black;
}

.card:hover{
	box-shadow: 0 0 1.5rem gray;
}

/*──────────────────
      Contact
──────────────────*/

#contact{
	margin: auto;
	padding-bottom: 20px;
	height: 600px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
  background-color: #ffce00;
	color: white;
}
	
#contact p{
	padding:10px;
	text-align:center;
	font-family: var(--main-font-family);
}

/*────────────────── 
       footer
──────────────────*/

footer {
	width: 100%;
	height: 100%;
    background-color: var(--main-header-background);
}

.copyright {
	color: #fff;
	font-size: 1.2rem;
	line-height: 40px;
	text-align: center;
}

.copyright a{
	color: #fff;
	font-size: 1rem;
	letter-spacing: 1px;
    text-decoration: none;
}

.copyright a:hover{
	color: var(--main-decor-color);
}

/*──────────────────
       hr
──────────────────*/
hr {
    background: #ffce00;
	margin: 2px;
	height: 3px;
	width: 150px;
    border-radius:5px;
	border: hidden;
	margin-inline-start: auto;
    margin-inline-end: auto;
}

/*────────────────── 
     Scrollbar
──────────────────*/
::-webkit-Scrollbar{
    width: 5px; 
	background: rgba(5,5,5,1);
}
::-webkit-Scrollbar-thumb{
	border-radius: 10px;
	background: #ffce00;
	box-shadow: inset 0 0 20px #ffce00;
}
::-webkit-Scrollbar-track{
	margin-top: 80px;
	border-radius: 10px;
}

/*────────────────── 
     hamburger
──────────────────*/
.hamburger {
	display: none;
}

.hamburger div{
	width: 30px;
	height: 3px;
	background: #dbdbdb;
	margin: 5px;
	transition:all 0.3s ease;
}

.toggle .line1{
	transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2{
	opacity: 0;
}

.toggle .line3{
	transform: rotate(45deg) translate(-5px,-6px);
}

@keyframes navLinkFade{
	from{
		opacity:0;
		transform: translatex(50px);
	}
	to{
		opacity: 1;
		transform:translatex(0px);
	}
}

/*────────────────── 
    media queries
──────────────────*/

@media only screen and (max-width: 1484px) and (min-width: 1214px) {
	.work{
        padding:20px 20%;
    }
}
@media only screen and (max-width: 1214px) and (min-width: 1000px) {
	.work{
        padding:20px 12%;
    }
}


@media only screen and (max-width: 500px) {

	#home, #informacion, #funcionamiento, #equipo, #contacto{
        overflow-x: auto;
	}
	header{
		background-color: var(--main-header-background);
	}
	.logo{
		position:absolute;
		top: 2px;
		left: 30px;
	}
	.nav-show{
		opacity: 1;
	}	 
	.nav-bar{
		position:fixed;
		top: 0px;
		right:0;
		width:60%;
		height: 100vh;
		display:flex;
		flex-direction: column;
		align-items: center;
		justify-content:space-evenly;
		background:var(--main-header-background);
		transform:translatex(100%);
		transition: transform 0.5s ease-in;
		z-index: -1;
	}
	.hamburger{
		position:absolute;
		top: 17px;
		right: 25%;
		display: block;
		cursor:pointer;
		z-index: 5;
	}	
	.nav-bar li{
		opacity:0;
	}
}

.nav-active{
	transform:translatex(0%);
}
