/* ===== Barbearia Modelo — Template ===== */

:root {
  --bg: #0b0713;
  --bg-alt: #150c22;
  --card: #1c1030;
  --gold: #7c3aed;
  --gold-light: #a78bfa;
  --text: #f4eefc;
  --text-muted: #c3aee0;
  --whatsapp: #25d366;
  --border: #3a1f52;
  --radius: 10px;
  --max-width: 1080px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--gold-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,15,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
}

.logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: #16150f;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #2a0f45 0%, #0b0713 60%);
  padding: 80px 24px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 12px;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: #16150f;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #0b1a10;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.service-card:hover { border-color: var(--gold); }

.service-card h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.25;
}

.price {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Hours */
.hours-list {
  max-width: 480px;
  margin: 0 auto;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.hours-list li span:first-child { color: var(--text-muted); }
.hours-list li span:last-child { color: var(--gold-light); font-weight: 500; }

/* Carousel */
.carousel {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll 18s linear infinite;
}

.carousel-track img {
  width: 360px;
  height: 260px;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-75%); }
}

/* Local */
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.address {
  color: var(--text-muted);
  margin: 16px 0 24px;
  font-size: 1.05rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Booking form */
.booking-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.form-row label.full {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

input, select {
  background: #0e0e0f;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
  opacity: 0.8;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.horarios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

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

.slot-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0e0e0f;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
}

.slot-btn:hover { border-color: var(--gold); }

.slot-btn.selected {
  background: var(--gold);
  color: #16150f;
  border-color: var(--gold);
}

.slot-btn.taken {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.error { color: #e2645a; }
.form-status.success { color: var(--whatsapp); }

/* Footer */
.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-credit {
  margin-top: 4px;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-links { gap: 12px; font-size: 0.8rem; }
  .brand-name { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr; }
  .carousel-track img { width: 260px; height: 190px; }
}
