/* =============================
   VARIABLES DE TEMA
============================= */
:root {
  --fondo: #fdfaf6;
  --primario: #556b2f;
  --secundario: #a0522d;
  --sombra: rgba(0, 0, 0, 0.1);
  --detalle: #ddd6c5;
  --h1: var(--primario);
  --h2: var(--secundario);
  --p: var(--texto);
  --texto: #222;
}

body.dark-theme {
  --fondo: #1b1b1b;
  --blanco: #2b2b2b;
  --primario: #a0522d;
  --secundario: #556b2f;
  --sombra: rgba(0, 0, 0, 0.6);
  --detalle: #f5eeee;
  --h1: var(--secundario);
  --h2: var(--primario);
  --p: var(--detalle);
  --texto: #fff;
}

a { 
  color: var(--secundario);
}
a:hover {
  color: var(--primario);
}

/* =============================
   RESET + BASE
============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  padding-top: 70px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

p{
  text-align: center;
  margin-left: 150px;
  margin-right: 150px;
  font-size: 20px;
}

h1,h2{
  text-align: center;
}

/* H1 específico para páginas en construcción: bajar visualmente unos 'espacios' */
.construccion {
  display: block;
  margin-top: 2rem; /* baja el H1 aproximadamente dos espacios */
  margin-bottom: 0.5rem;
}

/* =======================
   NAVBAR
======================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--fondo), var(--secundario));
  box-shadow: 0 4px 15px var(--sombra);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
}

.logo img {
  height: 48px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--texto);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primario);
  background: rgba(0, 0, 0, 0.05);
}

/* Botón tema */
.btn-theme {
  background: var(--primario);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
.btn-theme:hover {
  transform: scale(1.08);
  background: var(--secundario);
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--texto);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: var(--blanco);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    display: none;
    animation: fadeIn 0.3s ease forwards;
    z-index: 999;
  }
  .nav-links.active { display: flex; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =======================
   HERO
======================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(34, 24, 10, 0.6), rgba(34, 24, 10, 0.6)),
              url("imagenes/edificio.jpg") center/cover no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: bold;
  color: #cecbcb;
  text-shadow: 0 6px 6px  #556b2f;
  margin-bottom: 10px;
  animation: fadeInUp 1.5s ease forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  opacity: 0.85;
  animation: fadeInUp 3s ease forwards;
  color: #cecbcb;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}



/* =======================
   SECCIONES
======================= */
#secciones {
  padding: 60px 20px;
  text-align: center;
}
#secciones h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: black;
}

.secciones-grid {
  display: grid;
  /* Mostrar tres tarjetas por fila en pantallas grandes */
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.seccion-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--blanco);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 300px;
}
.seccion-card img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.seccion-card h3 {
  position: absolute; left: 16px; bottom: 16px;
  color: #fff; background: rgba(0,0,0,.55);
  padding: 6px 12px; border-radius: 8px;
  font-size: 1.2rem; font-weight: 600;
}
.seccion-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.25); }
.seccion-card:hover img { transform: scale(1.05); }

/* =============================
   SECCIÓN DE ACTIVIDADES
============================= */

/*.actividades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.actividad {
  background: var(--fondo);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actividad:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.actividad img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.actividad-info {
  padding: 1rem 1.5rem;
}

.actividad-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primario);
  text-align: center;
}

.actividad-info p {
  color: var(--texto);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

.actividad-botones {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.25s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: scale(1.1);
}

.btn-info {
  background: var(--primario);
  color: white;
  border-radius: 10px;
  padding: 10px 18px;
  transition: background 0.3s ease, transform 0.25s ease;
}

.btn-info:hover {
  background: var(--secundario);
  transform: scale(1.05);
}

.actividad-botones {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}*/
.actividades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 8rem;
  padding: 8rem;
}

.actividad {
  background: var(--fondo);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actividad:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.actividad img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.actividad-info {
  padding: 1rem 1.5rem;
  text-align: center; /* <-- centra h3 y p */
}

.actividad-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primario);
  font-weight: 600;
}

.actividad-info p {
  color: var(--texto);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
}

/* botones centrados */
.actividad-botones {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.25s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: scale(1.1);
}

.btn-info {
  background: var(--primario);
  color: white;
  border-radius: 10px;
  padding: 10px 18px;
  transition: background 0.3s ease, transform 0.25s ease;
}

.btn-info:hover {
  background: var(--secundario);
  transform: scale(1.05);
}






  /* MODAL FORMULARIO (GENÉRICO) */

.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal .modal-contenido {
  background: #fff;
  color: #222;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  max-width: 500px;
  width: 90vw;
  text-align: center;
  position: relative;
  font-size: 1.1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: fadeIn 0.3s;
}
.modal .cerrar {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #a0522d;
  cursor: pointer;
  transition: color 0.2s;
}
.modal .cerrar:hover {
  color: #556b2f;
}

/* =======================
   MODAL INFO (MÁS INFO)
======================= */
.modal-info {
  display: none;
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,34,34,0.7);
  align-items: center; justify-content: center;
  transition: background 0.3s;
}
.modal-info[aria-hidden="false"] {
  display: flex;
}
.modal-info .modal-contenido {
  background: #fdfaf6;
  color: #222;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 18px;
  max-width: 420px;
  width: 90vw;
  text-align: left;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  font-family: 'Poppins', Arial, sans-serif;
  animation: fadeIn 0.3s;
}
.modal-info .cerrar {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #a0522d;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.modal-info .cerrar:hover {
  color: #556b2f;
}
#modal-title {
  margin-top: 0;
  margin-bottom: 0.7em;
  font-size: 1.6em;
  color: #556b2f;
  font-weight: 700;
  letter-spacing: 0.5px;
}
#modal-text {
  margin-bottom: 1.2em;
  font-size: 1.08em;
  line-height: 1.6;
  color: #333;
}
@media (max-width: 600px) {
  .modal .modal-contenido,
  .modal-info .modal-contenido {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    max-width: 98vw;
    font-size: 1em;
  }
}

/* =======================
   EVENTOS
======================= */
#eventos { padding: 40px 20px; text-align: center; }
#eventos h2 { font-size: 28px; color: var(--primario); margin-bottom: 10px; }
#eventos .subtitulo { color: var(--texto); margin-bottom: 30px; font-size: 16px; }
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.evento-card {
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.evento-card img { width: 100%; height: 180px; object-fit: cover; }
.evento-info { padding: 16px; text-align: left; }
.evento-info h3 { margin-bottom: 8px; color: var(--primario); }
.evento-info p { margin: 4px 0; font-size: 14px; color: var(--texto); }
.evento-botones { display: flex; justify-content: space-between; margin-top: 12px; }


/* =======================
   CONTACTO
======================= */
#contacto.contacto-oscuro {
  background: #222;
  color: #fdfaf6;
  padding: 40px 20px;
}
#contacto h2 { color: var(--primario); }
#contacto form {
  max-width: 700px;
  margin: 30px auto;
  padding: 26px 30px;
  background: #2b2b2b;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#contacto label { font-weight: 600; }
#contacto input, #contacto textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--detalle);
  border-radius: 10px; font-size: 15px;
  background: #1b1b1b; color: #fdfaf6;
}
#contacto input:focus, #contacto textarea:focus {
  border-color: var(--primario);
  box-shadow: 0 0 6px rgba(85,107,47,.6);
  outline: none;
}
#contacto textarea { resize: vertical; min-height: 120px; }
#contacto button { align-self: flex-start; }

/* FOOTER MODERNO Y COMPACTO */
/* ============================= */
.footer-oscuro {
  background: var(--primario);
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 15px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Columna izquierda */
.footer-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}
.footer-info p {
  margin: 6px 0;
  color: #f1f1f1;
}

/* Redes sociales */
.footer-redes {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.footer-redes a {
  color: #fff;
  font-size: 20px;
  transition: transform 0.2s ease, color 0.3s;
}
.footer-redes a:hover {
  color: var(--secundario);
  transform: scale(1.15);
}

/* Columna derecha: Formulario */
.footer-form h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}
.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  box-shadow: 0 0 6px var(--secundario);
}






/* Enlaces específicos: Aviso legal, Privacidad, Cómo llegar y Cookies */
/* Enlaces específicos: negro y blanco al hover */
a[href*="aviso-legal"],
a[href*="privacidad"],
a[href*="como-llegar"],
a[href*="cookies"] {
  color: #111 !important;
  transition: color 0.3s;
}
a[href*="aviso-legal"]:hover,
a[href*="privacidad"]:hover,
a[href*="como-llegar"]:hover,
a[href*="cookies"]:hover {
  color: #fff !important;
}

.footer-link {
  margin-right: 10px;
}




/*mensaje exito*/

  .form-success {
  display: none;
  text-align: center;
  color: #fff;
  background: var(--primario);
  padding: 12px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 400px;
  font-size: 1.1rem;
}
.form-success.show {
  display: block;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-redes {
    justify-content: center;
  }
}

/* Splash ocupa toda la pantalla */
#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content { text-align: center; }

/* Logo animado */
.splash-logo {
  max-width: 200px;
  opacity: 0;
  animation: zoomIn 2s ease forwards;
}

/* Frase aparece después */
.splash-frase {
  font-size: 2rem;
  color: #333;
  margin-top: 15px;
  opacity: 0;
  animation: fadeIn 2s ease 1s forwards; /* empieza 1s después del logo */
}

/* Animaciones */
@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Ocultar contenido principal al inicio */
.oculto { opacity: 0; }
#main-content.mostrar {
  opacity: 1;
  transition: opacity 1.5s ease;
}

/* ======================= BOTONES UNIFICADOS CON DEGRADADO ANIMADO CONTINUO ======================= */
 /* Base común para todos los botones (excepto galería) */ 
 .btn, .btn-compartir, .btn-theme, .btn-enviar, .footer-form button.btn, #scrollTop { 
  background: linear-gradient(135deg, 
  var(--primario), var(--secundario), 
  var(--primario));
   background-size: 200% 200%; 
   color: #fff; 
   border: none; 
   border-radius: 10px; 
   padding: 12px 20px; 
   font-weight: 700; 
   cursor: pointer; 
   transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; 
   box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); } 

   /* Animación degradado al hover */ 
   .btn:hover, .btn-compartir:hover, 
   .btn-theme:hover, .btn-enviar:hover, 
   .footer-form button.btn:hover, #scrollTop:hover { 
      transform: scale(1.05); 
      color: #fff; 
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); 
      animation: gradientFlow 3s ease infinite; }

  /* Efecto de flujo del degradado */
      @keyframes gradientFlow { 0% { background-position: left center; } 50% { background-position: right center; } 100% { background-position: left center; } }

  #contador-asistentes {
  display: inline-block;
  margin-left: 10px;
  font-weight: 600;
  color: var(--secundario);
  font-size: 0.95rem;
} 

.btn-socio {
  display: block;
  background: var(--secundario);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  margin:0 auto;
}




/* ===================================== */
/* BOTONES DE GALERÍA (GENIOS) RESTAURADOS */
/* ===================================== */
.botones-galeria {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px auto;
  text-align: center;
}

#genios5,
#genios6 {
  width: 360px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: 'Eagle Lake', cursive;
  font-size: 1.8rem;
  border: 4px solid rgb(165, 127, 95);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fdf5e6; /* texto más claro, legible sobre fondo */
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Fondos específicos */
#genios5 { background-image: url("imagenes/castillo1.jpg"); }
#genios6 { background-image: url("imagenes/collage1.jpg"); }

/* Hover con efecto unificado */
#genios5:hover,
#genios6:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}


.submodal-contenido {
  text-align: center;
  max-width: 500px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  color: black;
}

.submodal-contenido img.actividad-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin: 15px 0;
}


/* =========================
   GALERÍA MODERNA DE IMÁGENES
========================= */

.galeria-section {
  padding: 40px 20px;
  text-align: center;
}

.galeria-section h1 {
  font-size: 32px;
  color: var(--primario);
  margin-bottom: 8px;
}

.galeria-section .subtitulo {
  color: var(--texto);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Grid de imágenes */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.galeria-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =========================
   LIGHTBOX MODERNO
========================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

#caption {
  margin: 10px auto;
  text-align: center;
  color: #fff;
  font-size: 16px;
}

/* Botón cerrar */
.lightbox .cerrar {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .cerrar:hover {
  color: var(--secundario);
}
/* Modal PDF: visor emergente y descargable */
.pdf-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pdf-modal[aria-hidden="false"] { display: flex; }
.pdf-modal-contenido {
  background: var(--fondo);
  width: 95%;
  max-width: 1100px;
  height: 90%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pdf-cerrar {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--secundario);
  padding: 8px 12px;
  cursor: pointer;
}
.pdf-toolbar {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(90deg,var(--detalle),transparent);
  align-items: center;
}
.pdf-toolbar .btn { padding: 8px 12px; border-radius: 8px; }
.pdf-frame-wrap { flex: 1; background: #fff; }
.pdf-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 600px) {
  .pdf-modal-contenido { height: 85%; max-width: 98%; }
  .pdf-toolbar { flex-direction: column; align-items: stretch; }
}
.contenedor {

    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}
.contenedor-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.tarjeta-producto {
    position: relative;
    overflow: hidden;
    border: solid white 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    width: 300px;
}

.tarjeta-producto a{
  text-decoration: none;
}

.tarjeta-producto img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tarjeta-producto:hover img {
    transform: scale(1.6);
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;

}

.tarjeta-producto:hover .overlay {
    opacity: 1;
}


.nombre {
  text-decoration: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #1b1b1a;
  font-family: 'Eagle lake';
  font-size: 25px;
  margin: 0;
}

.nombre:hover {
  text-decoration: none;
    cursor: pointer;
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

.monforte {
  position: relative;
  margin-top: 50px;
  font-size: 40px;
  color: #1b1b1a;
  font-family: 'Eagle lake';
  margin-top: 5px;
  text-align: center;
}


/* BOTÓN WHATSAPP FLOTANTE */

.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #035320;
  color: #fff;
  font-size: 28px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 2000;
  
}

.btn-whatsapp:hover {
  background-color: #1ebe5b;
  transform: scale(1.15);
}

/* Animación pequeña */
@keyframes pulseWhatsApp {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.btn-whatsapp {
  animation: pulseWhatsApp 2s infinite;
}

/* Scroll Top */
#scrollTop {
  position: fixed;
  right: 16px;
  bottom: 90px;
  display: none;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--primario);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin: 10px;
}
#scrollTop.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}
#divImagenCabecera {
  align-items: center;
  justify-content: center;
    z-index: 1;
    display: flex;    
}

#formulario-socio {
  display: flex;
  justify-content: center;
  align-items: center; /* centrado en pantalla */
  padding: 40px 20px;
  background: url("imagenes/formulario.jpg") center/cover no-repeat; /* fondo de la página */
  min-height: 100vh;
}

#formulario-socio .formulario-contenido {
  position: relative;
  background: #fff;
  color: #222;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  overflow: hidden; /* para que la marca de agua no sobresalga */
}

/* Marca de agua (logo) */
#formulario-socio .formulario-contenido::before {
  content: "";
  position: absolute;
  inset: 0; /* ocupa todo el div */
  background: url("imagenes/logoclaro.jpg") center/cover no-repeat;
  opacity: 0.4; /* más visible que antes */
  pointer-events: none;
}

/* Aseguramos que los campos estén encima */
#formulario-socio h2,
.form-organizado,
.btn-enviar,
#form-success {
  position: relative;
  z-index: 1;
}

/* Contenido del formulario */
#formulario-socio h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primario);
  position: relative;
  z-index: 1;
}

.form-organizado {
  position: relative;
  z-index: 1; /* asegura que los inputs estén por encima del logo */
}

.form-organizado .form-group { margin-bottom: 1.2rem; }
.form-organizado label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primario); }
.form-organizado input,
.form-organizado textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--detalle);
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,0.9);
  color: #222;
}
.form-organizado textarea { resize: vertical; min-height: 100px; }



#form-success {
  display: none;
  text-align: center;
  color: #fff;
  background: var(--primario);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
}
#form-success.show { display: block; }

@media (max-width: 600px) {
  #formulario-socio { padding: 20px 10px; }
  #formulario-socio .formulario-contenido { padding: 1.2rem; font-size: 0.95rem; }
  #formulario-socio .formulario-contenido::before { width: 140px; height: 140px; }
}

/* ================================
   MEJORAS RESPONSIVE GENERALES
================================ */

/* Ajuste de márgenes y paddings en móviles */
@media (max-width: 600px) {
  html, body {
    padding: 0 !important;
  }
  p {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 16px;
  }
  h1, h2 {
    font-size: 1.3rem;
    padding: 0 5px;
  }
  .socios {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
}

/* Centrar únicamente el botón 'Hazte socio' en la sección de socios */
#socios .container {
  text-align: center;
}
#btn-socio {
  display: inline-block; /* mantener tamaño natural y permitir centrado por text-align */
}

/* NAVBAR */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 10px;
  }
  .logo img {
    height: 38px;
  }
  .nav-links {
    right: 0;
    left: 0;
    width: 90vw;
    margin: 0 auto;
  }
}

/* HERO */
@media (max-width: 600px) {
  .hero {
    height: 60vh;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* SECCIONES GRID */
@media (max-width: 900px) {
  .secciones-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 5px;
  }
}
@media (max-width: 600px) {
  .secciones-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 2px;
  }
  .seccion-card {
    height: 220px;
  }
  .seccion-card img {
    height: 120px;
  }
}

/* EVENTOS GRID */
@media (max-width: 900px) {
  .eventos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .evento-card img {
    height: 120px;
  }
  .evento-info {
    padding: 10px;
  }
}

/* GALERÍA */
@media (max-width: 900px) {
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .galeria-img {
    height: 120px;
  }
}



/* FOOTER */
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 5px;
  }
  .footer-info h3, .footer-form h3 {
    font-size: 1rem;
  }
  .footer-form input,
  .footer-form textarea {
    font-size: 13px;
    padding: 8px 8px;
  }
  .footer-form button.btn {
    font-size: 14px;
    padding: 8px;
  }
  .footer-bottom {
    font-size: 12px;
    padding-top: 8px;
    margin-top: 12px;
  }
}

/* Enlaces del footer */
.footer-bottom a{
  color: #111;                /* negro */
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color:#fff;   /* blanco al pasar el ratón */
}

/* Enlaces específicos en el footer: siempre blanco incluso en hover */
/* Enlaces específicos en el footer: negro y blanco al hover */
.footer-bottom a[href*="aviso-legal"],
.footer-bottom a[href*="privacidad"],
.footer-bottom a[href*="como-llegar"],
.footer-bottom a[href*="cookies"] {
  color: #111 !important;
  transition: color 0.3s;
}
.footer-bottom a[href*="aviso-legal"]:hover,
.footer-bottom a[href*="privacidad"]:hover,
.footer-bottom a[href*="como-llegar"]:hover,
.footer-bottom a[href*="cookies"]:hover {
  color: #fff !important;
}



/* BOTÓN WHATSAPP Y SCROLL TOP */
@media (max-width: 600px) {
  .btn-whatsapp {
    width: 38px;
    height: 38px;
    font-size: 18px;
    bottom: 12px;
    right: 12px;
  }
  #scrollTop {
    width: 32px;
    height: 32px;
    font-size: 14px;
    right: 10px;
    bottom: 60px;
  }
}

/* FORMULARIO SOCIO */
@media (max-width: 600px) {
  #formulario-socio {
    padding: 10px 2px;
    min-height: 70vh;
  }
  #formulario-socio .formulario-contenido {
    padding: 0.7rem 0.4rem;
    max-width: 98vw;
    font-size: 0.95rem;
  }
  #formulario-socio .formulario-contenido::before {
    background-size: 80px 80px;
  }
}

/* TARJETAS GALERÍA */
@media (max-width: 600px) {
  .contenedor-galeria {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .tarjeta-producto {
    width: 98vw;
    min-width: 0;
    max-width: 100vw;
  }
  .tarjeta-producto img {
    height: 100px;
  }
  .btn-ver {
    font-size: 18px;
    padding: 6px 10px;
  }
  .nombre {
    font-size: 15px;
  }
}

/* Ajuste de modales en móviles */
@media (max-width: 600px) {
  .modal .modal-contenido,
  .modal-info .modal-contenido {
    padding: 0.7rem 0.3rem 0.7rem 0.3rem;
    max-width: 98vw;
    font-size: 0.95em;
  }
}




/* =======================
   HERO
======================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(34, 24, 10, 0.6), rgba(34, 24, 10, 0.6)),
              url("imagenes/edificio.jpg") center/cover no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: bold;
  color: #cecbcb;
  text-shadow: 0 6px 6px  #556b2f;
  margin-bottom: 10px;
  animation: fadeInUp 1.5s ease forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  opacity: 0.85;
  animation: fadeInUp 3s ease forwards;
  color: #cecbcb;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =======================
   SECCIONES
  ======================= */
  #secciones {
  padding: 60px 20px;
  text-align: center;
}
#secciones h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: black;
}

.secciones-grid {
  display: grid;
  /* Mostrar tres tarjetas por fila en pantallas grandes */
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.seccion-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--blanco);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 300px;
}
.seccion-card img {
  width: 100%; height: 220px; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.seccion-card h3 {
  position: absolute; left: 16px; bottom: 16px;
  color: #fff; background: rgba(0,0,0,.55);
  padding: 6px 12px; border-radius: 8px;
  font-size: 1.2rem; font-weight: 600;
}
.seccion-card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.25); }
.seccion-card:hover img { transform: scale(1.05); }
