
:root {
  --verde: #263f35;
  --verde-oscuro: #192d25;
  --olivo: #78866b;
  --dorado: #c5a46d;
  --crema: #ede5d5;
  --blanco: #fffdf8;
  --piedra: #d8cbb7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--crema);
  color: var(--verde-oscuro);
  line-height: 1.7;
}

/* ENCABEZADO */
.encabezado {
  background: var(--verde-oscuro);
  color: var(--crema);
  padding: 25px 15px;
  text-align: center;
  border-bottom: 4px solid var(--dorado);
}

.marca h1 {
  color: var(--dorado);
  font-size: clamp(27px, 5vw, 42px);
  letter-spacing: 2px;
}

.subtitulo {
  margin-top: 5px;
  font-size: 15px;
}

#languageButton {
  margin-top: 15px;
  padding: 9px 17px;
  border: 1px solid var(--dorado);
  border-radius: 25px;
  background: var(--dorado);
  color: var(--verde-oscuro);
  font-weight: bold;
  cursor: pointer;
}

/* MENÚ */
.menu {
  background: var(--verde);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 8px;
}

.menu a {
  color: var(--crema);
  text-decoration: none;
  padding: 7px 12px;
  font-size: 14px;
  border-radius: 20px;
  transition: 0.3s;
}

.menu a:hover {
  background: var(--dorado);
  color: var(--verde-oscuro);
}

/* PORTADA */
.portada {
  min-height: 440px;
  background:
    linear-gradient(rgba(25,45,37,0.58), rgba(25,45,37,0.72)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Aculco_Plaza_Constituci%C3%B3n.jpg")
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px 20px;
}

.portada-contenido {
  max-width: 750px;
  color: white;
}

.portada h2 {
  color: var(--crema);
  font-size: clamp(30px, 6vw, 48px);
  margin-bottom: 15px;
}

.portada p {
  font-size: 18px;
  margin-bottom: 25px;
}

.boton-principal {
  display: inline-block;
  background: var(--dorado);
  color: var(--verde-oscuro);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

/* SECCIONES */
.seccion {
  max-width: 1150px;
  margin: 35px auto;
  padding: 35px 22px;
  background: var(--blanco);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(25,45,37,0.08);
}

.seccion h2 {
  color: var(--verde);
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  margin-bottom: 20px;
}

.seccion > p {
  margin: 12px auto;
  max-width: 950px;
  text-align: center;
}

.seccion h2::after {
  content: "";
  display: block;
  width: 75px;
  height: 3px;
  background: var(--dorado);
  margin: 12px auto 0;
}

/* TARJETAS */
.contenedor-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 25px;
}

.tarjeta {
  background: var(--crema);
  border: 1px solid var(--piedra);
  border-radius: 13px;
  padding: 17px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 7px 18px rgba(25,45,37,0.12);
}

.tarjeta h3 {
  color: var(--verde);
  margin: 12px 0;
  font-size: 20px;
}

.tarjeta p {
  font-size: 15px;
}

.tarjeta img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

/* IMÁGENES */
.imagen-seccion {
  display: block;
  width: min(100%, 440px);
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 25px auto 8px;
}

.pie-foto {
  text-align: center;
  font-size: 12px;
  color: #625c50;
}

.tarjeta a,
.pie-foto a {
  color: var(--verde);
  font-weight: bold;
  font-size: 13px;
}

/* COMUNIDADES */
#comunidades ul {
  max-width: 700px;
  margin: 20px auto;
  padding-left: 30px;
  columns: 2;
}

#comunidades li {
  margin-bottom: 8px;
}

/* GALERÍA */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.galeria img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--crema);
  transition: transform 0.3s;
}

.galeria img:hover {
  transform: scale(1.03);
}

/* VIDEO */
.video {
  width: 100%;
  max-width: 750px;
  margin: 25px auto;
  aspect-ratio: 16 / 9;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* MAPA */
.mapa {
  width: 100%;
  max-width: 800px;
  height: 350px;
  margin: 25px auto;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* REDES SOCIALES */
.redes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 22px;
}

.redes a {
  background: var(--verde);
  color: var(--crema);
  text-decoration: none;
  padding: 12px 17px;
  border-radius: 25px;
  transition: 0.3s;
}

.redes a:hover {
  background: var(--dorado);
  color: var(--verde-oscuro);
}

/* FORMULARIO */
#contactForm {
  max-width: 550px;
  margin: 25px auto 10px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--piedra);
  border-radius: 9px;
  background: var(--crema);
  color: var(--verde-oscuro);
  font-family: inherit;
  font-size: 15px;
}

#contactForm textarea {
  min-height: 120px;
  resize: vertical;
}

#contactForm button {
  padding: 13px;
  background: var(--verde);
  color: var(--crema);
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#contactForm button:hover {
  background: var(--olivo);
}

#formMessage {
  text-align: center;
  color: var(--verde);
  font-weight: bold;
  margin-top: 15px;
}

/* PIE DE PÁGINA */
footer {
  background: var(--verde-oscuro);
  color: var(--crema);
  text-align: center;
  padding: 28px 15px;
  border-top: 4px solid var(--dorado);
}

footer p {
  margin: 5px;
}

/* LEOPARDO */
.boton-leopardo {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--dorado);
  background: var(--verde);
  font-size: 30px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mensaje-leopardo {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 88px;
  max-width: 260px;
  padding: 15px;
  background: var(--crema);
  color: var(--verde-oscuro);
  border: 2px solid var(--dorado);
  border-radius: 13px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* CELULARES */
@media (max-width: 600px) {
  .encabezado {
    padding: 20px 10px;
  }

  .menu {
    gap: 4px;
  }

  .menu a {
    font-size: 12px;
    padding: 6px 9px;
  }

  .portada {
    min-height: 350px;
  }

  .seccion {
    margin: 18px 10px;
    padding: 25px 16px;
  }

  .contenedor-tarjetas {
    grid-template-columns: 1fr;
  }

  .tarjeta img {
    height: 190px;
  }

  .galeria {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .galeria img {
    height: 135px;
  }

  #comunidades ul {
    columns: 1;
  }

  .mapa {
    height: 280px;
  }

  .redes {
    flex-direction: column;
    align-items: center;
  }

  .redes a {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* CONTADOR DE VISITANTES */

.contador-visitas {
  text-align: center;
  background: var(--verde);
  color: var(--crema);
  border: 2px solid var(--dorado);
}

.contador-visitas h2 {
  color: var(--crema);
}

.contador-visitas p {
  margin-bottom: 18px;
}

.contador-visitas img {
  display: inline-block;
  max-width: 100%;
  min-height: 20px;
}
