/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ==== ADAPTACIÓN PARA MÓVILES ==== */
@media (max-width: 768px) {
  .seccion-imagen-texto {
    flex-direction: column-reverse !important;
  }

  .galeria-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f2ec;
  color: #333;
  line-height: 1.6;  height: 100%;

}

footer {
  flex-shrink: 0;
  background-color: #2e3e2e;
  color: #f7ffe6;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Header y navegación */
header.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
}

.logo-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-container img {
  width: 50px;
  height: auto;
}

.logo-container h1 {
  font-size: 1.8rem;
  color: #f0ffe8;
  text-shadow: 1px 1px 3px #000;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: #b4dfab;
  color: #222;
}

/* Hero section */
.hero-section {
  height: 100vh;
  background-image: url('img/wallpaper.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  color: #fff;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px #000;
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 2px #000;
}

.hero-buttons a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #8cc57c;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-buttons a:hover {
  background-color: #6ea55f;
}

/* Main content */
main {
  max-width: 1200px;
  margin: auto;
}

section[data-seccion] {
  padding: 4rem 1rem;
}

/* Sección imagen-texto */
.seccion-imagen-texto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin: 4rem 0;
}

.seccion-imagen-texto .imagen {
  flex: 1 1 45%;
}

.seccion-imagen-texto .imagen img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.seccion-imagen-texto .texto {
  flex: 1 1 45%;
}

.seccion-imagen-texto h3 {
  font-size: 2rem;
  color: #2e3e2e;
  margin-bottom: 1rem;
}

.seccion-imagen-texto h4 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: #4f734c;
}

.seccion-imagen-texto p {
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* Alternar dirección */
.seccion-imagen-texto.inverso {
  flex-direction: row-reverse;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #2e3e2e;
  color: #f7ffe6;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.footer-content p + p {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav#main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  nav#main-nav.activo {
    display: block;
  }

  nav#main-nav ul {
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    border-radius: 10px;
  }

  nav#main-nav ul li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .logo-container h1 {
    font-size: 1.4rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons a {
    margin-top: 0.5rem;
    display: block;
  }

  .seccion-imagen-texto {
    flex-direction: column;
  }

  .seccion-imagen-texto.inverso {
    flex-direction: column;
  }
}

.agenda-header {
  text-align: center;
  max-width: 800px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}

.agenda-header h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: #2e3e2e;
  margin-top:30px;
}

.agenda-header p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

.agenda-iframe-container {
  max-width: 90%;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}
.alerta-gris {
background-color: #e0e0e0;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    min-height: 80vh;
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    font-weight: 500;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-item {
  height: 240px; /* Altura fija visual uniforme */
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* CLAVE: hace que la imagen lo rellene todo */
  display: block;
  transition: transform 0.3s ease;
  border-radius: 10px;
}

.galeria-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.galeria-item:hover img {
  transform: scale(1.03);
}

/* Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 1rem;
}

.popup-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.popup-cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .popup-cerrar {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
  }
}

.equipo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem 1rem;
}

.equipo-fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card-container {
  perspective: 1000px;
  width: 220px;
  height: 300px;
  position: relative;
  flex-shrink: 0;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d5d5d5;
  top: 0;
  left: 0;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  background-color: #b38728;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Sombra sutil solo visual para la presidenta */
.card-presidenta .card-back {
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4) inset, 0 0 8px rgba(255, 215, 0, 0.2);
}

.card-back h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card-back p {
  font-size: 1rem;
}
.formulario-carnet {
  max-width: 500px;
  margin: 3rem auto 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-carnet input {
  padding: 1rem;
  font-size: 1.1rem;
  width: 100%;
  border: 2px solid #ccc;
  border-radius: 10px;
}

.formulario-carnet button {
  padding: 1rem;
  font-size: 1.1rem;
  background-color: #8cc57c;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-carnet button:hover {
  background-color: #6ea55f;
}

.carnet-box {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.carnet.nuevo-estilo {
  background-color: #f3f3ea;
  border: 2px solid #aac8a1;
  border-radius: 18px;
  padding: 1.5rem 2rem;
  max-width: 700px;
  width: 90%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
}

.carnet-icono-lateral {
  width: 90px;
  height: auto;
  flex-shrink: 0;
}

.carnet-datos-laterales {
  flex-grow: 1;
}

.carnet-datos-laterales h3 {
  font-size: 1.6rem;
  color: #2e3e2e;
  margin-bottom: 0.2rem;
}

.carnet-sub {
  font-size: 1.1rem;
  color: #5d8156;
  margin-bottom: 1rem;
}

.carnet-datos-laterales p {
  font-size: 1.05rem;
  margin: 0.4rem 0;
  color: #333;
}

/* Responsive */
@media (max-width: 600px) {
  .carnet.nuevo-estilo {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .carnet-icono-lateral {
    width: 70px;
  }
}
