/* ==========================================================================
   Barbería de San Pedro — Layout & Responsive
   ========================================================================== */

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

/* ── Sections ── */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

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

.text-center {
  text-align: center;
}

/* ── Grid Systems ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

/* ── Flex utilities ── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(11, 11, 11, 0.5) 0%,
      rgba(11, 11, 11, 0.7) 50%,
      rgba(11, 11, 11, 0.95) 100%);
  z-index: 1;
}

.hero-since2019 {
  font-size: 2rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  padding: 0 var(--space-lg);
}

.hero-title {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-md);
  animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-subtitle {
  font-size: var(--fs-body);
  color: var(--color-warm-white-dim);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: var(--lh-relaxed);
  animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
  font-family: 'Great Vibes', cursive;
}

.hero-subtitle span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--color-warm-white);
  margin-top: 0.25rem;
}

.hero .badge {
  animation: badgeSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  margin-bottom: var(--space-md);
}

.hero .btn-group {
  animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
  justify-content: center;
}

.hero .metrics {
  animation: heroTextIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
  justify-content: center;
  margin-top: var(--space-xl);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ── Story/About split layout ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.split-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.split-image:hover img {
  transform: scale(1.03);
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(200, 164, 93, 0.2);
  border-radius: var(--border-radius);
  pointer-events: none;
}

/* ── Experience / Benefits grid ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-xl);
}

/* ── CTA Section ── */
.cta-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(11, 11, 11, 0.85) 0%,
      rgba(11, 11, 11, 0.9) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--color-carbon);
  border-top: 1px solid rgba(200, 164, 93, 0.1);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--fs-small);
  color: var(--color-steel-light);
  line-height: var(--lh-relaxed);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: var(--fs-small);
  color: var(--color-steel-light);
}

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

.footer-bottom {
  border-top: 1px solid rgba(200, 164, 93, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: var(--fs-badge);
  color: var(--color-steel);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 93, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-steel-light);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200, 164, 93, 0.1);
}

/* ── Reservation page ── */
.reservation-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-lg) var(--space-2xl);
}

.reservation-card {
  background: var(--color-card);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  max-width: 700px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.reservation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Success page */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(200, 164, 93, 0.15);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 2.5rem;
  color: var(--color-gold);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First)
   ========================================================================== */

/* ── Tablet & Below (< 992px) ── */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    transition: right var(--transition-base);
    border-left: 1px solid rgba(200, 164, 93, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .metrics {
    gap: var(--space-lg);
  }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {

  .container,
  .nav-inner {
    padding: 0 var(--space-md);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .metrics {
    flex-direction: column;
    gap: var(--space-md);
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    text-align: center;
  }

  .testimonial-card {
    min-width: 280px;
    width: 85vw;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .reservation-card {
    padding: var(--space-lg);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

/* ── Small Mobile (< 480px) ── */
@media (max-width: 479px) {
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 0 var(--space-sm);
  }
}