/*
 * El Rex Barber Club — styles.css
 * Desarrollado por Samirarte — https://samirarte.com
 * © 2026 Samirarte. Todos los derechos reservados.
 */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #101112;
  --surface: #171717;
  --surface-raised: #202020;
  --text: #f7f3e9;
  --muted: #b8b0a0;
  --muted-strong: #d8cfbd;
  --accent: #c99a2e;
  --accent-light: #f3cf76;
  --accent-dark: #6e4913;
  --border: rgba(243, 207, 118, 0.22);
  --border-strong: rgba(243, 207, 118, 0.42);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --shadow-gold: 0 18px 48px rgba(201, 154, 46, 0.2);
  --radius: 8px;
  --header-height: 86px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(135deg, rgba(201, 154, 46, 0.09), transparent 32rem),
    linear-gradient(180deg, #050505 0%, var(--bg) 46%, #080808 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(7, 7, 7, 0.82);
  border-bottom: 1px solid rgba(243, 207, 118, 0.16);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  max-height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(243, 207, 118, 0.24));
}

.brand-text {
  max-width: 18ch;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  height: 2px;
  content: "";
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  color: #111;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(201, 154, 46, 0.18);
  transition: transform 180ms ease, filter 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(243, 207, 118, 0.1);
  box-shadow: 0 0 0 3px rgba(243, 207, 118, 0.14);
  transform: translateY(-1px);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: var(--accent-light);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  padding-top: var(--header-height);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-content: center;
  padding: clamp(4rem, 7vw, 7rem) 0 2rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.78) 48%, rgba(5, 5, 5, 0.92) 100%),
    url("images/Captura de pantalla 2026-07-29 204156.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 12rem;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.hero-copy-wrap {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.02;
}

h1 {
  max-width: 9ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 10vw, 8.5rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 4.8vw, 4.25rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.hero-copy,
.section-heading p,
.service-card p,
.about-copy p,
.about-box span,
.site-footer p,
.gallery-placeholder {
  color: var(--muted);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 1.8rem;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  color: #101010;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 18px 56px rgba(201, 154, 46, 0.28);
  transform: translateY(-3px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.hero-card {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(15, 15, 15, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-logo {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(82%, 310px);
  height: auto;
  opacity: 0.9;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}

.hero-card-content {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72) 18%);
}

.hero-card-content p,
.hero-card-content span {
  margin: 0;
  color: var(--muted);
}

.hero-card-content strong {
  display: block;
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats p {
  margin: 0;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.74);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--accent-light);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1;
}

.hero-stats span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--bg-soft);
  border-top: 1px solid rgba(243, 207, 118, 0.14);
  border-bottom: 1px solid rgba(243, 207, 118, 0.14);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(1.7rem, 4vw, 2.7rem);
}

.cards,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.about-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58), var(--shadow-gold);
  transform: translateY(-6px);
}

.service-featured {
  background:
    linear-gradient(180deg, rgba(201, 154, 46, 0.18), rgba(255, 255, 255, 0.02)),
    var(--surface-raised);
}

.service-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.7rem;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(243, 207, 118, 0.09);
  border: 1px solid rgba(243, 207, 118, 0.2);
  border-radius: 999px;
}

.service-price {
  margin: 0;
  color: var(--accent-light);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
  line-height: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-copy {
  max-width: 760px;
}

.about-box {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.about-box p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(243, 207, 118, 0.16);
}

.about-box p:last-child {
  border-bottom: 0;
}

.about-box strong {
  color: var(--accent-light);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(243, 207, 118, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.46);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img {
  filter: brightness(1.08);
  transform: scale(1.03);
}

.gallery-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58), var(--shadow-gold);
  transform: translateY(-5px);
}

.gallery-placeholder[hidden] {
  display: none;
}

.gallery-placeholder {
  display: grid;
  place-items: end start;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(243, 207, 118, 0.16), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.gallery-placeholder figcaption {
  max-width: 18rem;
  margin: 0;
}

.gallery-placeholder span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.05;
}

.gallery-remove {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  min-height: 34px;
  padding: 0 0.75rem;
  color: #101010;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.site-footer {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: #070707;
  border-top: 1px solid rgba(243, 207, 118, 0.24);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.7rem;
}

.site-footer p {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

.admin-access {
  padding: 0;
  color: rgba(243, 207, 118, 0.72);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color 180ms ease;
}

.admin-access:hover,
.admin-access:focus-visible {
  color: var(--text);
}

.admin-modal[hidden],
.admin-login[hidden],
.admin-uploader[hidden] {
  display: none;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.admin-modal__panel {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(1.25rem, 4vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.admin-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  color: var(--accent-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(243, 207, 118, 0.32);
  border-radius: var(--radius);
}

.admin-form,
.admin-uploader {
  display: grid;
  gap: 1rem;
}

.admin-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.admin-form input,
.file-upload {
  width: 100%;
  color: var(--text);
  background: #0b0b0b;
  border: 1px solid rgba(243, 207, 118, 0.3);
  border-radius: var(--radius);
}

.admin-form input {
  min-height: 46px;
  padding: 0.75rem 0.9rem;
}

.file-upload {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--accent-light);
  font-weight: 800;
  cursor: pointer;
}

.file-upload input {
  color: var(--muted);
}

.admin-error {
  min-height: 1.4rem;
  margin: 0;
  color: #ffb4a8;
}

.admin-help {
  margin: 0;
  color: var(--muted);
}

.admin-clear {
  width: fit-content;
  padding: 0;
  color: rgba(243, 207, 118, 0.78);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.admin-clear:hover,
.admin-clear:focus-visible {
  color: var(--text);
}

@media (max-width: 1020px) {
  .header-cta {
    display: none;
  }

  .site-nav {
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 300px;
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .cards,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-featured,
  .gallery-grid {
    grid-column: 1 / -1;
  }

  .about-grid,
  .footer-content,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-logo {
    max-height: 44px;
  }

  .brand-text {
    max-width: 12ch;
    font-size: 0.82rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0.75rem;
    left: 0.75rem;
    display: grid;
    gap: 0;
    padding: 0.55rem;
    background: rgba(19, 19, 19, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    padding: 0 0.85rem;
    border-bottom: 1px solid rgba(243, 207, 118, 0.14);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 1.5rem;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.35rem, 17vw, 5.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-card {
    min-height: 250px;
  }

  .hero-logo {
    width: min(76%, 250px);
  }

  .hero-stats,
  .cards,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats p {
    padding: 0.85rem 1rem;
  }

  .service-featured {
    grid-column: auto;
  }

  .service-card {
    min-height: 280px;
  }

  .gallery-item {
    min-height: 300px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 0.75rem;
  }

  .brand-text {
    max-width: 10ch;
    font-size: 0.76rem;
  }

  .hero-copy {
    font-size: 1rem;
  }
}

/* ── Créditos Samirarte ── */
.developer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  color: rgba(184, 176, 160, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  background: #070707;
  border-top: 1px solid rgba(243, 207, 118, 0.1);
}

.developer-credit a {
  display: inline-flex;
  align-items: center;
  color: var(--accent-light);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.developer-credit a:hover,
.developer-credit a:focus-visible {
  opacity: 0.8;
}

.developer-credit__logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity 180ms ease;
  filter: brightness(1.2);
}

.developer-credit__name {
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.developer-credit a:hover .developer-credit__logo,
.developer-credit a:focus-visible .developer-credit__logo {
  opacity: 1;
}
