/* Página de inicio. Requiere base.css. */

/* ── Hero ── */
#hero { min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-videos { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero-videos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; filter: brightness(0.5) saturate(0.9); }
.hero-videos video.active { opacity: 1; }
.hero-videos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 17, 16, 0.96) 0%, rgba(18, 17, 16, 0.55) 40%, rgba(18, 17, 16, 0.15) 70%); }
.hero-inner { width: 100%; padding-top: 8rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-place { font-weight: 600; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.hero-place::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero-title { max-width: 15ch; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #d9d3ca; max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; list-style: none;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line-strong);
}
.hero-facts li { color: #d9d3ca; font-size: 0.98rem; }
.hero-facts strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-dots { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 6vw, 4.5rem); display: flex; gap: 0.5rem; }
.hero-dot { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: background-color 0.3s, width 0.3s; }
.hero-dot.active { width: 38px; background: var(--text); }

/* ── Nosotros ── */
#about { padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--faint); }
.about-text p { color: var(--muted); margin-bottom: 1.1rem; max-width: 60ch; }
.about-text p strong { color: var(--text); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 2rem 0; }
.facts div { background: var(--bg); padding: 1.1rem 1.25rem; }
.facts dt { font-size: 0.9rem; color: var(--muted); }
.facts dd { font-stretch: 80%; font-weight: 700; font-size: 1.35rem; line-height: 1.2; }

/* ── Por qué una barbería hispana (ES) ── */
#why { padding: 0 0 var(--section); }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
.why-grid > div { background: var(--bg); padding: 1.5rem 1.4rem; }
.why-grid h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25; margin-bottom: 0.5rem; }
.why-grid p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why-grid > div { padding: 1.1rem 1rem; } .why-grid h3 { font-size: 1rem; } .why-grid p { font-size: 0.9rem; } }

/* ── Servicios y precios ── */
#services { padding: var(--section) 0; background: var(--surface); }
.services-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.services-intro { position: sticky; top: 6rem; }
.services-intro .lead { margin-bottom: 1.75rem; }
.services-note { margin-top: 1.25rem; font-size: 0.92rem; color: var(--faint); }
.menu-group + .menu-group { margin-top: 2.75rem; }
.menu-group h3 { margin-bottom: 0.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--text); }
.menu-list { list-style: none; }
.menu-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.menu-name { font-weight: 600; }
.menu-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-desc { grid-column: 1 / -1; font-size: 0.95rem; color: var(--muted); }
.service-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.service-page { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.service-page img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-page:hover img { transform: scale(1.04); }
.service-page span { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent); font-weight: 700; font-stretch: 85%; text-transform: uppercase; font-size: 1.05rem; }

/* ── Equipo ── */
#barbers { padding: var(--section) 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head .lead { margin-top: -0.25rem; }
.barbers-slider-wrap { overflow: hidden; }
.barbers-track { display: flex; gap: 1rem; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.barber-card { flex: 0 0 calc((100% - 3rem) / 4); }
.barber-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--surface); }
.barber-card-info { padding-top: 0.75rem; }
.barber-name { font-weight: 700; font-size: 1.1rem; }
.barber-title { font-size: 0.92rem; color: var(--muted); }
.barber-book-btn { display: inline-block; margin-top: 0.35rem; font-weight: 600; color: var(--accent-hover); text-decoration: none; }
.barber-book-btn:hover { text-decoration: underline; }
.slider-controls { display: flex; gap: 0.5rem; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); font-size: 1.25rem; cursor: pointer; transition: border-color 0.2s, opacity 0.2s; }
.slider-btn:hover { border-color: var(--text); }
.slider-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Aviso de empleo (dentro de la sección del equipo) ── */
.hiring-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); margin-top: clamp(3rem, 7vw, 4.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hiring-photo { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 22% center; }
.hiring-body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; align-items: flex-start; }
.hiring-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(200, 49, 43, 0.14); color: var(--accent-hover); font-weight: 700; font-size: 0.9rem;
}
.hiring-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hover); box-shadow: 0 0 0 4px rgba(221, 64, 56, 0.18); }
.hiring-title {
  font-stretch: 66%; font-weight: 760; text-transform: uppercase; line-height: 0.95; word-spacing: 0.1em;
  font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; text-wrap: balance;
}
.hiring-lead { color: #d9d3ca; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 48ch; margin-bottom: 1.25rem; }
.hiring-req { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.hiring-req li { padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.95rem; }
.hiring-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.hiring-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 860px) {
  .hiring-card { grid-template-columns: 1fr; }
  .hiring-photo { aspect-ratio: 16 / 10; height: auto; object-position: center; }
}

/* ── Galería ── */
#gallery { padding: var(--section) 0; background: var(--surface); }
.gallery-masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 0.75rem; }
.gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(1) { grid-row: span 2; grid-column: span 2; }

/* ── Reseñas ── */
#reviews { padding: var(--section) 0; }
.reviews-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.rating-box { position: sticky; top: 6rem; }
.rating-number { font-stretch: 70%; font-weight: 800; font-size: clamp(5rem, 11vw, 8rem); line-height: 0.85; font-variant-numeric: tabular-nums; }
.rating-stars { color: var(--accent-hover); font-size: 1.4rem; letter-spacing: 0.1em; margin: 0.75rem 0 0.25rem; }
.rating-box p { color: var(--muted); margin-bottom: 1.5rem; }
.review-list { columns: 2; column-gap: 1rem; }
.review-card { break-inside: avoid; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; }
.review-text { margin-bottom: 1rem; }
.review-author { font-weight: 600; color: var(--muted); font-size: 0.95rem; }

/* ── Tienda ── */
#store { padding: var(--section) 0; background: var(--surface); }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.product-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.product-name { font-weight: 700; margin-top: 0.85rem; line-height: 1.3; }
.product-desc { font-size: 0.93rem; color: var(--muted); margin-top: 0.3rem; }
.product-price { font-weight: 700; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }

/* ── Visítanos ── */
#contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-list { display: grid; gap: 1.75rem; margin: 2rem 0; }
.contact-list dt { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.25rem; }
.contact-list dd { font-size: 1.15rem; font-weight: 500; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-hover); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.5rem; font-variant-numeric: tabular-nums; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.map-embed { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-facade { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, #2a2622, var(--surface) 70%); }
.map-load { min-height: 48px; padding: 0 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(18, 17, 16, 0.6); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.2s; }
.map-load:hover { border-color: var(--text); }
.map-address { margin-top: 0.75rem; color: var(--faint); font-size: 0.92rem; }

/* ── Preguntas frecuentes ── */
#faq { padding: var(--section) 0; background: var(--surface); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; margin-top: 1rem; }
.faq-list dt { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.faq-list dd { color: var(--muted); }

/* ── Sobre la barbería + blog ── */
#local { padding: var(--section) 0; }
.local-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); }
.local-grid p { color: var(--muted); margin-bottom: 1.1rem; max-width: 62ch; }
.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 1.1rem 0; text-decoration: none; }
.post-list a:hover .post-title { color: var(--accent-hover); }
.post-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; transition: color 0.2s; }
.post-meta { font-size: 0.9rem; color: var(--faint); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .barber-card { flex-basis: calc((100% - 2rem) / 3); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-grid, .services-grid, .reviews-grid, .contact-grid, .local-grid { grid-template-columns: 1fr; }
  .services-intro, .rating-box { position: static; }
  .faq-list { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .about-photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .hero-dots { display: none; }
  .barber-card { flex-basis: calc((100% - 1rem) / 1.6); }
  .review-list { columns: 1; }
  .service-pages { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .service-page span { font-size: 0.85rem; padding: 2rem 0.6rem 0.6rem; }
  .facts dd { font-size: 1.15rem; }
}

/* ── Celular: precios en pestañas y reseñas en carrusel ── */
.menu-tabs, .swipe-hint, .review-dots { display: none; }
@media (max-width: 860px) {
  .menu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.25rem; }
  .menu-tab {
    min-height: 46px; padding: 0 0.75rem; border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong); background: none; color: var(--muted);
    font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  }
  .menu-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
  .menu.is-tabbed .menu-group { display: none; margin-top: 0; }
  .menu.is-tabbed .menu-group.is-active { display: block; }
  .menu.is-tabbed .menu-group h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu.is-tabbed .menu-list li:first-child { border-top: 1px solid var(--line); }
  .services-intro .lead { margin-bottom: 1.25rem; }
  .services-intro .btn { display: none; }
  .services-grid { gap: 1.5rem; }
  .service-pages { margin-top: 2rem; }

  .rating-box {
    display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: center;
  }
  .rating-box .kicker { grid-column: 1 / -1; }
  .rating-number { grid-row: span 2; font-size: 4.5rem; }
  .rating-stars { margin: 0; align-self: end; }
  .rating-box p { margin: 0; align-self: start; }
  .rating-box .link-arrow { grid-column: 1 / -1; margin-top: 1rem; justify-self: start; }
  .reviews-grid { gap: 1.75rem; }
  .review-list {
    columns: auto; display: flex; gap: 0.75rem; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
  }
  .review-list::-webkit-scrollbar { display: none; }
  .review-card { flex: 0 0 86%; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
  .swipe-hint { display: block; grid-column: 1 / -1; font-size: 0.92rem; color: var(--muted); margin: -0.75rem 0 0; }
  .swipe-hint span { color: var(--accent-hover); }
  .review-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1rem; }
  .review-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.2s, width 0.2s; }
  .review-dots span.is-active { width: 20px; border-radius: 4px; background: var(--text); }
}

/* ── Hero en celular ── */
.hero-call { display: inline; }
.hero-call svg, .call-short, .hero-rating { display: none; }
@media (max-width: 600px) {
  #hero { min-height: 86svh; }
  .hero-videos::after { background: linear-gradient(to top, rgba(18, 17, 16, 0.97) 0%, rgba(18, 17, 16, 0.7) 45%, rgba(18, 17, 16, 0.2) 80%); }
  .hero-inner { display: flex; flex-direction: column; align-items: flex-start; padding-top: 6.5rem; padding-bottom: 2.25rem; }
  .hero-rating {
    order: 1; display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.4rem 0.8rem 0.4rem 0.65rem; margin-bottom: 1.1rem; border-radius: 999px;
    background: rgba(18, 17, 16, 0.55); border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums;
  }
  .hero-rating span { color: var(--accent-hover); }
  .hero-title { order: 2; font-size: clamp(2.9rem, 13vw, 3.8rem); margin-bottom: 0.9rem; }
  .hero-sub { order: 3; font-size: 1rem; line-height: 1.55; max-width: 32ch; margin-bottom: 1.5rem; }
  .hero-actions { order: 4; display: flex; flex-wrap: nowrap; gap: 0.6rem; }
  .hero-actions .btn { min-height: 46px; padding: 0 1.2rem; font-size: 0.95rem; }
  .hero-call {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px; padding: 0 1.1rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-decoration: none;
    background: rgba(18, 17, 16, 0.45); font-weight: 600;
  }
  .hero-call svg { display: block; width: 17px; height: 17px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .hero-place { order: 5; margin: 1.75rem 0 0; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
  .hero-place::before { width: 7px; height: 7px; }
  .hero-facts { display: none; }
}
