/*ESTILOS GENERALES*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    --color-principal: #022030  !important;
}

html{
    height: 100%;
    font-size: 16px;
}

body {
  font-family: "Roboto", sans-serif;
  color: #464545;
  height: 100%;
  font-weight: 400;
  font-size: 1rem;
}  

* {
  box-sizing: border-box;
}

.header{
  background-color: rgb(240, 240, 240);
  height: 75vh;
  background-image: url("images/background.jpg");
  background-size:cover;
  background-position:left;
}

.header-top{
  background-color: #FFFFFF;
}

.header-option{
  background-color:#e5feb2;
  text-align: right;
  padding: 5px;
}

.menu {
  display: flex;
  justify-content: space-between; /* Espacio entre logo y menú */
  align-items: center; /* Centra verticalmente */
  padding: 20px 0px 20px 0px;
}

.mainmenu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo {
  cursor: pointer;
}

.logo img {    
  height: 100px;
  border: none;
} 

.logo a:focus {
  border: none; 
  outline:none !important; 
}

.header-contenido{
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  /*align-items: center;*/
  justify-content: center;
}

/* Estilo para que la imagen del header ocupe el 30% de la pantalla */
.header-image {
  width: 30%;
}

/* Alineación centrada de contenido en el header */
.header-content {
  width: 40%;
  margin-top: 200px;
}

/*MAIN*/

.main{
  margin-bottom: 0;
  margin-top: 40px;
  font-size: 1.2em;
}

.news{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
  font-size: 1rem;
  margin-bottom: 40px;
}

.new {
  background-color: #f2f2f2;
  display: flex;
  justify-content: space-between;
  width: calc(50% - 30px);
  gap: 10px;
}

.new-img{
  width: 50%;
}

.new-img img{
  width: 100%;
  object-fit: cover;
}

.new-content {
  width: 50%;
}

.new-content {
  width: 50%;
  text-decoration: none;
  font-size: 0.9em;
  color: #022030;
}

a:hover.new-content {
  text-decoration: none;
}

.main .info{
  background-color:#e5feb2;
  color: #000000;
  padding-top: 40px;
  padding-bottom: 100px;
  margin: 0;
}

/* FOOTER */

.footer {
  background-color: #022030;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  height: 400px;
  margin: 0;
  padding: 120px;
}

.main .actividades-home{
  display: flex;
  justify-content: space-between;
}

 /* Style the tab */
 .tab {  
  width: 40%;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  display: block;
  background-color: transparent;
  color: rgb(56, 56, 56);
  padding: 5px 0;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: transparent;
  color: #000000;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color:#6ed1d3;
}

/* Style the tab content */
.tabcontent {
  width: 60%;
  border-left: none;
  height: 300px;
  display: none;
  font-weight: 300;
  font-size: 0.8em;
} 

.main .tabcontent button{
  background-color: #000000;
  color: #FFFFFF;
  border: 0;
  padding: 10px 20px 10px 20px;
  font-weight: 500;
}

.actividades{
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 20px;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 40px;
}

.actividad {
  flex: 1 1 30%;
}

.actividad-img{
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.actividad-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .3s ease;
}


.actividad-img img:hover {
  transform: scale(1.2);
}

.actividad-content {
  text-decoration: none;
  font-size: 0.9em;
  color: #022030;
}

.actividad-fecha {
  border-bottom: 1px solid #000000;
  font-weight: 200;
}

.actividad-categoria {
  background-color: #000000;
  color: #FFFFFF;
  display: inline-block;
  margin-top: 20px;
  padding: 2px 6px 2px 6px;
}


a:hover.actividad-content {
  text-decoration: none;
}


@media (width <= 768px){
  .actividad {
    flex: 1 1 100%;
  }

  /* Alineación centrada de contenido en el header */
  .header-content {
    width: 100%;
    margin-top: 150px;
  }

}