:root {
  --ink: #1e1e1e;
  --body: #4f4f4f;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --line: #d9d9d9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Red Hat Display', sans-serif; background: var(--paper); color: var(--body); line-height: 1.7; }
h1, h2 { font-family: 'Alfa Slab One', 'Bebas Neue', serif; font-weight: 400; text-transform: uppercase; color: var(--ink); line-height: 1; letter-spacing: .02em; }
h3, .logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--ink); line-height: 1.15; }
a { color: inherit; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px; background: #000;
}
.logo { text-decoration: none; color: #fff; font-size: 1.7rem; display: flex; flex-direction: column; line-height: .9; letter-spacing: .06em; }
.logo span { font-size: .55rem; letter-spacing: .45em; font-weight: 500; color: #bdbdbd; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: #fff; text-decoration: none; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* Buttons: outlined with arrow */
.btn {
  display: inline-flex; align-items: center; gap: 18px; background: transparent; color: var(--ink) !important;
  border: 1px solid var(--ink); padding: 14px 24px; font: 700 .9rem 'Red Hat Display', sans-serif;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn::after { content: '\2197'; border-left: 1px solid currentColor; padding-left: 18px; font-size: 1.1rem; }
.btn:hover { background: var(--ink); color: #fff !important; }
.btn-sm { padding: 7px 14px; font-size: .72rem; border-color: #fff; color: #fff !important; gap: 10px; }
.btn-sm::after { padding-left: 10px; }
.btn-sm:hover { background: #fff; color: #000 !important; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding: 120px 32px 60px;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 15%, rgba(0,0,0,.45)), url('../images/galeria-1.jpg') center/cover no-repeat;
}
.hero-content { max-width: 1140px; width: 100%; margin: 0 auto; }
.eyebrow { color: #fff; letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; font-weight: 700; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 9vw, 6rem); max-width: 760px; }
.hero h1 em { font-style: normal; display: block; }
.hero .rule { display: none; }
.hero p { color: #e2e2e2; margin: 18px 0 32px; max-width: 460px; }
.hero .btn { color: #fff !important; border-color: #fff; }
.hero .btn:hover { background: #fff; color: #000 !important; }

/* Sections */
.section { padding: 100px 32px; max-width: 1140px; margin: 0 auto; }
.section.dark { max-width: none; background: #000; color: #bdbdbd; }
.section.dark > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section h2 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: 56px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.card { padding: 30px 24px 30px 0; border-bottom: 1px solid var(--ink); display: grid; gap: 4px; }
.dark .cards, .dark .card { border-color: #444; }
.card h3 { font-size: 1.3rem; }
.price { margin-top: 10px; font: 700 1.8rem 'Space Grotesk', sans-serif; color: var(--ink); }
.dark .price { color: #fff; }
.card.center { text-align: left; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: #fff; color: #000; font: 400 2.2rem 'Bebas Neue', sans-serif; display: grid; place-items: center; margin-bottom: 14px; }

/* Values / steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { border-top: 3px solid var(--ink); padding-top: 18px; }
.step b { display: block; font: 400 3rem 'Bebas Neue', sans-serif; color: var(--ink); line-height: 1; }
.step h3 { margin: 6px 0 8px; font-size: 1.15rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; filter: grayscale(1); transition: filter .3s; }
.gallery img:hover { filter: none; }

/* Hours */
.hours { list-style: none; max-width: 560px !important; margin-left: 0 !important; }
.hours li { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hours li span:first-child { color: var(--ink); text-transform: uppercase; font-weight: 700; font-size: .85rem; letter-spacing: .06em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #fff; }
input, select { padding: 13px; border: 1px solid #555; font: inherit; font-size: .95rem; background: #111; color: #fff; text-transform: none; letter-spacing: 0; font-weight: 400; }
input:focus, select:focus { outline: none; border-color: #fff; }
.dark .btn { color: #fff !important; border-color: #fff; justify-self: start; }
.dark .btn:hover { background: #fff; color: #000 !important; }
.form-msg { min-height: 1.4em; font-size: .85rem; color: #ff9b9b; }
.info h3 { margin-bottom: 16px; font-size: 1.4rem; }
.info p { margin-bottom: 10px; }
.info a { text-decoration: underline; text-underline-offset: 3px; }
.note { margin-top: 24px; font-size: .8rem; }
.note a { color: inherit; font-weight: 700; }

.footer { background: #000; color: #8a8a8a; text-align: center; padding: 28px; font-size: .8rem; border-top: 1px solid #222; }
.footer .dev { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .08em; color: #6b6b6b; }
.footer .dev strong { color: #b8b8b8; font-weight: 600; letter-spacing: .12em; }

@media (max-width: 800px) {
  .stats-in { padding: 28px 16px; gap: 8px; }
  .stats b { font-size: 2.4rem; }
  .stats span { font-size: .6rem; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; background: #000; padding: 24px; gap: 18px; }
  .nav.open { display: flex; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .header { padding: 12px 20px; }
  .section { padding: 70px 20px; }
  .hero { padding: 120px 20px 60px; }
}

/* Chatbot */
/* Mezcla: acento dorado (The Barber Company) sobre base blanco y negro (Montalvo) */
:root { --gold: #96885f; --gold-hi: #b3a373; }
.eyebrow { color: var(--gold-hi); }
.hero .rule { display: block; width: 90px; height: 2px; background: var(--gold-hi); border: 0; margin: 22px 0; }
.section h2::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); margin-top: 16px; }
.step { border-top-color: var(--gold); }
.step b { color: var(--gold); }
.price { color: var(--gold); }
.dark .price { color: var(--gold-hi); }
.hero .btn, .dark .btn { border-color: var(--gold-hi); }
.hero .btn:hover, .dark .btn:hover { background: var(--gold-hi); color: #000 !important; border-color: var(--gold-hi); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }
.nav a:hover { text-decoration-color: var(--gold-hi); }
.logo span { color: var(--gold-hi); }
.avatar { background: transparent; border: 2px solid var(--gold-hi); color: var(--gold-hi); }
.hours li span:last-child { color: var(--gold); font-weight: 700; }
.chat-toggle { border-color: var(--gold-hi); }
.chat-head { border-bottom: 2px solid var(--gold-hi); }
.msg.user { background: var(--gold); }

/* Franja de cifras */
.stats { background: #000; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.stats-in { max-width: 1140px; margin: 0 auto; padding: 36px 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: center; }
.stats b { display: block; font: 400 3.2rem 'Bebas Neue', sans-serif; color: var(--gold-hi); line-height: 1; }
.stats span { color: #bdbdbd; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

/* Bloque Instagram */
.insta { text-align: center; }
.insta h2 { margin-bottom: 20px; }
.insta h2::after { margin-left: auto; margin-right: auto; }
.insta p { max-width: 520px; margin: 0 auto 32px; }

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 20; }
.chat-toggle { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff; background: #000; font-size: 1.6rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: transform .15s; }
.chat-toggle:hover { transform: scale(1.08); }
.chat-panel { position: absolute; right: 0; bottom: 74px; width: min(360px, calc(100vw - 40px)); height: 480px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; background: #fff; border: 1px solid #000; box-shadow: 0 10px 40px rgba(0,0,0,.4); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { background: #000; color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: .08em; text-transform: uppercase; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.msg { max-width: 85%; padding: 9px 13px; font-size: .88rem; white-space: pre-line; }
.msg.bot { background: #fff; color: var(--ink); align-self: flex-start; border: 1px solid var(--line); }
.msg.user { background: #000; color: #fff; align-self: flex-end; }
.msg a { font-weight: 700; text-decoration: underline; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-quick button { background: #fff; border: 1px solid #000; color: #000; padding: 5px 12px; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.chat-quick button:hover { background: #000; color: #fff; }
.chat-form { display: flex; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 0; padding: 13px; background: #fff; color: #000; }
.chat-form button { background: #000; color: #fff; border: 0; padding: 0 18px; cursor: pointer; font-size: 1.1rem; }

/* Hero video */
.hero { background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.45)), url('../images/galeria-1.jpg') center / cover no-repeat; }
.hero-inner { max-width: 1140px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-content { margin: 0; }
.hero-video { position: relative; justify-self: center; width: min(100%, 340px); aspect-ratio: 9 / 16; max-height: 78vh; border: 1px solid var(--gold-hi); box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #000; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound-btn { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-hi); background: rgba(0,0,0,.65); color: #fff; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-video { width: min(78vw, 300px); max-height: none; }
}

/* Foto fachada */
.hero-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video { aspect-ratio: 2 / 3; max-height: 80vh; width: min(100%, 360px); }
.insta-video { width: min(78vw, 300px); aspect-ratio: 9 / 16; margin: 0 auto 32px; border: 1px solid var(--gold-hi); background: #000; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.insta-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) { .hero-video { width: min(78vw, 300px); max-height: none; } }

/* Fotos del equipo */
.avatar { width: 96px; height: 96px; }
.avatar-img { object-fit: cover; display: block; border: 2px solid var(--gold-hi); }
#equipo .cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
#equipo .card { padding-right: 12px; }

/* Portada con video */
.hero { position: relative; overflow: hidden; background: #000; display: flex; align-items: center; min-height: 100vh; padding: 120px 32px 60px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%), linear-gradient(0deg, rgba(0,0,0,.55), transparent 35%); }
.hero-content { position: relative; z-index: 2; max-width: 1140px; width: 100%; margin: 0 auto; }
.hero-content > * { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn { color: #fff !important; border-color: #fff; }
.hero .btn:hover { background: #fff; color: #000 !important; border-color: #fff; }
.hero .btn.btn-fill { background: var(--gold-hi); border-color: var(--gold-hi); color: #000 !important; }
.hero .btn.btn-fill:hover { background: #fff; border-color: #fff; }
.info-photo { width: 100%; max-width: 320px; height: auto; display: block; border: 1px solid var(--gold-hi); margin-bottom: 22px; }
@media (max-width: 800px) { .hero { padding: 110px 20px 50px; align-items: flex-end; } .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.9) 5%, rgba(0,0,0,.35) 70%); } }

/* Galería nueva */
.gallery img, .gallery .g-video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gallery img { filter: none; }
.gallery img:hover { filter: none; transform: scale(1.02); }
.g-video { position: relative; overflow: hidden; background: #000; }
.g-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-sound { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-hi); background: rgba(0,0,0,.65); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* Chatbot: botones para elegir barbero */
.msg.bot.choices { background: transparent; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.msg.choices button { background: #fff; border: 1px solid #000; color: #000; padding: 6px 12px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.msg.choices button:hover { background: #000; color: #fff; }

/* Logo redondo junto al nombre */
.logo { flex-direction: row; align-items: center; gap: 12px; }
.logo-img { width: 56px; height: 56px; border-radius: 50%; display: block; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: .9; }
@media (max-width: 800px) { .logo-img { width: 44px; height: 44px; } .logo { gap: 10px; } }

/* Logo con letras blancas */
.logo-wordmark { height: 58px; width: auto; display: block; }
@media (max-width: 800px) { .logo-wordmark { height: 44px; } }

/* Redes sociales */
.social-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Icono del calendario visible sobre fondo oscuro */
input[type="datetime-local"] { color-scheme: dark; cursor: pointer; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; width: 22px; height: 22px; }

/* Iconos de contacto y redes (en lugar de emojis) */
.info p { display: flex; align-items: center; gap: 12px; }
.ico { width: 22px; height: 22px; flex: none; fill: currentColor; }
.ico-pin, .ico-tel { color: var(--gold-hi); }
.ico-wa { color: #25d366; }
.ico-ig { color: #e4405f; }
.ico-fb { color: #1877f2; }
.btn-ico { display: inline-flex; align-items: center; gap: 10px; }
.btn-ico .ico { width: 20px; height: 20px; }
.ico-ig { fill: none; stroke: currentColor; stroke-width: 2; }
.ico-ig circle:last-child { fill: currentColor; stroke: none; }

.ico-tk { color: #25f4ee; filter: drop-shadow(1.5px 1.5px 0 #fe2c55); }

/* Perfil del barbero */
.perfil { cursor: pointer; }
.perfil:hover .avatar-img, .perfil:focus-visible .avatar-img { transform: scale(1.06); }
.avatar-img { transition: transform .2s; }
.perfil, .perfil:focus, .perfil:focus-visible { outline: none; -webkit-tap-highlight-color: transparent; }
.card .ver { color: var(--gold-hi); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
#perfil { border: 1px solid var(--gold-hi); background: #0b0b0b; color: #fff; padding: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
#perfil::backdrop { background: rgba(0,0,0,.8); }
#perfil img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.perfil-txt { padding: 20px 22px 24px; display: grid; gap: 10px; }
.perfil-txt h3 { color: #fff; font-size: 1.6rem; }
.perfil-rol { color: var(--gold-hi); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.perfil-bio { color: #d6d6d6; line-height: 1.6; white-space: pre-line; font-size: .95rem; }
.perfil-txt video { width: 100%; max-height: 60vh; background: #000; }
.perfil-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-hi); background: rgba(0,0,0,.7); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.perfil-res { justify-self: start; margin-top: 6px; }
#perfil { margin: auto; }
#perfil .perfil-res { color: #fff !important; border-color: var(--gold-hi); background: transparent; }
#perfil .perfil-res:hover { background: var(--gold-hi); color: #000 !important; }
#perfil img { aspect-ratio: 3 / 4; max-height: 62vh; object-fit: cover; object-position: top; }
#perfil [hidden], .perfil-res[hidden] { display: none !important; }

.hint-pago { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .75; }


/* Cifras en celular: estas reglas van al final para que sí se apliquen (antes quedaban tapadas y la franja se salía de la pantalla). */
@media (max-width: 800px) {
  .stats-in { padding: 28px 10px; gap: 6px; }
  .stats b { font-size: 2.4rem; }
  .stats span { font-size: clamp(.5rem, 2.4vw, .6rem); letter-spacing: .03em; }
}
