/*
Theme Name: Museo Virtual de Minerales
Theme URI: https://museo.aimmgmsonora.com/
Author: AIMMGM Distrito Sonora
Author URI: https://aimmgmsonora.com/
Description: Tema para el Museo Virtual de Minerales con videos en 360°
Version: 1.0
*/

/* Cargar fuente Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');
/* Cargar Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Estilos base */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Encabezado */
header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

header h1 {
    margin: 0;
    font-size: 28px;
    text-align: center;
    font-weight: 800;
}

nav {
    text-align: center;
    margin-top: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    font-size: 18px;
    color: #333333;
    font-weight: 600;
}

/* Secciones del index dinámico */
.section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 800;
    color: #222;
}

.section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.grid {
    display: grid;
    place-items: center;
    gap: 20px;
}

/* Hero con fondo y contenido */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image--hero {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    color: #fff;
    text-align: center;
}

.hero__text {
    max-width: 800px;
}

.hero__text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero__text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero__link a {
    background-color: #007BFF;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero__link a:hover {
    background-color: #0056b3;
}

.hero__badge {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 160px;
    height: 160px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.hero__badge span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #004d40;
    line-height: 1.4;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero__content {
    flex-direction: column;
    padding: 20px;
  }
  .hero__text h1 {
    font-size: 32px;
  }
  .hero__text p {
    font-size: 16px;
  }
  .hero__badge {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 20px;
    padding: 15px;
  }
  .hero__badge span {
    font-size: 12px;
  }
}
.visitas-destacadas {
  background-color: #fff;
  padding: 80px 20px;
}

.visita-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.visita-imagen {
  flex: 0 0 320px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.visita-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visita-texto {
  flex: 1;
  max-width: 600px;
}

.visita-texto small {
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}

.visita-texto h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 10px 0;
}

.visita-texto hr {
  width: 40px;
  height: 2px;
  background-color: #00aaa0;
  border: none;
  margin: 10px 0;
}

.visita-texto p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-outline {
  padding: 10px 24px;
  border: 2px solid #d43f00;
  color: #d43f00;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #d43f00;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .visita-container {
    flex-direction: column;
    text-align: center;
  }

  .visita-texto {
    max-width: 90%;
  }

  .visita-texto h2 {
    font-size: 28px;
  }

  .btn-outline {
    display: inline-block;
    margin-top: 10px;
  }
}
.seccion-destacada {
  padding: 60px 20px;
  background: #000;
}

.destacados-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.tarjeta-articulo {
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  padding: 30px;
  position: relative;
  min-height: 300px;
  transition: transform 0.3s ease;
}

.tarjeta-articulo:hover {
  transform: scale(1.02);
}

.contenido-articulo {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.0));
  padding: 20px;
  width: 100%;
}

.contenido-articulo h3 {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.contenido-articulo small {
  font-weight: bold;
  color: #ccc;
  text-transform: uppercase;
  font-size: 12px;
}

.tarjeta-0 {
  grid-row: 1 / span 2;
}

.tarjeta-1, .tarjeta-2 {
  grid-column: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .destacados-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .tarjeta-articulo {
    min-height: 200px;
  }
  .tarjeta-0, .tarjeta-1, .tarjeta-2 {
    grid-column: auto;
    grid-row: auto;
  }
}
.coleccion-fotografica {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
}

.coleccion-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  min-height: 450px;
  padding: 40px 20px;
  position: relative;
}

.coleccion-circle {
  background-color: #007d8a;
  color: white;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.coleccion-circle h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
}

.coleccion-circle hr {
  margin: 16px auto;
  width: 40px;
  height: 2px;
  background: #fff;
  border: none;
}

.circle-button {
  position: absolute;
  right: -20px;
  bottom: 20px;
  background: white;
  color: #d43f00;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.circle-button:hover {
  transform: scale(1.1);
  background: #d43f00;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .coleccion-circle {
    width: 220px;
    height: 220px;
    padding: 25px 20px;
  }
  .coleccion-circle h2 {
    font-size: 18px;
  }
}
.investigacion-destacada {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
}

.investigacion-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  min-height: 450px;
  padding: 40px 20px;
  position: relative;
}

.investigacion-circle {
  background-color: #004d60;
  color: white;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.investigacion-circle h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
}

.investigacion-circle hr {
  margin: 16px auto;
  width: 40px;
  height: 2px;
  background: #fff;
  border: none;
}

.circle-button {
  position: absolute;
  right: -20px;
  bottom: 20px;
  background: white;
  color: #d43f00;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.circle-button:hover {
  transform: scale(1.1);
  background: #d43f00;
  color: white;
}

@media (max-width: 768px) {
  .investigacion-circle {
    width: 220px;
    height: 220px;
    padding: 25px 20px;
  }
  .investigacion-circle h2 {
    font-size: 18px;
  }
}
.historia-destacada {
  width: 100%;
  overflow: hidden;
  background: #000;
}

.historia-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  min-height: 450px;
  padding: 40px 20px;
  position: relative;
}

.historia-circle {
  background-color: #007d8a;
  color: white;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 40px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.historia-circle h2 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
}

.historia-circle hr {
  margin: 16px auto;
  width: 40px;
  height: 2px;
  background: #fff;
  border: none;
}

.circle-button {
  position: absolute;
  right: -20px;
  bottom: 20px;
  background: white;
  color: #d43f00;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.circle-button:hover {
  transform: scale(1.1);
  background: #d43f00;
  color: white;
}

@media (max-width: 768px) {
  .historia-circle {
    width: 220px;
    height: 220px;
    padding: 25px 20px;
  }
  .historia-circle h2 {
    font-size: 18px;
  }
}
.galerias-visitas {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.galerias-visitas h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
}

.bloques-galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.galeria-card {
  position: relative;
  width: 300px;
  height: 180px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.galeria-card:hover {
  transform: scale(1.02);
}

.galeria-card span {
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  text-align: left;
}

.descripcion-galeria {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .galeria-card {
    width: 90%;
  }
}
.grid-colecciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.tarjeta-coleccion {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.tarjeta-coleccion:hover {
  transform: translateY(-5px);
}

.tarjeta-coleccion .imagen {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.tarjeta-coleccion .info {
  padding: 1rem;
}

.tarjeta-coleccion h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.paginacion {
  text-align: center;
  padding: 2rem 1rem;
}

.paginacion .page-numbers {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.6rem 1rem;
  background: #f0f0f0;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.paginacion .page-numbers:hover {
  background: #005a87;
  color: #fff;
}

.paginacion .current {
  background: #005a87;
  color: #fff;
  font-weight: bold;
}
.bloques-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.galeria-card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  height: 220px;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.galeria-card span {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  text-align: center;
  padding: 0.7rem 1rem;
  position: absolute;
  bottom: 0;
}

.galeria-card:hover {
  transform: scale(1.02);
}
/* Pie de página */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    color: #666666;
}
