/* ===========================================================
   Peluquería Barbería Julio — estilo barbería clásica old school
   =========================================================== */

:root {
  /* Paleta */
  --cream:      #F2E8D5;
  --cream-2:    #E8DAC0;
  --paper:      #F7F0E1;
  --wood:       #4A2F1E;
  --wood-dark:  #2E1C10;
  --espresso:   #1C1208;
  --brass:      #C0922F;
  --brass-soft: #D7B25A;
  --barber-red: #9E2B25;
  --barber-red-2: #B33A30;
  --ink:        #241910;
  --muted:      #6E5C45;
  --line:       rgba(74, 47, 30, 0.18);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Lora', Georgia, serif;
  --font-script:  'Yellowtail', cursive;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--brass);
}

.script { font-family: var(--font-script); letter-spacing: 0; }

/* barber pole stripe divider */
.stripe {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--barber-red) 0 14px,
    var(--cream) 14px 28px,
    var(--wood) 28px 42px,
    var(--cream) 42px 56px
  );
}

/* ===================== TOP BAR ===================== */
.topbar {
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 42px; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { text-decoration: none; color: var(--cream); }
.topbar .tb-info { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar .tb-info span { display: inline-flex; align-items: center; gap: 8px; opacity: 0.92; }
.topbar svg { width: 15px; height: 15px; fill: var(--brass-soft); flex: none; }

.lang-switch { display: inline-flex; border: 1px solid rgba(215,178,90,0.5); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  background: transparent; border: 0; color: var(--cream);
  font-family: var(--font-display); letter-spacing: 0.08em;
  padding: 4px 12px; cursor: pointer; font-size: 0.78rem; text-transform: uppercase;
}
.lang-switch button.active { background: var(--brass); color: var(--espresso); font-weight: 600; }

/* ===================== HEADER / NAV ===================== */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--wood-dark);
  color: var(--cream);
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cream); }
.brand .brand-logo { height: 56px; width: auto; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1; }
.brand .bt strong { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand .bt em { font-style: normal; font-family: var(--font-display); font-weight: 300; font-size: 0.72rem; letter-spacing: 0.34em; color: var(--brass-soft); text-transform: uppercase; }

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.92rem; text-decoration: none; color: var(--cream); white-space: nowrap; flex: none;
  padding: 10px 12px; border-radius: 4px; transition: color .15s, background .15s;
}
nav.main a:hover { color: var(--brass-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 0; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-call { background: var(--brass); color: var(--espresso); box-shadow: 0 4px 14px rgba(192,146,47,0.4); }
.btn-call:hover { background: var(--brass-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(215,178,90,0.6); }
.btn-ghost:hover { background: rgba(215,178,90,0.12); }

/* mobile nav toggle */
.nav-toggle { display: none; background: transparent; border: 0; color: var(--cream); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; fill: currentColor; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(28,18,8,0.82), rgba(28,18,8,0.86)),
    repeating-linear-gradient(90deg, #3a2415 0 3px, #34200f 3px 6px),
    var(--wood-dark);
  color: var(--cream);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 16%, rgba(215,178,90,0.16), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 92px; text-align: center; }
.hero .est {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid rgba(215,178,90,0.45); color: var(--brass-soft);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.74rem; padding: 7px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.hero h1 .red { color: var(--barber-red-2); }
.hero .lema { font-family: var(--font-script); color: var(--brass-soft); font-size: clamp(1.8rem, 5vw, 3rem); margin: 6px 0 18px; }
.hero p.sub { max-width: 620px; margin: 0 auto 34px; font-size: 1.12rem; color: rgba(242,232,213,0.86); }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-call { font-size: 1.05rem; padding: 15px 30px; }

.hero .quote {
  margin-top: 54px; font-family: var(--font-display); font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(0.82rem, 2.4vw, 1rem);
  color: rgba(242,232,213,0.66); line-height: 1.9;
}
.hero .quote b { color: var(--brass-soft); font-weight: 600; }

/* ===================== SECTIONS ===================== */
section { padding: 86px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); text-transform: uppercase; color: var(--wood); }
.section-head p { color: var(--muted); margin: 16px 0 0; }

.alt { background: var(--cream); }
.dark { background: var(--wood-dark); color: var(--cream); }
.dark .section-head h2 { color: var(--cream); }
.dark .section-head p { color: rgba(242,232,213,0.8); }

/* Servicios */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.svc { flex: 0 1 calc(33.333% - 15px); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px 26px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(46,28,16,0.12); border-color: var(--brass); }
.svc .ic { width: 46px; height: 46px; margin-bottom: 16px; }
.svc .ic svg { width: 100%; height: 100%; fill: none; stroke: var(--barber-red); stroke-width: 1.7; }
.svc h3 { font-size: 1.24rem; text-transform: uppercase; color: var(--wood); letter-spacing: 0.04em; }
.svc p { margin: 10px 0 0; font-size: 0.99rem; color: var(--muted); }

/* Tarifas */
.price-card {
  max-width: 760px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 38px; box-shadow: 0 18px 40px rgba(46,28,16,0.10);
}
.price-row { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .nm { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.12rem; color: var(--wood); white-space: nowrap; }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.price-row .desc { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 0.86rem; color: var(--muted); margin-top: 2px; }
.price-row .pr { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--barber-red); white-space: nowrap; }
.price-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 26px; font-style: italic; }

/* Sobre nosotros */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.about .about-photo { width: 100%; height: 460px; border: 6px solid var(--brass); box-shadow: 0 20px 44px rgba(0,0,0,0.4); }
.about .about-photo { object-fit: cover; object-position: 62% 50%; border-radius: 4px; }
.about .txt h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); text-transform: uppercase; color: var(--cream); margin-bottom: 18px; }
.about .txt p { color: rgba(242,232,213,0.86); margin: 0 0 16px; }
.about .feats { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.about .feats div { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.96rem; color: var(--brass-soft); }
.about .feats svg { width: 22px; height: 22px; fill: none; stroke: var(--brass); stroke-width: 2; flex: none; margin-top: 1px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery img { width: 100%; height: 100%; }
.gallery img { object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* Horario */
.hours-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: 940px; margin: 0 auto; }
.hours-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 34px; box-shadow: 0 14px 34px rgba(46,28,16,0.10); }
.hours-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 0; }
.hours-row .d { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; color: var(--wood); }
.hours-row .h { text-align: right; color: var(--muted); font-size: 0.98rem; }
.hours-row.closed .h { color: var(--barber-red); }
.hours-aside h3 { font-size: 1.6rem; text-transform: uppercase; color: var(--wood); margin-bottom: 14px; }
.hours-aside p { color: var(--muted); margin: 0 0 22px; }

/* Mapa / cómo llegar */
.map-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: stretch; }
.contact-card h3 { font-size: 1.5rem; text-transform: uppercase; color: var(--cream); margin-bottom: 22px; }
.contact-card .line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-card .line svg { width: 22px; height: 22px; fill: none; stroke: var(--brass-soft); stroke-width: 1.8; flex: none; margin-top: 3px; }
.contact-card .line .l1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--brass-soft); font-size: 0.82rem; }
.contact-card .line .l2 { color: var(--cream); font-size: 1.05rem; }
.contact-card .line a { color: var(--cream); text-decoration: none; }
.contact-card .line a:hover { color: var(--brass-soft); }

.map-box { position: relative; min-height: 380px; border-radius: 10px; overflow: hidden; border: 4px solid var(--brass); background: var(--espresso); }
.map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-directions {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brass); color: var(--espresso); text-decoration: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.85rem; font-weight: 600; padding: 10px 16px; border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35); transition: background .15s, transform .12s;
}
.map-directions:hover { background: var(--brass-soft); transform: translateY(-1px); }
.map-directions svg { width: 16px; height: 16px; fill: none; stroke: var(--espresso); stroke-width: 1.8; }

/* ===================== FOOTER ===================== */
footer.site { background: var(--espresso); color: rgba(242,232,213,0.8); padding: 60px 0 28px; }
footer.site .ft-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site .brand .bt strong { color: var(--cream); }
footer.site h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--brass-soft); font-size: 0.92rem; margin-bottom: 16px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site a { text-decoration: none; color: rgba(242,232,213,0.8); font-size: 0.96rem; }
footer.site a:hover { color: var(--brass-soft); }
footer.site .ft-desc { margin: 18px 0 0; font-size: 0.95rem; max-width: 320px; }
footer.site .ft-bottom { border-top: 1px solid rgba(242,232,213,0.14); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
footer.site .ft-bottom a { text-decoration: underline; }

/* ===================== COOKIE BANNER ===================== */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 880px; margin: 0 auto;
  background: var(--wood-dark); color: var(--cream);
  border: 1px solid var(--brass); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  padding: 22px 26px; display: none;
  grid-template-columns: 1fr auto; gap: 22px; align-items: center;
}
.cookie.show { display: grid; }
.cookie h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-soft); margin: 0 0 6px; font-size: 1rem; }
.cookie p { margin: 0; font-size: 0.9rem; color: rgba(242,232,213,0.82); }
.cookie p a { color: var(--brass-soft); }
.cookie .ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 18px; font-size: 0.86rem; }
.btn-reject { background: transparent; color: var(--cream); border: 1.5px solid rgba(242,232,213,0.4); }
.btn-reject:hover { background: rgba(242,232,213,0.08); }
.btn-accept { background: var(--brass); color: var(--espresso); }
.btn-accept:hover { background: var(--brass-soft); }

/* ===================== LANG VISIBILITY ===================== */
[data-gl] { display: none; }
html[lang="gl"] [data-es] { display: none; }
html[lang="gl"] [data-gl] { display: revert; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) and (min-width: 761px) {
  nav.main a { padding: 10px 8px; font-size: 0.86rem; }
}

@media (max-width: 960px) {
  .svc { flex-basis: calc(50% - 11px); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .about-photo { height: 360px; order: -1; }
  .map-grid { grid-template-columns: 1fr; }
  .hours-wrap { grid-template-columns: 1fr; gap: 28px; }
  footer.site .ft-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  nav.main, header.site .btn-call.desk { display: none; }
  .nav-toggle { display: inline-flex; }
  nav.main.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wood-dark); border-top: 1px solid rgba(215,178,90,0.3);
    padding: 8px 16px 18px; box-shadow: 0 18px 30px rgba(0,0,0,0.35);
  }
  nav.main.open a { padding: 14px 8px; border-bottom: 1px solid rgba(242,232,213,0.08); }
  .topbar .tb-info span.addr { display: none; }
  section { padding: 64px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .wide { grid-column: span 2; }
  .gallery .tall { grid-row: span 1; }
  .gallery .big { grid-column: span 2; grid-row: span 2; }
  .price-card { padding: 8px 22px; }
  .cookie { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .svc { flex-basis: 100%; }
  body { font-size: 17px; }
  .price-row { flex-wrap: wrap; }
  .price-row .dots { display: none; }
  .price-row .nm { flex: 1; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===================== INDICADOR ABIERTO / CERRADO ===================== */
.open-status { display: inline-flex; align-items: center; gap: 8px; }
.open-status .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #8a8a8a; position: relative;
}
.open-status.is-open .dot { background: #45B26B; box-shadow: 0 0 0 0 rgba(69,178,107,0.6); animation: pulse-dot 2s infinite; }
.open-status.is-closed .dot { background: var(--barber-red-2); }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(69,178,107,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(69,178,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(69,178,107,0); }
}
/* en la topbar */
.topbar .open-status { font-family: var(--font-display); letter-spacing: 0.06em; color: var(--cream); }
.topbar .open-status .open-status-txt { opacity: 0.95; }

/* versión grande en la sección de horario */
.open-status-big {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 3px;
  align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #8a8a8a;
  border-radius: 8px; padding: 16px 20px; margin-bottom: 24px;
}
.open-status-big.is-open { border-left-color: #45B26B; }
.open-status-big.is-closed { border-left-color: var(--barber-red-2); }
.open-status-big .dot { width: 11px; height: 11px; grid-column: 1; grid-row: 1; }
.open-status-big .open-status-txt {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.15rem; font-weight: 600; color: var(--wood); line-height: 1.1;
}
.open-status-big .open-status-sub { grid-column: 1 / -1; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 760px) {
  .topbar .open-status { display: none; }
}

