/* =========================================================
   Filo Barber Studio (demo de Atom Tecnología)
   Paleta: negro carbón, latón dorado, hueso; toque rojo de poste de barbería
   ========================================================= */
:root {
    --black: #121110;
    --black-2: #1b1917;
    --black-3: #24211e;
    --bone: #efe9df;
    --bone-soft: #b9b1a5;
    --muted: #8d857a;
    --gold: #c8a15a;
    --gold-light: #e3c483;
    --red: #b3261e;
    --whatsapp: #25d366;
    --line: rgba(239, 233, 223, .1);
    --radius: 14px;
    --nav-h: 76px;
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
    margin: 0; background: var(--black); color: var(--bone);
    font-family: var(--font-body); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ===== Botones ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .9rem 1.6rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer;
    font-weight: 800; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { border-color: rgba(239, 233, 223, .45); color: var(--bone); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--whatsapp { background: var(--whatsapp); color: #08361b; }
.btn--whatsapp:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn--sm { padding: .6rem 1.1rem; font-size: .8rem; }
.btn--block { width: 100%; }

.kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

/* ===== Navegación ===== */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(18, 17, 16, .94); backdrop-filter: blur(10px); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__icon { width: 30px; height: 30px; color: var(--gold); }
.logo__text { font-family: var(--font-display); font-size: 2rem; letter-spacing: .12em; line-height: .9; display: grid; }
.logo__text small { font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav__links > a:not(.btn) { color: var(--bone-soft); transition: color .2s; }
.nav__links > a:not(.btn):hover, .nav__links > a.is-active { color: var(--gold-light); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--bone); transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Portada ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); animation: slowZoom 20s ease-out both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 17, 16, .95) 0%, rgba(18, 17, 16, .75) 50%, rgba(18, 17, 16, .35) 100%), linear-gradient(0deg, var(--black) 0%, transparent 30%); }
.hero__inner { position: relative; z-index: 1; padding: calc(var(--nav-h) + 40px) 0 90px; }
.hero__kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-soft); }
.pole { width: 10px; height: 34px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--red) 0 6px, var(--bone) 6px 12px, #1f4fa0 12px 18px, var(--bone) 18px 24px); background-size: 100% 34px; animation: pole 1.6s linear infinite; box-shadow: 0 0 0 2px rgba(239, 233, 223, .2); }
.hero__title { margin-top: 1.1rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.6rem, 10vw, 8rem); letter-spacing: .02em; line-height: .9; text-transform: uppercase; }
.hero__title span { color: var(--gold); }
.hero__text { margin-top: 1.4rem; max-width: 33rem; font-size: 1.08rem; color: var(--bone-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.6rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 560px; }
.hero__stats li { display: grid; }
.hero__stats strong { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; letter-spacing: .04em; color: var(--bone); }
.hero__stats strong span { color: var(--gold); }
.hero__stats li > span { font-size: .82rem; color: var(--muted); }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 24px; height: 40px; margin-left: -12px; border: 2px solid rgba(239, 233, 223, .3); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s infinite; }

/* ===== Secciones ===== */
.section { padding: 104px 0; }
.section--alt { background: var(--black-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head .kicker::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 4rem); letter-spacing: .03em; text-transform: uppercase; }
.section__text { margin-top: .8rem; color: var(--bone-soft); }

/* ===== Servicios (lista de precios) ===== */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 4rem; }
.service { padding: 1.2rem 0; border-bottom: 1px dashed var(--line); }
.service__top { display: flex; align-items: baseline; gap: .8rem; }
.service__name { font-size: 1.12rem; font-weight: 800; }
.service__dots { flex: 1; border-bottom: 2px dotted rgba(200, 161, 90, .35); transform: translateY(-4px); }
.service__price { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); letter-spacing: .04em; }
.service__desc { margin-top: .25rem; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.service__time { display: inline-flex; align-items: center; gap: .3rem; color: var(--bone-soft); }
.service__badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 3px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }

/* ===== Barberos ===== */
.barbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.barber { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--black-3); }
.barber__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.barber__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .6s ease, filter .6s ease; }
.barber:hover .barber__photo img { transform: scale(1.05); filter: none; }
.barber__body { padding: 1.3rem 1.4rem 1.5rem; }
.barber__name { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .05em; }
.barber__role { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.barber__text { margin-top: .6rem; color: var(--bone-soft); font-size: .93rem; }
.barber__days { margin-top: .8rem; font-size: .82rem; color: var(--muted); }
.barber .btn { margin-top: 1.1rem; width: 100%; }

/* ===== Reservar ===== */
.booking-section { background: radial-gradient(800px 400px at 80% 0%, rgba(200, 161, 90, .08), transparent 70%), var(--black); }
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.booking__steps { display: grid; gap: 1.4rem; }
.step { padding: 1.5rem; border-radius: var(--radius); background: var(--black-2); border: 1px solid var(--line); }
.step legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; font-weight: 800; font-size: 1.05rem; }
.step legend ~ * { clear: both; }
.step__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--black); font-size: .9rem; }
.step__hint { color: var(--muted); font-size: .92rem; }

.choices { display: grid; gap: .6rem; }
.choices--services { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.choices--barbers { grid-template-columns: repeat(4, 1fr); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; gap: .7rem; height: 100%; padding: .8rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--black-3); transition: border-color .2s, background .2s; }
.choice__box b { display: block; font-size: .93rem; }
.choice__box small { color: var(--muted); font-size: .8rem; }
.choice__price { margin-left: auto; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); }
.choice__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.choice__avatar--any { display: grid; place-items: center; background: var(--black); border: 1px dashed var(--gold); color: var(--gold); font-weight: 800; }
.choices--barbers .choice__box { flex-direction: column; text-align: center; gap: .45rem; padding: .9rem .5rem; }
.choice input:checked + .choice__box { border-color: var(--gold); background: rgba(200, 161, 90, .1); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.days { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.day { flex: 0 0 72px; display: grid; justify-items: center; gap: .1rem; padding: .7rem .3rem; border-radius: 10px; border: 1px solid var(--line); background: var(--black-3); cursor: pointer; transition: border-color .2s, background .2s; }
.day small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.day strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.day span { font-size: .72rem; color: var(--bone-soft); }
.day:hover:not(:disabled) { border-color: var(--gold); }
.day.is-selected { border-color: var(--gold); background: var(--gold); color: var(--black); }
.day.is-selected small, .day.is-selected span { color: var(--black); }
.day:disabled { opacity: .35; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.slot { padding: .55rem 0; border-radius: 8px; border: 1px solid var(--line); background: var(--black-3); font-weight: 700; font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.slot:hover:not(:disabled) { border-color: var(--gold); }
.slot.is-selected { background: var(--gold); border-color: var(--gold); color: var(--black); }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--bone-soft); }
.field--full { grid-column: 1 / -1; }
.field input { padding: .75rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--black-3); color: var(--bone); font-weight: 500; }
.field input:focus { outline: none; border-color: var(--gold); }

.summary { position: sticky; top: calc(var(--nav-h) + 20px); padding: 1.6rem; border-radius: var(--radius); background: var(--bone); color: var(--black); }
.summary h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .05em; }
.summary__list { margin-top: 1rem; display: grid; }
.summary__list div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed rgba(18, 17, 16, .15); font-size: .92rem; }
.summary__list dt { color: #6d655b; }
.summary__list dd { font-weight: 700; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 1.2rem; }
.summary__total span { font-weight: 700; }
.summary__total strong { font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; }
.summary__note { margin-top: .8rem; font-size: .82rem; color: #6d655b; text-align: center; }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; transform: translateY(100%); transition: transform .35s ease; }
.gallery__item:hover figcaption, .gallery__item:focus-within figcaption { transform: none; }

/* ===== Club ===== */
.club { padding: 70px 0; background: linear-gradient(120deg, #2a2118, #15120f 60%); border-block: 1px solid rgba(200, 161, 90, .25); }
.club__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.club__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: .03em; text-transform: uppercase; }
.club__title span { color: var(--gold); }
.club__inner p:not(.kicker) { margin-top: .5rem; color: var(--bone-soft); max-width: 36rem; }

/* ===== Reseñas ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { margin: 0; padding: 1.8rem; border-radius: var(--radius); background: var(--black-2); border: 1px solid var(--line); display: grid; gap: 1rem; align-content: start; }
.review__stars { color: var(--gold); letter-spacing: 3px; }
.review > p:not(.review__stars) { font-size: 1.02rem; color: var(--bone); }
.review footer { color: var(--muted); font-size: .88rem; }
.review footer strong { color: var(--bone); }

/* ===== Visítanos ===== */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.visit__photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.address { margin-top: 1rem; font-style: normal; color: var(--bone-soft); }
.open-now { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-weight: 800; font-size: .92rem; }
.open-now::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); }
.open-now.is-open { color: #6ee7a0; }
.open-now.is-closed { color: #f0a29d; }
.hours { margin-top: 1.2rem; }
.hours div { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--bone-soft); }
.hours dd { font-weight: 700; }
.hours .is-today dt, .hours .is-today dd { color: var(--gold-light); }
.pay { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; letter-spacing: .06em; }

/* ===== Pie ===== */
.footer { padding: 2.2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }

/* Franja de Atom Tecnología */
.demo-strip { background: #0b0c0e; color: #c9d1d9; font-size: .88rem; padding: .9rem 0 6rem; }
.demo-strip__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; }
.demo-strip a { color: #3ddc97; font-weight: 600; }
.demo-strip__cta { padding: .4rem .9rem; border: 1px solid rgba(61, 220, 151, .45); border-radius: 999px; }

/* Botón flotante */
.book-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.2rem; border-radius: 4px; background: var(--gold); color: var(--black);
    font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); transition: transform .25s ease, opacity .25s ease;
}
.book-fab:hover { transform: translateY(-3px); }
.book-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* Aviso */
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .7rem 1.1rem; border-radius: 6px; background: var(--bone); color: var(--black); font-weight: 700; font-size: .9rem; transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Aparición al hacer scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes slowZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes pole { to { background-position: 0 34px; } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
    .booking { grid-template-columns: 1fr; }
    .summary { position: static; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .visit { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
    .nav__toggle { display: flex; position: relative; z-index: 2; }
    .nav__links {
        position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(300px, 84vw);
        flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: calc(var(--nav-h) + 20px) 28px 28px;
        background: var(--black-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s ease;
    }
    .nav__links.is-open { transform: none; box-shadow: -20px 0 50px rgba(0, 0, 0, .6); }
    .services, .barbers, .reviews { grid-template-columns: 1fr; }
    .barbers { max-width: 440px; margin-inline: auto; }
    .choices--barbers { grid-template-columns: repeat(2, 1fr); }
    .club__inner { flex-direction: column; align-items: flex-start; }
    .hero::after { background: linear-gradient(180deg, rgba(18, 17, 16, .6) 0%, rgba(18, 17, 16, .92) 60%, var(--black) 100%); }
}

@media (max-width: 600px) {
    .section { padding: 76px 0; }
    .hero__actions .btn { width: 100%; }
    .hero__stats { gap: 1.4rem; }
    .fields { grid-template-columns: 1fr; }
    .gallery { grid-auto-rows: 160px; }
    .step { padding: 1.1rem; }
    .footer__inner, .demo-strip__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
