/* ============================================================
   style.css - BlackCut Barbería
   ============================================================ */

:root {
  --gold: #c9a15a;
  --gold-light: #e0c17d;
  --black: #0b0b0d;
  --dark: #151518;
  --dark-2: #1c1c20;
  --text-light: #f5f2ea;
  --text-muted: #a9a7ac;
}

* { box-sizing: border-box; }

body {
  background-color: var(--black);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .navbar-brand, .display-3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.text-gold { color: var(--gold) !important; }
.text-muted-light { color: var(--text-muted) !important; }

a { text-decoration: none; }

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.text-center .section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-dark { background-color: var(--dark); }

#inicio, #servicios, #barberos, #reserva, #contacto {
  scroll-margin-top: 90px;
}

/* ---------- Animación de aparición (scroll reveal) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Navbar ---------- */

#mainNavbar {
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 161, 90, 0.2);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: box-shadow 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

#mainNavbar.navbar-scrolled {
  background: rgba(11, 11, 13, 0.97);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  font-size: 1.6rem;
  color: var(--text-light) !important;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--gold) !important; }
.nav-link:hover::after { transform: scaleX(1); }

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.25s ease;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 161, 90, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,0.75) 0%, rgba(11,11,13,0.55) 50%, rgba(11,11,13,0.95) 100%);
}

.hero h1 { font-size: 4rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
}

/* ---------- Servicios ---------- */

.card-servicio {
  background: var(--dark-2);
  border: 1px solid rgba(201, 161, 90, 0.15);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-servicio:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.icono-servicio {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 161, 90, 0.12);
  color: var(--gold);
  font-size: 1.6rem;
}

.badge-precio {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.badge-duracion {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Barberos ---------- */

.card-barbero {
  background: var(--dark-2);
  border: 1px solid rgba(201, 161, 90, 0.15);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-barbero:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.foto-barbero {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

/* ---------- Formularios / Cards genéricas ---------- */

.card-form {
  position: relative;
  background: var(--dark-2);
  border: 1px solid rgba(201, 161, 90, 0.2);
  border-radius: 16px;
  color: var(--text-light);
  overflow: hidden;
}

.card-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.form-label { color: var(--text-muted); font-weight: 500; }

.form-control, .form-select {
  background-color: var(--black);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-light);
}

.form-control:focus, .form-select:focus {
  background-color: var(--black);
  color: var(--text-light);
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 161, 90, 0.25);
}

.form-control::placeholder { color: #6b6b70; }

.form-select option { background-color: var(--dark); color: var(--text-light); }

.resumen-reserva {
  background: rgba(201, 161, 90, 0.08);
  border: 1px solid rgba(201, 161, 90, 0.3);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--black);
  border-top: 1px solid rgba(201, 161, 90, 0.15);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 161, 90, 0.4);
  color: var(--gold);
  font-size: 1.15rem;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

.footer-contact-list li { margin-bottom: 0.6rem; }
.footer-contact-list a { color: var(--text-muted); transition: color 0.2s ease; }
.footer-contact-list a:hover { color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */

.whatsapp-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  z-index: 1080;
  animation: pulseWsp 2.4s infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-flotante:hover { background: #1ebe5b; color: #fff; transform: scale(1.08); }

@keyframes pulseWsp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Admin ---------- */

.admin-login {
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--dark) 0%, var(--black) 70%);
}

.stat-card { border-radius: 14px; }

.admin-dashboard {
  min-height: 100vh;
}

.admin-dashboard-inner { margin-top: 64px; }

.table-dark {
  --bs-table-bg: var(--dark-2);
  border-radius: 10px;
  overflow: hidden;
}

.table-dark thead {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1px;
}

/* ---------- Toast / Modal ---------- */

.toast { border-radius: 10px; }

.modal-content { border-radius: 16px; }

.invalid-feedback { color: #ff8080; }
