/* =========================================================================
   1. RESET & VARIABLES
   ========================================================================= */
:root {
  --bg-primary: #020202;
  --bg-secondary: #0a0a0a;
  --bg-surface: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #555555;

  --accent-gold: #D4AF37;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.3);

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --easing: cubic-bezier(0.85, 0, 0.15, 1);
  --transition-fast: 0.3s var(--easing);
  --transition-slow: 0.6s var(--easing);

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   2. TYPOGRAPHY & UTILS
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 500px;
}

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }

.gold-text { color: var(--accent-gold); }

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.2s, height 0.2s;
}

/* Glass panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

/* =========================================================================
   3. BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-gold {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn-gold:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* =========================================================================
   4. NAVBAR
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background-color 0.4s, padding 0.4s;
}

.navbar.scrolled {
  background-color: rgba(2, 2, 2, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Static nav logo */
.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast);
}
.nav-logo-img:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-item {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: attr(data-text);
  position: absolute;
  top: 100%; left: 0;
  transition: transform var(--transition-fast);
  transform: translateY(0);
}

.nav-item:hover { color: transparent; }
.nav-item:hover::before {
  color: var(--text-primary);
  transform: translateY(-100%);
}

.menu-trigger {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px; height: 20px;
  position: relative;
  z-index: 102;
  display: none;
}

.line {
  position: absolute;
  width: 100%; height: 2px;
  background: var(--text-primary);
  left: 0;
  transition: transform 0.4s, top 0.4s;
}
.line-1 { top: 0; }
.line-2 { top: 10px; }
.menu-trigger.active .line-1 { top: 5px; transform: rotate(45deg); }
.menu-trigger.active .line-2 { top: 5px; transform: rotate(-45deg); }

.mobile-only { display: none; }

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: var(--bg-primary);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right var(--transition-slow);
}
.mobile-menu.active { right: 0; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-nav-links a:not(.btn) {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-transform: uppercase;
}

/* =========================================================================
   5. HERO SECTION
   ========================================================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-layout {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* --- Logo Static with 3D Entry Animation --- */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.logo-entry-wrapper {
  position: relative;
  width: clamp(200px, 28vw, 340px);
  height: clamp(200px, 28vw, 340px);
}

.logo-static {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

.logo-ambient-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Slogan below logo */
.hero-slogan {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
}

.headline {
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.headline .line {
  display: block;
  overflow: hidden;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin: 0 auto 3rem auto;
  max-width: 80%;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}
.mouse {
  width: 24px; height: 36px;
  border: 2px solid var(--text-primary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.wheel {
  width: 4px; height: 8px;
  background: var(--text-primary);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* =========================================================================
   6. MARQUEE & REVIEWS BAND
   ========================================================================= */
.marquee-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-surface);
}

.marquee-row {
  overflow: hidden;
}

/* Reviews marquee row */
.reviews-marquee-row {
  padding: 2rem 0;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeReviews 50s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.4rem 1.8rem;
  min-width: 300px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.review-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

.review-stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

.review-author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* =========================================================================
   7. SERVICIOS — SELECTABLE CARDS
   ========================================================================= */
.section-header {
  margin: 0 auto 4rem auto;
  max-width: 600px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  position: relative;
  z-index: 1;
}

.service-card.selectable {
  cursor: pointer;
}

.card-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Animated fill background (black → white) */
.card-selected-bg {
  position: absolute;
  inset: 0;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 0;
  border-radius: inherit;
}

.service-card.selectable:hover .card-inner {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-subtle);
}

.service-card.selectable.selected .card-inner {
  transform: scale(1.03);
  border-color: var(--text-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-card.selectable.selected .card-selected-bg {
  transform: scaleX(1);
}

/* Text color inversion on select */
.service-card.selectable.selected .service-meta h3,
.service-card.selectable.selected .price,
.service-card.selectable.selected .service-desc,
.service-card.selectable.selected .select-text {
  color: var(--bg-primary);
}

/* VIP card stays gold */
.service-card.vip .card-inner {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.05);
}
.service-card.vip .card-selected-bg.vip-bg {
  background: var(--accent-gold);
}
.service-card.vip.selected .service-meta h3,
.service-card.vip.selected .price,
.service-card.vip.selected .service-desc,
.service-card.vip.selected .select-text {
  color: var(--bg-primary);
}

/* All card content above the fill */
.service-meta,
.service-desc,
.select-indicator {
  position: relative;
  z-index: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-meta h3 {
  font-size: 1.4rem;
  max-width: 70%;
  transition: color 0.3s;
}

.price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s;
}

.service-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
  transition: color 0.3s;
  font-size: 0.95rem;
}

/* Select indicator (replaces button) */
.select-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.select-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.3s;
}

.service-card.selectable:hover .select-text {
  color: var(--text-secondary);
}

.check-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: transparent;
  transition: all 0.3s;
}

.service-card.selectable.selected .check-icon {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--text-primary);
}

.gold-indicator .check-icon {
  border-color: var(--accent-gold);
}
.service-card.vip.selected .check-icon {
  background: var(--bg-primary);
  color: var(--accent-gold);
  border-color: var(--bg-primary);
}

/* =========================================================================
   8. GALERÍA (sin filtro B/N)
   ========================================================================= */
.gallery-section { overflow: hidden; }

.gallery-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.carousel-nav {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.nav-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.nav-btn svg { width: 24px; height: 24px; }

.carousel-container {
  padding-left: max(2rem, calc((100% - 1400px)/2 + 2rem));
  cursor: grab;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-container:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding-right: 2rem;
}

.gallery-item {
  width: 350px;
  height: 480px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.5s;
  flex-shrink: 0;
}

.gallery-item:hover {
  transform: scale(0.97);
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.05);
}

/* =========================================================================
   9. RESERVA — BOOKING SYSTEM
   ========================================================================= */
.booking-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Overwrite container max-width only for booking section to keep it tighter */
.booking-section .container {
  max-width: 1200px;
}

.booking-container {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.booking-copy {
  position: sticky;
  top: 8rem;
}

.process-steps {
  list-style: none;
  margin-top: 3rem;
}
.process-steps li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}
.process-steps .num {
  font-family: var(--font-heading);
  color: var(--text-muted);
}

.booking-form-wrapper {
  padding: 2.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  width: 100%;
}
.booking-form-wrapper h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.5rem; }

label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* Pill selectors */
.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill-selector.slider-pills {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  scrollbar-width: none;
}
.pill-selector.slider-pills::-webkit-scrollbar { display: none; }

.pill {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.pill:hover:not(.disabled) { border-color: var(--text-primary); }
.pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}
.pill.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Date pill special layout */
.date-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1rem;
  min-width: 70px;
}
.date-pill .day-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}
.date-pill .day-num {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

/* Date selector row */
.date-selector-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.date-selector-row .date-selector {
  flex: 1;
  min-width: 0;
}

.more-dates-wrapper {
  position: relative;
  flex-shrink: 0;
}

/* Calendar Popup */
.calendar-popup {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 50;
  background: #1a1a1a;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  padding: 1.4rem;
  width: 300px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  display: none;
}
.calendar-popup.open { display: block; }

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-nav-btn:hover { background: var(--bg-surface); border-color: var(--border-hover); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--text-secondary);
}
.cal-day:not(.cal-disabled):not(.cal-selected):hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.cal-day.cal-selected {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
}
.cal-day.cal-today {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}
.cal-day.cal-disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.cal-day.cal-empty { cursor: default; }

/* Barber selector */
.barber-selector {
  display: flex;
  gap: 1rem;
}

.barber-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-secondary);
  min-width: 100px;
}
.barber-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.barber-pill.active {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.barber-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  transition: border-color 0.3s, background 0.3s;
}
.barber-pill.active .barber-avatar {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.barber-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Time Grid — Booksy Style */
.time-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.time-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

.time-slot {
  padding: 0.65rem 0.4rem;
  text-align: center;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: var(--font-body);
  line-height: 1;
}

.time-slot.ts-available {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.time-slot.ts-available:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}
.time-slot.ts-booked {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.4;
}
.time-slot.ts-selected {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 700;
}

/* Time legend */
.time-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ld-available { background: rgba(255, 255, 255, 0.3); border: 1px solid var(--border-hover); }
.ld-booked { background: transparent; border: 1px solid rgba(255,255,255,0.1); opacity: 0.4; }
.ld-selected { background: var(--text-primary); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.custom-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hover);
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 8px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.custom-input:focus {
  outline: none;
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-submit { width: 100%; padding: 1.2rem; font-size: 1.1rem; }

/* Phone input with fixed "+" */
.phone-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.phone-wrapper:focus-within {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.phone-plus {
  padding: 0 0 0 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  user-select: none;
  pointer-events: none;
  flex-shrink: 0;
}
.phone-wrapper .phone-input {
  border: none;
  background: transparent;
  padding: 1rem 1.2rem 1rem 0.3rem;
  flex: 1;
  min-width: 0;
}
.phone-wrapper .phone-input:focus {
  outline: none;
  border: none;
  background: transparent;
}

/* =========================================================================
   10. UBICACIÓN
   ========================================================================= */
.location-single-col {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.location-details { padding: 0 1rem; }

.info-item { margin-bottom: 2.5rem; }
.info-item h4 {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.address-maps-link {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.7;
  transition: color 0.3s;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}
.address-maps-link:hover {
  color: var(--accent-gold);
  text-decoration-color: var(--accent-gold);
}

.hours-list { list-style: none; max-width: 400px; margin: 0 auto; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}
.hours-list .closed { color: var(--text-muted); }

.route-box {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.route-box h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--text-secondary); }

/* =========================================================================
   11. CONTACTO
   ========================================================================= */
.contact-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item h4 {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.contact-link {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.3s;
  line-height: 1.6;
}
.contact-link:hover { color: var(--text-primary); }

.address-link-inline {
  display: inline-block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hover);
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 8px;
  resize: vertical;
  min-height: 130px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.contact-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   12. FOOTER
   ========================================================================= */
.site-footer {
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 2rem;
}

.footer-links h5,
.footer-social h5 {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.footer-links a,
.footer-social a {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.footer-links a:hover,
.footer-social a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal { display: flex; gap: 2rem; }

/* =========================================================================
   13. ANIMATIONS & FADE-INS
   ========================================================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--easing) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   14. MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  .booking-container,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-section {
    padding-top: 8rem;
    text-align: center;
  }

  .actions { justify-content: center; }
  .subtitle { margin: 0 auto 3rem; }
  .carousel-container { padding-left: 2rem; }
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-copy { position: static; }
  .booking-form-wrapper { padding: 1.5rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .barber-selector { gap: 0.8rem; }
  .barber-pill { min-width: 80px; padding: 0.8rem 1rem; }
  .review-card { min-width: 260px; max-width: 260px; }

  /* Section padding tighter on mobile */
  .section-padding { padding: 5rem 0; }
}

@media (max-width: 500px) {
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .time-slot { font-size: 0.8rem; padding: 0.55rem 0.3rem; }
  .date-selector-row { flex-direction: column; }
  .more-dates-wrapper { align-self: flex-start; }
  .calendar-popup { right: auto; left: 0; width: 280px; }
  .barber-pill { padding: 0.7rem 0.8rem; }
  .barber-avatar { width: 40px; height: 40px; font-size: 1.1rem; }
  .booking-form-wrapper { padding: 1.2rem 1rem; }
  .pill { padding: 0.65rem 0.9rem; font-size: 0.82rem; }
  .headline { font-size: clamp(3rem, 10vw, 5rem); }
}

/* =========================================================================
   CHAT WIDGET
   ========================================================================= */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

/* Trigger button */
@keyframes chat-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
  50%       { transform: scale(1.07); box-shadow: 0 10px 36px rgba(0,0,0,0.55); }
}

@keyframes chat-ring {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.chat-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--easing), background 0.3s;
  flex-shrink: 0;
  animation: chat-pulse 2.2s ease-in-out infinite;
}

/* Anillo expansivo detrás del botón */
.chat-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0;
  animation: chat-ring 2.2s ease-out infinite;
  pointer-events: none;
}

.chat-trigger:hover {
  transform: scale(1.1);
  animation: none;
}
.chat-trigger:hover::before {
  animation: none;
}

.chat-trigger.active {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  animation: none;
}
.chat-trigger.active::before {
  animation: none;
}

.chat-trigger svg {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: opacity 0.2s, transform 0.3s;
}

.chat-icon-open  { opacity: 1; transform: scale(1); }
.chat-icon-close { opacity: 0; transform: scale(0.6); }

.chat-trigger.active .chat-icon-open  { opacity: 0; transform: scale(0.6); }
.chat-trigger.active .chat-icon-close { opacity: 1; transform: scale(1); }

/* Notification badge */
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #e53e3e;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Chat window */
.chat-window {
  width: 360px;
  max-height: 540px;
  background: #0d0d0d;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.9) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
}

.chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  background: #111;
  flex-shrink: 0;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.chat-brand-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-brand-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.chat-brand-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #48bb78;
  border-radius: 50%;
  display: inline-block;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.3rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.chat-close:hover { color: var(--text-primary); }
.chat-close svg { width: 18px; height: 18px; }

/* Messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* Message bubbles */
.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg--bot {
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg--user {
  background: var(--text-primary);
  color: var(--bg-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  align-self: flex-start;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Footer */
.chat-footer {
  border-top: 1px solid var(--border-color);
  background: #111;
  flex-shrink: 0;
}

/* Quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1rem 0;
}

.qr-btn {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.qr-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

/* Input row */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
}

#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
  border-radius: 30px;
  outline: none;
  transition: border-color 0.2s;
}
#chat-input:focus { border-color: var(--border-hover); }
#chat-input::placeholder { color: var(--text-muted); }

#chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
#chat-send:hover { transform: scale(1.08); }
#chat-send svg { width: 15px; height: 15px; }

/* Mobile adjustments */
@media (max-width: 500px) {
  .chat-widget { bottom: 1rem; right: 1rem; }
  .chat-window { width: calc(100vw - 2rem); max-height: 480px; }
}
