/* Reset y estilo general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    size: 100%;
}

/* class bs */ 
header {
    background-color: rgb(15, 62, 129);
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 0vh; 
    position: sticky;
    z-index: 4;
}

/* 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;
}

/* d */
.ad {
    width: 100%;
    background-color: rgb(252, 253, 255);
    top: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    padding: 3.5vh;
    height: 1vh;
}

.ad.horizTranslate {
  -webkit-transition: 1s;
  -moz-transition: 1s;
  -ms-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
  margin-top: -8vh !important;
}

.ad a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

#left {
    text-align: center;
    overflow: hidden;
}

#right {
    float: right;
    width: 20%;
    text-align: left;
}

/* d */
.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: calc(150px);
    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(images/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;
}

a {
    font-size: .9rem;
}

/* 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%;
    
}

.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;
    margin-top: 60px;
}

.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;
    color: #3548f0;
}

.link-historia a:hover {
    color: #070864bb;
}

.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%;
}

/* Sección de */
.icon-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  gap: 20px;
  padding: 40px;
  background: #f4f6f8;
  text-align: center;
}

/* Tarjetas */
.icon-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.icon-card:hover {
  transform: translateY(-5px);
}

/* Iconos */
.icon-card i {
  font-size: 40px;
  color: #3498db;
  margin-bottom: 15px;
}

/* Títulos */
.icon-card h3 {
  margin: 10px 0;
  font-size: 18px;
  color: #333;
}

/* Texto */
.icon-card p {
  font-size: 14px;
  color: #555;
}

/* Quitar subrayado a enlaces */
.icon-card a {
  text-decoration: none;
  color: inherit;
}


/*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;
    margin: 10 10px 10px  20;
    text-align: center;
    line-height: 100px;
    color: #f4f8ff;
}

.contenedor-principal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Contenedor con grid */
.contenedor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}


/* Estilos de tarjeta */
.tarjeta {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}


.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.descripcion {
    padding: 10px;
    font-size: 14px;
    color: #333;
    text-align: justify;
}

/* Texto extra oculto inicialmente */
.extra-text {
    display: inline-block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.extra-text.visible {
    max-height: 200px; /* ajusta según lo necesario */
    opacity: 1;
}

.leer-mas {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.leer-mas:hover {
    text-decoration: underline;
}

