*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body{
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}


body{
  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
  color: black;
  min-height: 100vh;
}

.layout{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px;
  align-items: start;
}

aside{
  width: 100%;
  padding: 2rem;
  margin-top: 0;   
  color: #222;
}

aside h1{
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: lowercase;
  white-space: nowrap;  
}


aside h1 a{
  color: black;
  text-decoration: none;
}

aside h1 a:hover{
  text-decoration: underline;
}

aside nav a{
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #666;
  font-size: 1.15rem;   
  text-transform: lowercase;
  transition: color 0.3s ease;
}
aside nav a:hover{
  color: #e02121;
}


 a:hover{
  color: #ef0101;
  cursor: pointer;
}

main{
  padding: 5.7rem 2rem; 
}

h2{
  font-size: 2rem;
  margin-bottom: 1rem;
}

h8{
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  color: #e02121;
}
h7{
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  color: #e02121;
  font-style: italic;
}

p{
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.page.acercaDe p,
.acerca-de p {
  max-width: 800px; 
}


.fotoAcerca{
  width: clamp(180px, 28vw, 300px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin-top: 24px;      
  margin-left: -20px;    
  margin-right: auto;  

  border-radius: 50%;
}


@media (max-width: 899px){
  .fotoAcerca{
    margin-left: auto;
    margin-right: auto;
  }
}


.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.gallery-item{
  position: relative;
  overflow: hidden;
  border: 1px solid #c2c2f0;
}

.gallery-item img{
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.gallery-item:hover img{
  opacity: 1;
}

.gallery-item span{
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.85rem;
  color: black;
  text-transform: lowercase;
  background-color: rgba(255,255,255,0.6);
  padding: 2px 4px;
}

.video-container{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
}

iframe{
  width: 100%;
  height: 400px;
  border: none;
}

a:visited{
  color: #2c2828;
}

@media (max-width: 768px){
  .layout{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  aside{
    padding: 0;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
  }

  aside h1{
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    white-space: normal;
  }
  
  aside nav{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  aside nav a{
    margin: 0.5rem;
    font-size: 1.2rem;    
  }
  
  main{
    padding: 0;
  }

  p{
    max-width: 100%;
  }

  .gallery{
    grid-template-columns: 1fr;
  }

  iframe{
    height: 250px;
  }
}
@media (max-width: 768px) {
  .flecha,
  .arrow-up,
  .back-to-top {
    display: none !important;
  }
}