/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HEADER */
.header {
    width: 100%;
    padding: 20px 0;
    background: white;
    display: flex;
    justify-content: center;
    font-family: 'BlueSilky', sans-serif;
}

.logo {
    width: 100px;
    transition: 0.25s;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.15);
}

/* CONTENEDOR PRINCIPAL */
.cancha-selector {
    width: 100%;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* BOTONES SUPERIORES */
.selector-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.selector-btn {
    width: 300px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.selector-btn:hover {
    transform: scale(1.1);
}

/* ÁREA QUE CAMBIA */
.cancha-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    margin-top: 10px;
}

/* IMAGEN PRINCIPAL */
.cancha-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* BOTÓN PEQUEÑO DERECHO */
.mini-btn-link {
    position: absolute;
    right: 10%;  
    top: 80%;     
    transform: translateY(-50%);
    z-index: 10;
}

.mini-btn {
    width: 400px;
    height: auto;
    transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mini-btn:hover {
    transform: scale(1.05);
}

/* BOTONES + MINI BOTÓN RESPONSIVE */
@media(max-width: 600px) {
    .selector-btn {
        width: 120px;
    }

    .mini-btn {
        width: 110px;
    }
}


/* =========================
   SECCIÓN GALERÍA
========================= */
.galeria-section {
    background-color: #e2ffe0;
    color: rgb(255, 255, 255);
    padding: 60px 5% 70px; 
    text-align: center;
}

.galeria-titulo {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.galeria-filtros {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.galeria-filtros button {
  background: transparent;
  border: 2px solid rgba(1, 48, 2, 0.6);
  color: rgba(1, 53, 2, 0.6);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.28s ease;
}

.galeria-filtros button:hover,
.galeria-filtros button.activo {
  background: rgba(2, 95, 5, 0.6);
  color: #ffffff;
  border-color: #ffffff;
}


.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;

  transition: grid-template-rows 0.4s ease;
}

.galeria-grid-wrapper {
  transition: height 0.6s ease;
  overflow: hidden;
  height: auto;
}

.galeria-grid-wrapper.animando {
  transition: height 0.6s ease;
}



.galeria-item {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  transform-origin: center top;
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.35s ease;
  opacity: 1;
}

.galeria-item img {
  display: block;
  width: 100%;
  height: 220px; 
  object-fit: cover;
}

.galeria-item.oculto {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
}

@media (max-width: 992px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .galeria-item img { height: 200px; }
}

/* Responsive: 1 column */
@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }
  .galeria-item img { height: 180px; }
}

#cancha-image.fade {
    opacity: 0;
    transition: opacity .3s ease;
}
#cancha-image {
    transition: opacity .3s ease;
}

/* ============================
   CONTROL TOTAL DEL BOTÓN MINI
   PARA CADA RESOLUCIÓN
=============================== */

/* ---- 400px ---- */
@media (max-width: 400px) {
    .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 5%;     /* ajusta */
    }
    .mini-btn {
        width: 150px;  /* ajusta tamaño */
    }
}

/* ---- 500px ---- */
@media (max-width: 500px) and (min-width: 401px) {
   .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 180px;  /* ajusta tamaño */
    }
}

/* ---- 600px ---- */
@media (max-width: 600px) and (min-width: 501px) {
 .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 200px;  /* ajusta tamaño */
    }
}

/* ---- 700px ---- */
@media (max-width: 700px) and (min-width: 601px) {
   .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 230px;  /* ajusta tamaño */
    }
}

/* ---- 800px ---- */
@media (max-width: 800px) and (min-width: 701px) {
.mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 280px;  /* ajusta tamaño */
    }
}

/* ---- 900px ---- */
@media (max-width: 900px) and (min-width: 801px) {
   .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 300px;  /* ajusta tamaño */
    }
}

/* ---- 1000px ---- */
@media (max-width: 1000px) and (min-width: 901px) {
 .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 320px;  /* ajusta tamaño */
    }
}

/* ---- 1100px ---- */
@media (max-width: 1100px) and (min-width: 1001px) {
 .mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 330px;  /* ajusta tamaño */
    }
}

/* ---- 1200px ---- */
@media (max-width: 1200px) and (min-width: 1101px) {
.mini-btn-link {
        top: 80%;      /* ajusta */
        right: 10%;     /* ajusta */
    }
    .mini-btn {
        width: 350px;  /* ajusta tamaño */
    }
}

.cancha-content {
    margin-bottom: 50px; /* AJUSTA COMO QUIERAS */
}

/* OCULTAR BOTÓN "TODO" EN MÓVILES */
@media (max-width: 700px) {
    .galeria-filtros button[data-filter="todo"] {
        display: none;
    }
}

/* ANIMACIÓN FADE PARA IMAGEN Y BOTÓN */
.fade {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

#cancha-image,
.mini-btn {
    transition: opacity 0.3s ease;
}

/* Imagen full width sin deformarse */
.banner-section {
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenedor del player debajo de la imagen */
.player-container {
    text-align: center;
    margin-top: 20px;   /* separación opcional */
}

/* Botón */
.player {
    width: 350px;
    max-width: 90%;
    transition: transform .25s ease;
}

.player:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .player {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .player {
        width: 180px;
    }
}


.banner-section {
    width: 100%;
    overflow: hidden; /* necesario para el recorte lateral */
}

/* PC / pantallas grandes — NO se corta */
.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 🟢 Móviles — se agranda la imagen y se recorta un poco a los lados */
@media (max-width: 480px) {
    .banner-img {
        height: 60vw;       /* controla qué tan alta será la imagen en móviles */
        width: 100%;
        object-fit: cover;  /* recorta laterales pero mantiene proporción */
        object-position: center; /* recorte centrado */
    }
}

.galeria-item {
    cursor: pointer;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
}


/* Fondo oscuro */
.modal {
    display: none; 
    position: fixed;
    z-index: 999999 !important;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.85);
}


/* Imagen ampliada */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: modalZoom 0.35s ease;
    border-radius: 10px;
}

/* Animación al aparecer */
@keyframes modalZoom {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Botón cerrar */
.modal-close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    transform: scale(1.2);
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    animation: modalZoom 0.35s ease;
}

.modal {
    position: fixed !important;
    z-index: 999999999 !important;
}

.modal-close {
    z-index: 1000000000 !important;
}

.modal-content {
    position: relative;
    z-index: 1000000001 !important;
}


.social-icons a img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* vuelve las imágenes blancas */
    transition: 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
    filter: brightness(1); /* color original al pasar el mouse */
}

/* ============================
   FOOTER MODERNO
============================ */

.footer-modern {
    background: #045f0d;
    padding: 60px 6% 30px;
    color: white;
    font-family: 'Sansita One', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* LOGO */
.footer-brand img {
    width: 160px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
    margin-bottom: 15px;
}

.brand-text {
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.85;
}

/* TÍTULOS */
.footer-col h3 {
    font-size: 28px;
    margin-bottom: 18px;
    color: #a9ffb9;
    letter-spacing: 1px;
}

/* LISTA DE CONTACTO */
.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-col ul li a {
    color: white;
    opacity: 0.85;
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

/* ÍCONOS PEQUEÑOS */
.icon-small {
    width: 22px;
}

/* REDES SOCIALES */
.social-icons a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.18);
}


/* COPYRIGHT */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    font-size: 15px;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-col ul li {
        justify-content: center;
    }
}

/* fuerza color original aunque haya reglas antiguas */
.social-icons a img {
    filter: none !important;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

/* --------------------
   Footer social icons
   -------------------- */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* iconos: color original, tamaño consistente y hover */
.social-icons a img {
    width: 40px;
    height: 40px;
    filter: none; /* asegura color original */
    transition: transform 0.28s ease, opacity 0.28s ease;
    display: block;
}

.social-icons a:hover img {
    transform: scale(1.15);
    opacity: 0.98;
}

/* =========================
  BOTÓN "GALERÍA" ABAJO
========================= */
.galeria-ver-mas {
  margin-top: 40px;
  text-align: center;
}

.galeria-boton {
  display: inline-block;
  background-color: #1b4f01;
  color: #fffffe;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 35px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.galeria-boton:hover {
  background-color: transparent;
  color: #027317;
  border-color: #103e00;
  transform: translateY(-3px);
}


/* Animación inicial al aparecer */
.galeria-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.galeria-item:nth-child(1) { animation-delay: 0.05s; }
.galeria-item:nth-child(2) { animation-delay: 0.10s; }
.galeria-item:nth-child(3) { animation-delay: 0.15s; }
.galeria-item:nth-child(4) { animation-delay: 0.20s; }
.galeria-item:nth-child(5) { animation-delay: 0.25s; }
.galeria-item:nth-child(6) { animation-delay: 0.30s; }
.galeria-item:nth-child(7) { animation-delay: 0.35s; }
.galeria-item:nth-child(8) { animation-delay: 0.40s; }
.galeria-item:nth-child(9) { animation-delay: 0.45s; }
.galeria-item:nth-child(10) { animation-delay: 0.50s; }
.galeria-item:nth-child(11) { animation-delay: 0.55s; }
.galeria-item:nth-child(12) { animation-delay: 0.60s; }
.galeria-item:nth-child(13) { animation-delay: 0.65s; }
.galeria-item:nth-child(14) { animation-delay: 0.70s; }
.galeria-item:nth-child(15) { animation-delay: 0.75s; }
.galeria-item:nth-child(16) { animation-delay: 0.80s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.galeria-item img {
  transition: transform 0.45s ease, filter 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.15);
}