/* Fondo general con imagen */
body {
    margin: 0;
    font-family: 'Josefin Sans';
    background: url('../assets/futbol.png') no-repeat center center/cover;
    height: 100vh;
    overflow: hidden;
    color: white;
    position: relative;
  }
  
  /* Capa oscura encima del fondo */
  .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
  /* Contenido principal */
  .content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* Logo centrado */
  .logo {
    width: 150px;
    margin-bottom: 20px;
    padding: 20px;
  }

  .name {
    color: rgb(19, 208, 16);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    margin-top: 30px;
  }
  
  /* Título principal */
  h1 {
    font-size: 3rem;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 30px;
    margin-top: -30px;
  }
  
  /* Barra de filtros */
  .filters {
    background: rgba(255, 255, 255, 0.85);
    color: black;
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 95%;
  }
  
  /* Inputs y selects */
  .filters input,
  .filters select {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    border-radius: 20px;
    font-size: 1rem;
    color: black;
    flex: 1;
    min-width: 0;
  }
  
/* Botón lupa */
.search-btn {
    background: rgb(19, 208, 16);
    border: none;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
  }
  
  .search-btn:hover {
    transform: scale(1.1);
  }
  
  .search-btn img {
    width: 22px;
    height: 22px;
  }

 /* NAVBAR BASE */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 999;
  box-sizing: border-box;
}

/* Elementos */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left i {
  font-size: 24px;
  color: white;
}


/* Enlace derecho */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* Menú toggle (hamburguesa) */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  display: none;
  cursor: pointer;
}

.nav-right .add-court-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-right .add-court-link:hover {
  color: var(--verde);
  background: rgba(255, 255, 255, 0.1);
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-content {
  background: rgb(2, 30, 50);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content p {
  margin-bottom: 15px;
  width: 100%;
}

.modal-content input {
  background: rgb(255, 255, 255);
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-size: 1rem;
  color: black;
  width: 100%;
  max-width: 300px;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.modal-content button {
  background: rgb(19, 208, 16);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background: rgb(16, 180, 14);
}
  
  /* Adaptabilidad móvil */
  @media (max-width: 768px) {
    .name {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.8rem;
        padding: 0 15px;
        margin-top: -20px;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
        padding: 15px;
        width: 85%;
    }

    .filters input,
    .filters select {
        width: 100%;
        font-size: 1.08rem;
        padding: 18px 14px 18px 14px;
        min-height: 58px;
        height: 58px;
        line-height: 1.2;
        box-sizing: border-box;
        border-radius: 16px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-clip: padding-box;
    }
    .filters input[type="date"] {
        width: 100%;
        font-size: 1.08rem;
        padding: 18px 14px 18px 14px;
        min-height: 58px;
        height: 58px;
        line-height: 1.2;
        box-sizing: border-box;
        border-radius: 16px;
        color: #555;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-clip: padding-box;
        position: relative;
        z-index: 2;
    }
    .fecha-wrapper {
        position: relative;
        width: 100%;
        margin-bottom: 0;
    }
    .fecha-label {
        display: block;
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
        font-size: 1.05rem;
        pointer-events: none;
        transition: 0.2s all;
        z-index: 3;
        background: transparent;
    }
    .fecha-wrapper input[type="date"]:focus + .fecha-label,
    .fecha-wrapper input[type="date"]:not(:placeholder-shown) + .fecha-label,
    .fecha-wrapper input[type="date"]:valid + .fecha-label {
        opacity: 0;
        visibility: hidden;
    }
    .fecha-wrapper input[type="date"]::-webkit-input-placeholder {
        color: transparent;
    }
    .fecha-wrapper input[type="date"]::-moz-placeholder {
        color: transparent;
    }
    .fecha-wrapper input[type="date"]:-ms-input-placeholder {
        color: transparent;
    }
    .fecha-wrapper input[type="date"]::placeholder {
        color: transparent;
    }
    .search-btn {
        width: 100%;
        height: 54px;
        border-radius: 20px;
        margin-top: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1.1rem;
    }

    .search-btn i {
        font-size: 1.2rem;
    }

    .search-btn::after {
        content: "Buscar";
        font-size: 1rem;
        font-weight: 500;
    }

    .menu-toggle {
        display: block;
    }

    .nav-right {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(30, 42, 56, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--borde);
        z-index: 1000;
    }

    .nav-right.active {
        display: flex;
    }

    .nav-right .add-court-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .modal-content {
        width: 90%;
        padding: 1.5rem;
        margin: 20px;
    }

    .modal-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .modal-content input {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
    }

    .modal-content button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .filters input[type="date"].placeholder-visible::-webkit-input-placeholder {
        color: #888;
        opacity: 1;
    }
    .filters input[type="date"].placeholder-visible::-moz-placeholder {
        color: #888;
        opacity: 1;
    }
    .filters input[type="date"].placeholder-visible:-ms-input-placeholder {
        color: #888;
        opacity: 1;
    }
    .filters input[type="date"].placeholder-visible::placeholder {
        color: #888;
        opacity: 1;
    }
  }
  
  /* Ajustes adicionales para pantallas muy pequeñas */
  @media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .filters {
        width: 90%;
        padding: 12px;
    }

    .filters input,
    .filters select {
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-content {
        padding: 1.2rem;
    }
  }
  
  /* Desktop menu */
  @media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .nav-right {
        display: flex;
        position: relative;
        background: none;
        padding: 0;
        border: none;
    }

    .nav-right .add-court-link {
        white-space: nowrap;
    }
  }
  