body {
    margin: 0;
    size: 100%;
}

/* class bs */ 
header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 0; 
    position: sticky;
    z-index: 2;
    
    background-color: rgba(2, 26, 71);
}

.header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 8vh; 
    height: 4vh;
    position:static;
    z-index: 3;

    background-color: rgba(2, 26, 71);
   
}


/* Navbar */
.navbar {
  background: rgba(15, 62, 129);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}
/* Ocultamos el checkbox */
.menu-toggle {
  display: none;
}
/* Enlaces */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;    /* Quita el subrayado */
  color: white;             /* Color del texto */
  font-size: 14px;          /* Tamaño de fuente */
  font-weight: bold;        /* Grosor del texto */
  font-family: Arial, sans-serif; /* Tipo de fuente */
  text-transform:none;/* Convierte a mayúsculas */
  letter-spacing: 1px;      /* Espaciado entre letras */
  word-spacing: 4px;        /* Espaciado entre palabras */
  line-height: 1.5;         /* Altura de línea */
  text-align:left;       /* Centrado del texto */
  transition: color 0.3s, transform 0.2s;
}
nav ul li a:hover {
  color: #f1c40f;
}

.dropdown {

    justify-content: left;
    align-items: center;
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
}

.dropdown-content {
    top: 100%;
    width: 100%;
    display: none;
    position: absolute;
    background-color: rgba(2, 26, 71, 0.6);
    min-width: 100px;
    z-index: 1;
}

.dropdown-content a {
    padding: 7px;
    text-decoration: none;
    display: block;
    color: rgb(255, 255, 255);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover{
    background-color: rgba(2, 26, 71, 0.620);
}

.imagen {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    
    top: 8vh;
    max-height: 100vh;
    min-height: 100vh;
    margin-top: -8vh;
    width: 100%;
    background: url(img_obchingon.jpg);
    background-size: cover;
}

.imagen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5));
    z-index: 2;
}



.back {
    position: sticky;
    background-color: white;
    z-index: 1;
}

.logo {
    margin-left: 5%;
    position: absolute;
    top: 8%;
    left: -2%;
    z-index: 10;
}

a {
    font-size: .9rem;
}

.anuncios {
    display: flex;
    flex: 2 1 auto;
    flex-wrap: wrap;
}

.info div {
    width: 30%;
}

/* Estilo del icono hamburguesa */
.hamburger {
  font-size: 26px;
  cursor: pointer;
  display: none; /* Solo se muestra en móvil */
  margin-left: auto;   /* 👈 Empuja el ícono hacia la derecha */
}
/* Menú en escritorio */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.menu li a:hover {
  background: #555;
  border-radius: 5px;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .contenedor {
    grid-template-columns: 1fr; /* una sola columna */
  }
  .hamburger {
    display: block;
    
  }

  .menu {
    display: none;
    flex-direction: column;
    background: rgba(15, 62, 129);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 10px 0;
  }

  /* Mostrar el menú cuando se activa el checkbox */
  .menu-toggle:checked + .hamburger + .menu {
    display: flex;
  }

  .menu li {
    margin: 10px 0;
  }
  
}

/*section 1*/
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* Para que ocupe toda la altura de la pantalla */
    padding: 20px;
}

.container {
    display: flex;
    width: 100%; /* O cualquier valor que desees para el ancho */
    max-width: 1200px; /* Para no hacer que se expanda demasiado en pantallas grandes */
    height: 100%;
}

.video, .texto {
    flex: 1; /* Esto hace que ambos elementos tomen el 50% del contenedor */
    padding: 30px;
}

.video iframe {
    width: 100%; /* El video ocupará todo el ancho del div */
    height: 100%; /* El video ocupará todo el alto disponible */
    border: none; /*Quita el borde del iframe */
}



.texto p {
    font-size: 24px; /* Ajusta el tamaño del texto */
    line-height: 1.6; /* Espaciado entre líneas */
    color: #333; /* Color del text*o */
    max-width: 500px; /* Para que el texto no sea demasiado largo en pantallas grandes */
    justify-content: center;
    align-items: center;
    display: flex;
    text-align:justify;
}

.texto h2{
    font-size: 30px; /* Ajusta el tamaño del texto */
    line-height: 1; /* Espaciado entre líneas */
    color: #333; /* Color del texto */
    max-width: 500px; /* Para que el texto no sea demasiado largo en pantallas grandes */
    text-align: center;
    justify-content: center;
}

.link-historia{
    color: #333; /* Color del text*o */
    max-width: 500px; /* Para que el texto no sea demasiado largo en pantallas grandes */
    align-items: end;
    text-align:end; 
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.link-historia a {
    align-items: center;
    background: transparent;
    display: flex;
    font-family: GT America Standard Medium;
    font-size: 22px;
    font-weight: 500;
    height: auto;
    padding: 0;
    text-decoration: none;
    width: auto;
    color: inherit;
}

.link-historia a:hover {
    color: #333333bb;
}

.link-historia a::before{
    position: absolute;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #06127a;
    transition: 1.5s;
}

.link-historia a:hover::before{
    width: 100%;
}

/*iconos*/

.iconos{
    background-color: #f4f8ff;
}



.icon-title {
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 45px;
    text-align: center;
    color:  rgba(2, 26, 71);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.icon-title::before,
.icon-title::after {
    content: "";
    width: 20vw;
    height: 4px;
    background-color: black;
    border-radius: 999px;
}


.icono {
    text-align: center;
    align-items: center;
    display: flex;
    height: 50vh;
    justify-content: center;
    margin: 16px;
}

.box-icon{
    
    padding: 30px;
    display: block;
    flex-wrap: wrap;
    position: relative;
    width: calc(30% - 30px);
    padding-right: 15px;
    padding-left: 15px;
    height: 80%;
}

.box-icon h3 {
    text-decoration: overline;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.25em;
    letter-spacing: unset;
    text-transform: unset;
    font-weight: 1500;
    font-size: 30px;
    line-height: 25px;
    margin: 16px 0;
    color:  rgb(2, 26, 71);
}

.gif-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.gif-icon:hover {
    transform: scale(1.2); /* Hace zoom al pasar el mouse */
    cursor: pointer;
}

/*footer*/
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
}

.footer-row{
    display: flex;
    flex-wrap: nowrap;
}

.footer-links ul li a{
 font-size: 40px;
 text-decoration: none;
 color: #f4f8ff;
 display: block;
 margin-top: 15px;
}

.footer-icon{
    display: inline-block;
    min-height: 40px;
    width: 200px;
    margin: 10 10px 10px  20;
    text-align: left;
    line-height: 100px;
    color: #f4f8ff;
}
/*anuncios*/

/*body {
    margin: 0;
    size: 100%;
}

/* class bs 
header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 0; 
    position: sticky;
    z-index: 2;
    
    background-color: rgba(2, 26, 71);
}

.header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 8vh; 
    height: 4vh;
    position: sticky;
    z-index: 3;

    background-color: rgba(2, 26, 71);
   
}

nav {
    width: 100%;
    height: 8vh;
}

nav * {  
    padding: 0;
    padding-inline: 1%;
    font-weight: bold;
    text-transform:uppercase;
    text-decoration: none;
    color: #f4f8ff;
    font-size: small;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav ul {
    padding-inline: 5%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    height: 100%;
    
}

nav li {
    width: 100%;
    height: 100%;
}

.dropdown {

    justify-content: left;
    align-items: center;
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
}

.dropdown-content {
    top: 100%;
    width: 100%;
    display: none;
    position: absolute;
    background-color: #f4f8ff;
    min-width: 100px;
    z-index: 1;
}

.dropdown-content a {
    padding: 7px;
    text-decoration: none;
    display: block;
    color: black;
}*/

.dropdown:hover .dropdown-content {display: block;}

.imagen {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    
    top: 8vh;
    max-height: 100vh;
    min-height: 100vh;
    margin-top: -8vh;
    width: 100%;
    background: url(img_obchingon.jpg);
    background-size: cover;
}

.imagen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5));
    z-index: 2;
}



.back {
    position: sticky;
    background-color: #f4f8ff;
    z-index: 1;
}

.logo {
    margin-left: 5%;
    position: absolute;
    top: 8%;
    left: -2%;
    z-index: 10;
}

a {
    font-size: .9rem;
}

.anuncios {
    display: flex;
    flex: 2 1 auto;
    flex-wrap: wrap;
}

.info div {
    width: 30%;
}

.section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* Para que ocupe toda la altura de la pantalla */
    padding: 20px;
}

.container {
    display: flex;
    width: 100%; /* O cualquier valor que desees para el ancho */
    max-width: 1200px; /* Para no hacer que se expanda demasiado en pantallas grandes */
    height: 100%;
}

.video, .texto {
    flex: 1; /* Esto hace que ambos elementos tomen el 50% del contenedor */
    padding: 30px;
}

.video iframe {
    width: 100%; /* El video ocupará todo el ancho del div */
    height: 100%; /* El video ocupará todo el alto disponible */
    border: none; /*Quita el borde del iframe */
}



.texto p {
    font-size: 20px; /* Ajusta el tamaño del texto */
    line-height: 1.6; /* Espaciado entre líneas */
    color: #333; /* Color del text*o */
    max-width: 500px; /* Para que el texto no sea demasiado largo en pantallas grandes */
    justify-content: center;
    align-items: center;
    display: flex;
    text-align:justify;
}

.texto h2{
    font-size: 20px; /* Ajusta el tamaño del texto */
    line-height: 1; /* Espaciado entre líneas */
    color: #333; /* Color del texto */
    max-width: 500px; /* Para que el texto no sea demasiado largo en pantallas grandes */
    text-align: center;
    justify-content: center;
}

.link-historia{
    color: #333; /* Color del text*o */
    max-width: 500px; /* Para que el texto no sea demasiado largo en pantallas grandes */
    justify-content: end;
    align-items: end;
    display: flex;
    text-align:end;
    font-size: 40px;
}



/*iconos*/

.iconos{
    background-color: #f4f8ff;
}



.icon-title {
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 45px;
    text-align: center;
    color:  rgba(2, 26, 71);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.icon-title::before,
.icon-title::after {
    content: "";
    width: 20vw;
    height: 4px;
    background-color: black;
    border-radius: 999px;
}


.icono {
    text-align: center;
    align-items: center;
    display: flex;
    height: 50vh;
    justify-content: center;
    margin: 16px;
}

.box-icon{
    
    padding: 30px;
    display: block;
    flex-wrap: wrap;
    position: relative;
    width: calc(30% - 30px);
    padding-right: 15px;
    padding-left: 15px;
    height: 80%;
}

.box-icon h3 {
    text-decoration: overline;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.25em;
    letter-spacing: unset;
    text-transform: unset;
    font-weight: 1500;
    font-size: 30px;
    line-height: 25px;
    margin: 16px 0;
    color:  rgb(2, 26, 71);
}

.gif-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.gif-icon:hover {
    transform: scale(1.2); /* Hace zoom al pasar el mouse */
    cursor: pointer;
}

footer{
    background-color:rgb(2, 26, 71);
    margin-top: 100px;
    align-items: center;
    text-align: center;
    padding: 50px;
    padding-bottom: 100px;
}

/*anuncios*/



.main-layout-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 20px; 
    width: 100%;
}

.top-row {
    display: flex;
    justify-content: center; 
    width: 100%; 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 350px); 
    gap: 20px; 
    justify-content: center; 
}

.info-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0; 
    padding: 20px;
    width: 350px; 
    box-sizing: border-box; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer; 
    overflow: hidden; 
    position: relative; 
}

.info-box h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.info-box img {
    max-width: 100%;
    height: auto;
    border-radius: 0; 
    margin-bottom: 15px;
    display: block; 
}

.explanation-text {
    background-color: rgba(3, 49, 82, 0.85); 
    color: #fff;
    padding: 15px;
    border-radius: 0; 
    text-align: left;
    font-size: 0.9em;
    
    opacity: 0;
    visibility: hidden;
    position: absolute; 
    bottom: 10px; 
    left: 10px;   
    right: 10px;  
    max-height: calc(100% - 20px); 
    overflow-y: auto; 
    
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box; 
}

.info-box:hover .explanation-text {
    opacity: 1;
    visibility: visible;
}

body{
    background-color: #f4f8ff;
}
