/* ===================== */
/* REY MARTINEZ BARBER */
/* PREMIUM CSS 2026 🔥 */
/* ===================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins', sans-serif;
  background:#0b0b0b;
  color:white;
  line-height:1.5;
}

/* ===================== */
/* HEADER */
/* ===================== */

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 24px;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(10px);
  position:sticky;
  top:0;
  z-index:999;
  border-bottom:1px solid rgba(255,215,0,.12);
}

.logo{
  height:62px;
  object-fit:contain;
}

header button{
  width:auto;
  padding:12px 18px;
}

/* ===================== */
/* HERO */
/* ===================== */

.hero{
  min-height:65vh;
  background:
  linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.88)),
  url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70') center/cover;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.hero h1{
  font-size:3rem;
  color:gold;
  text-shadow:0 0 18px rgba(255,215,0,.18);
  max-width:800px;
}

/* ===================== */
/* SECCIONES */
/* ===================== */

section{
  padding:45px 22px;
  max-width:1300px;
  margin:auto;
}

h2{
  font-size:1.7rem;
  margin-bottom:22px;
  border-left:4px solid gold;
  padding-left:12px;
  color:white;
}

/* ===================== */
/* GRID */
/* ===================== */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

/* ===================== */
/* CARDS */
/* ===================== */

.card{
  background:#161616;
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  transition:.28s ease;
  border:1px solid rgba(255,255,255,.05);
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 28px rgba(0,0,0,.45);
  border-color:rgba(255,215,0,.22);
}

.card img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.card-content{
  padding:14px;
}

.card h3{
  color:gold;
  margin-bottom:8px;
  font-size:1.05rem;
}

.card p{
  font-size:14px;
  color:#cfcfcf;
}

/* CARD SELECCIONADA */

.selected{
  border:2px solid gold;
  transform:translateY(-4px);
  box-shadow:0 0 0 2px rgba(255,215,0,.18);
}

/* ===================== */
/* FORMULARIOS */
/* ===================== */

input,
select{
  width:100%;
  padding:14px;
  margin:10px 0;
  border:none;
  outline:none;
  border-radius:12px;
  background:#1d1d1d;
  color:white;
  font-size:16px;
  transition:.2s;
}

input:focus,
select:focus{
  box-shadow:0 0 0 2px gold;
}

option{
  color:white;
}

/* ===================== */
/* BOTONES */
/* ===================== */

button{
  background:linear-gradient(135deg,#ffd700,#c9a100);
  color:#111;
  border:none;
  padding:14px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  font-size:16px;
  transition:.25s ease;
}

button:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
}

#reserva button,
.box button{
  width:100%;
}

/* ===================== */
/* HORARIOS */
/* ===================== */

.ocupada{
  color:#ff5a5a;
}

.pasada{
  color:#888;
}

.disponible{
  color:#58ff58;
}

/* ===================== */
/* TOTAL */
/* ===================== */

#total{
  color:gold;
  font-size:24px;
  font-weight:700;
}

/* ===================== */
/* TICKET */
/* ===================== */

#ticket{
  background:#161616;
  padding:14px;
  border-radius:14px;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.05);
}

#ticket p{
  padding:8px 0;
  border-bottom:1px solid #2c2c2c;
}

#ticket p:last-child{
  border-bottom:none;
}

/* ===================== */
/* MAPA */
/* ===================== */

iframe{
  width:100%;
  height:280px;
  border:none;
  border-radius:16px;
  margin-top:14px;
}

/* ===================== */
/* LOGIN */
/* ===================== */

.box{
  width:92%;
  max-width:380px;
  margin:80px auto;
  background:#161616;
  padding:28px;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}

.box h2{
  margin-bottom:18px;
}

/* ===================== */
/* ADMIN PANEL */
/* ===================== */

.admin-top{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:20px;
  align-items:center;
}

.admin-top input{
  width:auto;
  min-width:180px;
}

.admin-list{
  padding:20px;
}

.admin-card{
  margin-bottom:18px;
  padding:18px;
  border-left:4px solid gold;
}

.admin-card h3{
  margin-bottom:10px;
}

.admin-card p{
  margin:6px 0;
}

/* ===================== */
/* BOTÓN ELIMINAR */
/* ===================== */

.btn-delete{
  background:#d62828;
  color:white;
  margin-top:12px;
}

.btn-delete:hover{
  background:#ef3b3b;
}

/* ===================== */
/* SWITCH */
/* ===================== */

.switch{
  position:relative;
  display:inline-block;
  width:60px;
  height:30px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  inset:0;
  cursor:pointer;
  background:#555;
  transition:.3s;
  border-radius:30px;
}

.slider:before{
  content:"";
  position:absolute;
  width:22px;
  height:22px;
  left:4px;
  bottom:4px;
  background:white;
  border-radius:50%;
  transition:.3s;
}

input:checked + .slider{
  background:gold;
}

input:checked + .slider:before{
  transform:translateX(30px);
}

#estadoTexto{
  font-weight:700;
}

/* ===================== */
/* ANIMACIÓN */
/* ===================== */

.card{
  animation:fadeUp .45s ease;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(15px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media(max-width:768px){

  header{
    flex-direction:column;
    gap:12px;
    text-align:center;
  }

  .hero{
    min-height:55vh;
  }

  .hero h1{
    font-size:2.1rem;
  }

  section{
    padding:35px 16px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .admin-top{
    flex-direction:column;
    align-items:stretch;
  }

  .admin-top input,
  .admin-top button{
    width:100%;
  }

  .logo{
    height:55px;
  }

}
/* ===================== */
/* TARJETA DE SELLOS */
/* ===================== */

#sellos{
  text-align:center;
}

#sellos h2{
  display:inline-block;
}

#tarjeta{
  margin-top:25px;
}

.sellos-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:22px;
}

.sello{
  background:#161616;
  border:2px solid #333;
  border-radius:16px;
  padding:18px;
  font-size:26px;
  opacity:.28;
  transition:.3s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}

.sello.activo{
  opacity:1;
  border-color:gold;
  box-shadow:
    0 0 10px rgba(255,215,0,.55),
    0 0 22px rgba(255,215,0,.18);
  transform:translateY(-2px);
}

.btn-asistencia{
  width:100%;
  margin-top:12px;
  background:#1db954;
  color:white;
}

.btn-asistencia:hover{
  filter:brightness(1.08);
}

.asistencia-ok{
  margin-top:14px;
  color:#58ff58 !important;
  font-weight:700;
  text-align:center;
  background:rgba(88,255,88,.08);
  border:1px solid rgba(88,255,88,.25);
  padding:10px;
  border-radius:12px;
}

/* RESPONSIVE TARJETA */

@media(max-width:768px){

  .sellos-grid{
    grid-template-columns:repeat(2,1fr);
  }

}