/* JR Barbershop — "Dominicana" theme
   Heritage barbershop layout (script + wide caps + serif, framed buttons)
   dressed in the Dominican flag: azul, rojo, blanco + coat-of-arms gold.
   Bonus: the barber pole was already red, white and blue. */
:root {
  --azul-deep: #06142b;
  --azul: #0a2550;
  --azul-flag: #002d62;
  --azul-bright: #2f6bd1;
  --rojo: #ce1126;
  --rojo-bright: #ef2b3f;
  --blanco: #f6f1e7;
  --muted: #b9c2d3;
  --oro: #d4a94c;
  --line: rgba(246, 241, 231, 0.12);

  --script: "Mr Dafoe", "Brush Script MT", cursive;
  --caps: "Cinzel", "Trajan Pro", serif;
  --serif: "EB Garamond", Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--azul-deep);
  color: var(--blanco);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.center { text-align: center; }

/* Type */
.script { font-family: var(--script); font-weight: 400; color: var(--oro); line-height: 1; font-size: clamp(2.6rem, 7vw, 4.4rem); display: block; transform: rotate(-4deg); }
.caps { font-family: var(--caps); font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; line-height: 1.1; margin: 0; }
.label { font-family: var(--caps); font-size: .78rem; letter-spacing: .35em; color: var(--rojo-bright); font-weight: 700; display: block; margin-bottom: 10px; }
h2.title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0 0 18px; }
.lede { color: var(--muted); max-width: 60ch; margin: 0 auto; }
.es { color: var(--oro); font-style: italic; }

/* Flag-cross ornament (white cross splitting blue/red quadrants) */
.cross { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 34px; height: 22px; margin: 0 auto 18px; }
.cross i { display: block; }
.cross i:nth-child(1), .cross i:nth-child(4) { background: var(--azul-bright); }
.cross i:nth-child(2), .cross i:nth-child(3) { background: var(--rojo); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--oro); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--oro)); }
.ornament::after { transform: scaleX(-1); }

/* Barber-pole / flag stripe divider */
.stripe { height: 10px; background: repeating-linear-gradient(-45deg, var(--rojo) 0 14px, var(--blanco) 14px 22px, var(--azul-bright) 22px 36px, var(--blanco) 36px 44px); opacity: .95; }

/* Framed "ticket" button, like a vintage sign plate */
.btn-frame {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 38px; font-family: var(--caps); font-weight: 700; font-size: .85rem; letter-spacing: .25em;
  text-transform: uppercase; text-decoration: none; color: var(--blanco);
  border-top: 1.5px solid var(--oro); border-bottom: 1.5px solid var(--oro);
  transition: color .2s, background .2s;
}
.btn-frame::before, .btn-frame::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px;
  border: 1.5px solid var(--oro); transform: translateY(-50%) rotate(45deg); background: var(--azul-deep);
}
.btn-frame::before { left: -11px; border-right: none; border-top: none; }
.btn-frame::after { right: -11px; border-left: none; border-bottom: none; }
.btn-frame span::before, .btn-frame span::after { content: "✦"; color: var(--rojo-bright); font-size: .7em; margin: 0 12px; }
.btn-frame:hover { background: rgba(212,169,76,.1); color: var(--oro); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px;
  background: var(--rojo); color: #fff; text-decoration: none; font-family: var(--caps); font-weight: 700;
  letter-spacing: .18em; font-size: .8rem; text-transform: uppercase; border-radius: 2px;
}
.btn-solid:hover { background: var(--rojo-bright); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(6, 20, 43, .94); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav ul { display: none; list-style: none; gap: 34px; margin: 0; padding: 0; }
.nav ul a { font-family: var(--caps); font-size: .78rem; letter-spacing: .28em; text-decoration: none; font-weight: 700; }
.nav ul a:hover { color: var(--oro); }
.nav .brand img { width: 46px; }
.nav-book { display: none !important; }
@media (min-width: 900px) { .nav-book { display: inline-flex !important; } }
@media (min-width: 900px) { .nav ul { display: flex; } }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.05) brightness(.55); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(6,20,43,.45) 0%, rgba(6,20,43,.92) 70%),
    linear-gradient(90deg, rgba(0,45,98,.55) 0%, transparent 35%, transparent 65%, rgba(206,17,38,.45) 100%);
}
.hero-inner { position: relative; padding: 130px 16px 90px; max-width: 760px; }
.hero-logo { width: clamp(150px, 22vw, 210px); margin: 0 auto 8px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.hero h1 { font-size: clamp(2.4rem, 8.5vw, 5.6rem); color: var(--blanco); margin-top: 6px; }
.hero h1 .r { color: var(--rojo-bright); }
.hero p { color: #e6e2da; font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 22px auto 36px; max-width: 46ch; }
.hero .sub { display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap; margin-top: 34px; font-family: var(--caps); font-size: .72rem; letter-spacing: .25em; color: var(--muted); }
.hero .sub b { color: var(--oro); font-weight: 700; }

section { padding: 110px 0; position: relative; }

/* Story */
.story { background: var(--azul); }
.story-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.story .seal {
  position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--azul-flag) 0 25%, var(--rojo) 0 50%, var(--azul-flag) 0 75%, var(--rojo) 0 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.story .seal::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(var(--blanco), var(--blanco)) center / 14% 100% no-repeat,
  linear-gradient(var(--blanco), var(--blanco)) center / 100% 14% no-repeat; border-radius: 50%; }
.story .seal img { position: relative; width: 74%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--blanco); }
.story .seal .tag { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%) rotate(-5deg); background: var(--rojo); color: #fff; font-family: var(--script); font-size: 2rem; padding: 4px 22px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.story p { color: var(--muted); }
.story p.big { color: var(--blanco); font-size: 1.25rem; }
.sig { font-family: var(--script); color: var(--oro); font-size: 2.4rem; margin-top: 8px; }

/* Services */
.services { background: var(--azul-deep); }
.svc-grid { display: grid; gap: 0 56px; margin-top: 56px; text-align: left; }
@media (min-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.svc-top { display: flex; align-items: baseline; gap: 12px; }
.svc h3 { font-family: var(--caps); font-size: 1rem; letter-spacing: .14em; margin: 0; font-weight: 700; }
.svc .dots { flex: 1; border-bottom: 1px dotted rgba(212,169,76,.45); transform: translateY(-5px); }
.svc .price { font-family: var(--caps); font-weight: 700; color: var(--oro); font-size: 1.15rem; letter-spacing: .05em; }
.svc p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
.svc p em { color: var(--rojo-bright); font-style: italic; }
.combo { margin-top: 56px; display: grid; gap: 16px; }
@media (min-width: 760px) { .combo { grid-template-columns: 1fr 1fr; } }
.combo div { border: 1.5px solid var(--oro); padding: 26px; position: relative; text-align: center; }
.combo div::before { content: "COMBO"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--azul-deep); padding: 0 12px; font-family: var(--caps); font-size: .7rem; letter-spacing: .35em; color: var(--rojo-bright); font-weight: 700; }
.combo b { display: block; font-family: var(--caps); letter-spacing: .12em; font-size: .95rem; }
.combo .p { font-family: var(--script); color: var(--oro); font-size: 3rem; line-height: 1.1; }

/* Gallery mosaic */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 48px; }
.mosaic figure { margin: 0; overflow: hidden; background: var(--azul); aspect-ratio: 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s ease, filter .3s; }
.mosaic figure:hover img { transform: scale(1.06); filter: saturate(1.1); }
@media (min-width: 860px) {
  .mosaic {
    grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 190px);
    grid-template-areas: "a a b b c d" "a a e e e f" "g h e e e f";
  }
  .mosaic figure { aspect-ratio: auto; }
  .mosaic .a { grid-area: a; } .mosaic .b { grid-area: b; } .mosaic .c { grid-area: c; } .mosaic .d { grid-area: d; }
  .mosaic .e { grid-area: e; } .mosaic .f { grid-area: f; } .mosaic .g { grid-area: g; } .mosaic .h { grid-area: h; }
}

/* Contacto */
.contact-grid { display: grid; gap: 40px; margin-top: 56px; text-align: center; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid h3 { font-family: var(--caps); letter-spacing: .25em; font-size: .85rem; color: var(--rojo-bright); margin: 0 0 12px; }
.contact-grid p { margin: 0; color: var(--blanco); }
.contact-grid .todo { color: var(--oro); font-style: italic; }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { color: var(--oro); }
.map { margin-top: 56px; height: 340px; border: 1.5px solid var(--oro); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(185deg) contrast(.9); }

footer { padding: 46px 0 120px; text-align: center; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
footer .script { font-size: 2.2rem; transform: none; margin-bottom: 6px; }
@media (min-width: 860px) { footer { padding-bottom: 46px; } }

/* Mobile action bar */
.mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; }
.mbar a { padding: 15px; text-align: center; text-decoration: none; font-family: var(--caps); font-weight: 700; letter-spacing: .18em; font-size: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.mbar a:first-child { background: var(--rojo); color: #fff; border: 1.5px solid var(--oro); }
.mbar a:last-child { background: var(--blanco); color: var(--azul-flag); }
@media (min-width: 900px) { .mbar { display: none; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) {
  .btn-frame { padding: 14px 22px; letter-spacing: .14em; font-size: .78rem; }
  .btn-frame span::before, .btn-frame span::after { margin: 0 7px; }
}

/* Book button: solid red sign plate with gold diamond ends and a slow shine */
.btn-book {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; color: #fff; text-decoration: none; white-space: nowrap;
  font-family: var(--caps); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.38) 50%, transparent 58%) 200% 0 / 250% 100% no-repeat, var(--rojo);
  border: 1.5px solid var(--oro);
  box-shadow: 0 10px 30px rgba(206,17,38,.35);
  animation: shine 4.5s ease-in-out infinite;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s;
}
.btn-book:hover { transform: translateY(-2px); background-color: var(--rojo-bright); box-shadow: 0 14px 40px rgba(239,43,63,.5); }
@keyframes shine { 0%, 55% { background-position: 200% 0, 0 0; } 85%, 100% { background-position: -100% 0, 0 0; } }
.hero-book, .cta-row .btn-book { padding: 20px 48px; font-size: .95rem; letter-spacing: .24em; margin: 0 14px; }
.hero-book::before, .hero-book::after, .cta-row .btn-book::before, .cta-row .btn-book::after {
  content: ""; position: absolute; top: 50%; width: 26px; height: 26px; background: var(--rojo);
  border: 1.5px solid var(--oro); transform: translateY(-50%) rotate(45deg); transition: background-color .2s;
}
.hero-book::before, .cta-row .btn-book::before { left: -14px; border-right: none; border-top: none; }
.hero-book::after, .cta-row .btn-book::after { right: -14px; border-left: none; border-bottom: none; }
.hero-book:hover::before, .hero-book:hover::after, .cta-row .btn-book:hover::before, .cta-row .btn-book:hover::after { background: var(--rojo-bright); }
.hero-book { box-shadow: 0 0 0 6px rgba(206,17,38,.18), 0 16px 50px rgba(206,17,38,.55); }
.cta-row { margin-top: 48px; text-align: center; }
@media (max-width: 480px) {
  .hero-book, .cta-row .btn-book { padding: 18px 30px; font-size: .85rem; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) { .btn-book { animation: none; } }
