/* ===========================================================
   BARBERÍA TOKIO — hoja de estilos
   Paleta: carbón + bermellón (barra de barbero) sobre papel crudo.
   =========================================================== */

:root {
  --ink: #16130f;
  --charcoal: #211d18;
  --charcoal-2: #2b2620;
  --paper: #ece2cd;
  --paper-soft: #f4ecdc;
  --red: #c1301c;
  --red-dark: #8f2214;
  --red-light: #e2572f;
  --steel: #4b4640;
  --steel-soft: #7a736a;
  --line-dark: rgba(236, 226, 205, 0.14);
  --line-light: rgba(22, 19, 15, 0.13);
  --shadow: 0 18px 40px rgba(15, 12, 8, 0.28);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(64px, 10vw, 120px) 0;
}

:focus-visible {
  outline: 3px solid var(--red-light);
  outline-offset: 3px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: var(--paper-soft);
}

.btn-primary:hover {
  background: var(--red-light);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
}

.btn-outline.on-dark {
  color: var(--paper-soft);
}

.btn-outline.on-dark:hover {
  background: var(--line-dark);
}

.btn-outline.on-light {
  color: var(--ink);
}

.btn-outline.on-light:hover {
  background: var(--line-light);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(22, 19, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--paper-soft);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a {
  color: var(--paper-soft);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

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

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper-soft);
  overflow: hidden;
  padding: clamp(72px, 14vw, 150px) 0 clamp(56px, 10vw, 110px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(22, 19, 15, 0.96) 18%, rgba(22, 19, 15, 0.75) 42%, rgba(22, 19, 15, 0.32) 68%, rgba(22, 19, 15, 0.55) 100%),
    linear-gradient(to top, rgba(22, 19, 15, 0.85), transparent 30%);
}

.hero-stripe {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0px,
    var(--red) 22px,
    var(--red-dark) 22px,
    var(--red-dark) 44px
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper-soft);
  opacity: 0.75;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.hero-eyebrow .stars {
  color: var(--red-light);
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--red-light);
  font-weight: 400;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 1.08rem;
  color: rgba(244, 236, 220, 0.86);
  max-width: 50ch;
  margin-bottom: 34px;
}

/* ---------- Section headings ---------- */

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(36px, 6vw, 56px);
}

.section-kicker {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--steel);
  font-size: 1.05rem;
}

.on-dark .section-kicker {
  color: var(--red-light);
}

.on-dark .section-head p {
  color: rgba(244, 236, 220, 0.75);
}

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

.services-featured {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 26px 22px;
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--red-light);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--red-light);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.service-card p {
  color: var(--steel);
  font-size: 0.95rem;
}

.services-full {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line-light);
}

.services-full-head h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.services-full-head p {
  color: var(--steel);
  margin-top: 6px;
  margin-bottom: 28px;
}

.service-category {
  margin-bottom: 26px;
}

.service-category h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tag:hover {
  border-color: var(--red-light);
  color: var(--red-dark);
  background: #fff;
}

.services-note {
  margin-top: 26px;
  color: var(--steel-soft);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- Galería ---------- */

.gallery-section {
  background: var(--ink);
  color: var(--paper-soft);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--paper-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--red-light);
  color: var(--red-light);
}

.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper-soft);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:hover video,
.gallery-item:focus-visible img,
.gallery-item:focus-visible video {
  transform: scale(1.06);
}

.play-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 19, 15, 0.55);
  color: var(--paper-soft);
  pointer-events: none;
}

.play-badge .play-icon {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(to top, rgba(15, 12, 8, 0.85), rgba(15, 12, 8, 0));
  color: var(--paper-soft);
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  background: repeating-linear-gradient(
    45deg,
    var(--charcoal-2),
    var(--charcoal-2) 12px,
    var(--charcoal) 12px,
    var(--charcoal) 24px
  );
  color: rgba(244, 236, 220, 0.55);
  font-size: 0.85rem;
  line-height: 1.4;
}

.gallery-placeholder .ph-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  opacity: 0.6;
}

/* ---------- Reserva / formulario ---------- */

.booking-section {
  background: var(--paper-soft);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

@media (max-width: 860px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
}

.booking-form {
  background: var(--ink);
  color: var(--paper-soft);
  border-radius: 6px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: rgba(244, 236, 220, 0.78);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  color: var(--paper-soft);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red-light);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.form-note {
  font-size: 0.85rem;
  color: rgba(244, 236, 220, 0.6);
  margin-top: 12px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.error {
  color: var(--red-light);
}

.booking-aside .aside-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.booking-aside .aside-item:first-child {
  padding-top: 0;
}

.booking-aside h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.booking-aside p {
  color: var(--steel);
}

/* ---------- Ubicación ---------- */

.location-section {
  background: var(--ink);
  color: var(--paper-soft);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
}

@media (max-width: 860px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--line-dark);
}

.hours-table td {
  padding: 11px 0;
  font-size: 0.98rem;
}

.hours-table td:last-child {
  text-align: right;
  color: rgba(244, 236, 220, 0.75);
}

.hours-table tr.closed td:last-child {
  color: var(--red-light);
}

.hours-footnote {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(244, 236, 220, 0.6);
}

.contact-block {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}

.contact-block h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: rgba(244, 236, 220, 0.86);
}

.contact-line svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--red-light);
}

/* ---------- Reseñas ---------- */

.reviews-section {
  background: var(--paper);
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding-bottom: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.reviews-score .score-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
  line-height: 1;
}

.reviews-score .stars {
  color: var(--red);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.reviews-meta {
  color: var(--steel);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviews-disclaimer {
  font-size: 0.8rem;
  color: var(--steel-soft);
  font-style: italic;
}

.reviews-summary .btn {
  margin-left: auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 22px;
}

.review-card p {
  color: var(--steel);
  font-size: 0.96rem;
  line-height: 1.55;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper-soft);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-head strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
}

.review-sub {
  font-size: 0.82rem;
  color: var(--steel-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-sub .stars {
  color: var(--red);
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .reviews-summary .btn {
    margin-left: 0;
  }
}

.contact-block .cta-row {
  margin-top: 18px;
}

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

.site-footer {
  background: var(--charcoal);
  color: rgba(244, 236, 220, 0.75);
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

/* ---------- Lightbox de galería ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 8, 6, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 48px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: min(90vw, 900px);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  color: var(--paper-soft);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-top: 18px;
  text-align: center;
  max-width: 60ch;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--paper-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-nav svg {
  width: 20px;
  height: 20px;
}

.lightbox-prev {
  left: clamp(8px, 3vw, 28px);
}

.lightbox-next {
  right: clamp(8px, 3vw, 28px);
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

/* ---------- Utilidades ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
