/* ========================== */
/* Estilos para página CULTURA */
/* ========================== */

.contenido {
  padding: clamp(1rem, 3vw, 3rem);
  margin-right: var(--ancho-barra);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.encabezado-seccion {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 85%;
}

/* ========================== */
/* BLOQUE SUPERIOR */
/* ========================== */
.bloque-superior {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  width: 90%;
  margin-bottom: 4rem;
}

/* Tarjeta principal */
.tarjeta-mexico {
  display: flex;
  flex-direction: row;
  background-color: var(--color-nav);
  border-radius: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.imagen-mexico {
  flex: 1 1 50%;
}

.imagen-mexico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contenido-mexico {
  flex: 1 1 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contenido-mexico h2 {
  /*font-size: clamp(1.8rem, 3vw, 2.6rem);*/
  margin-bottom: 0.5rem;
}

.contenido-mexico p {
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Subtarjetas dentro de la principal */
.subtarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mini-tarjeta {
  flex: 1 1 calc(45% - 1rem);
  background-color: var(--color-nav-hover);
  border-radius: 0.6rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.mini-tarjeta i {
  /*font-size: 1.6rem;*/
  margin-bottom: 0.4rem;
  color: var(--color-icono);
}

.mini-tarjeta h4 {
  /*font-size: 1rem;*/
}

.mini-tarjeta:hover {
  background-color: var(--color-nav);
  transform: translateY(-4px);
}

/* Columna derecha con dos tarjetas */
.columna-derecha {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tarjeta-lateral {
  background-color: var(--color-nav);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tarjeta-lateral:hover {
  transform: translateY(-5px);
}

.tarjeta-lateral img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.tarjeta-lateral .texto {
  padding: 1rem;
}

.tarjeta-lateral h3 {
  margin-bottom: 0.4rem;
}

/* ========================== */
/* TARJETAS SECUNDARIAS */
/* ========================== */
.tarjetas-secundarias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 90%;
}

.tarjeta-cultura {
  background-color: var(--color-nav);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 calc(33% - 2rem);
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tarjeta-cultura:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.tarjeta-cultura img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tarjeta-cultura .texto {
  padding: 1rem 1.2rem;
}

.tarjeta-cultura h3 {
  /*font-size: clamp(1rem, 2vw, 1.3rem);*/
  margin-bottom: 0.5rem;
}

.tarjeta-cultura p {
  /*font-size: clamp(0.9rem, 1.5vw, 1.1rem);*/
  line-height: 1.5;
  color: var(--color-texto);
}

/* ======= BARRA DE NAVEGACIÓN =======*/

/* --- TOOLTIP PERSONALIZADO --- */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Estado inicial del tooltip */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%; /* se muestra encima del icono */
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  /*font-size: 0.75rem;*/
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  
  /* Animación fade-in */
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition-delay: 0.1s; /* espera breve antes de aparecer */
}

/* Flecha del tooltip */
.tooltip::before {
  content: '';
  position: absolute;
  bottom: 95%;
  left: 25%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: 0.1s;
}

/* Estado visible al hacer hover */
.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  transform: translateX(-100%) translateY(0);
}


/* ========================== */
/* RESPONSIVO */
/* ========================== */
/*
@media (max-width: 1000px) {
  .bloque-superior {
    grid-template-columns: 1fr;
  }

  .tarjeta-mexico {
    flex-direction: column;
  }

  .mini-tarjeta {
    flex: 1 1 100%;
  }
}

@media (max-width: 700px) {
  .tarjeta-cultura {
    flex: 1 1 100%;
  }
}
*/