@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Pacifico&family=Rubik+Moonrocks&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #1c1c1c;
  min-height: 100vh;
  background: url("../images/fondo6.jpeg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

body.page-gastronomia {
  background: linear-gradient(135deg, #E0F7FA, #FFFFFF) fixed;
}

body.page-infraestructura {
  background: url('../images/fondo10.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.page-oficios {
  background: url("../images/oficio.jpeg") no-repeat center center fixed;
  background-size: cover;
}

body.page-turismo {
  background: url("../images/fondo8.jpg") no-repeat center center fixed;
  background-size: cover;
}

body.page-creditos {
  background: url("../images/creditos.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #e0eefe;
}

body.page-inicio {
  animation: fondoMovimiento 60s linear infinite;
}

@keyframes fondoMovimiento {
  0% {
    background-position: center center;
  }
  50% {
    background-position: center top;
  }
  100% {
    background-position: center center;
  }
}

header {
  padding: 20px 40px;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  background: linear-gradient(to right, #00A3E0, #0077B6);
}

header h1 {
  font-family: 'Pacifico', cursive;
  font-size: 50px;
  margin: 0;
  text-shadow: 0 0 10px #ffffff;
}

@keyframes ondas {
  to {
    transform: rotate(360deg);
  }
}

.menu {
  background: linear-gradient(to right, #00A3E0, #0077B6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 20px;
  position: relative;
}

.menu a {
  display: block;
  padding: 14px 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 3px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.menu a:hover {
  color: #ffffcc;
}

.menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contenedor,
.contenido {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contenido {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.contenido p,
.contenedor p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
}

iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.4);
}

.subtitulo,
.titulo-historia,
.titulo,
.titulo-seccion,
.titulo-oficios {
  font-family: 'Pacifico', cursive;
  text-align: center;
  color: #00A3E0;
  margin: 40px auto 30px;
  text-shadow: 1px 1px 6px #B3E6FA;
}

.subtitulo {
  font-size: 60px;
  margin: 30px auto 20px;
  max-width: 900px;
}

.titulo-historia,
.titulo-seccion,
.titulo-oficios {
  font-size: 60px;
}

.titulo {
  animation: brillar 3s infinite;
}

@keyframes brillar {
  0%, 100% {
    text-shadow: 0 0 8px #00A3E0;
  }
  50% {
    text-shadow: 0 0 20px #00FFFF, 0 0 30px #00A3E0;
  }
}

.pagina-titulo {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 15px 0;
  border-radius: 12px;
  color: #0077B6;
  font-size: 60px;
  text-align: center;
  text-shadow: 0 0 10px #00a3e0;
}

.caja-historia {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 40px;
  max-width: 900px;
  box-shadow: 0 10px 30px rgba(0, 163, 224, 0.4);
  text-align: center;
}

.caja-historia img {
  width: 90%;
  max-width: 500px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.infraestructura-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}

.card,
.card-turismo,
.tarjeta,
.oficio {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 3px solid #00A3E0;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0, 163, 224, 0.35);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.3s;
}

.card:nth-child(3) {
  animation-delay: 0.5s;
}

.card:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 163, 224, 0.7);
  border-color: #0077B6;
  z-index: 10;
}

.card img,
.card-turismo img,
.tarjeta img {
  width: 100%;
  object-fit: cover;
}

.card img {
  aspect-ratio: 4 / 3;
  border-bottom: 3px solid #00A3E0;
  transition: transform 0.5s, filter 0.5s;
}

.card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.card-content,
.tarjeta-contenido {
  padding: 25px 30px 30px;
}

.card-content h3,
.tarjeta-contenido h3 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #005f8a;
  text-shadow: 0 0 8px rgba(0, 115, 180, 0.3);
}

.card:hover .card-content h3 {
  color: #0099e6;
  text-shadow: 0 0 20px #00c0ff;
}

.card-content p,
.tarjeta-contenido p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.tarjeta {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #FFF, #E0F7FF);
  border-left: 8px solid #00A3E0;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(0, 163, 224, 0.4);
  margin-bottom: 30px;
  padding: 20px;
}

.tarjeta:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 163, 224, 0.6);
}

.tarjeta img {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  border: 5px solid #00A3E0;
  margin-right: 25px;
  box-shadow: 0 0 10px #00D9FF;
}

.boton-regresar {
  display: inline-block;
  margin: 20px auto 40px;
  padding: 12px 25px;
  background-color: #00A3E0;
  color: white;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 163, 224, 0.5);
}

.boton-regresar:hover {
  background-color: #0090C7;
}

.contenedor-oficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  margin: 20px auto;
  max-width: 600px;
}

.oficio {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid #00A3E0;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 163, 224, 0.2);
}

.oficio:hover {
  transform: translateY(-5px);
}

.oficio h3 {
  margin: 15px 0 10px;
}

.turismo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
}

.card-turismo {
  width: 320px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 163, 224, 0.3);
  border: 2px solid #00A3E0;
}

.card-turismo:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 163, 224, 0.5);
}

.card-turismo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-turismo .contenido {
  padding: 20px;
}

footer {
  text-align: center;
  padding: 18px;
  background-color: #0077B6;
  color: #FFFFFF;
  border-top: 4px solid #00A3E0;
  box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.4);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  user-select: none;
}
