/* SHABAB — identidad de marca */
:root {
  --bg: #faf6ee;
  --bg-soft: #f2ebda;
  --bg-card: #ffffff;
  --ink: #221a11;
  --muted: #6e6050;
  --green: #14432f;
  --green-dark: #0d3122;
  --gold: #b8860b;
  --gold-soft: #d9a821;
  --gold-pale: #f6ead0;
  --line: #e6dcc4;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(34, 26, 17, 0.09);
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Franja poste de barbero */
.pole {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    #a33 0 18px, #f5f5f5 18px 36px, #24507a 36px 54px, #f5f5f5 54px 72px);
}

/* Banner de vacaciones */
.vacation-banner {
  background: #e9f2ea;
  color: var(--green-dark);
  text-align: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 2px solid var(--gold);
  font-size: 0.95rem;
}
.vacation-banner strong { color: var(--gold); }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-word {
  font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.12em;
  color: var(--green); line-height: 1; padding-top: 0.15em;
}
.nav { display: flex; gap: 1.2rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover { color: var(--gold); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.25rem; border-radius: 8px;
  padding: 0.25rem 0.6rem; cursor: pointer; margin-left: auto;
}

/* Selector de idioma */
.lang-switch { display: flex; gap: 0.35rem; }
.lang-switch button {
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.8rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.lang-switch button:hover { border-color: var(--gold); color: var(--gold); }
.lang-switch button.active { background: var(--green); border-color: var(--green); color: #fff; }

/* Botones */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.8rem 1.7rem; border-radius: 999px; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: #fff; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-call { border-color: var(--green); color: var(--green); padding: 0.45rem 1rem; background: #fff; }
.btn-call:hover { background: var(--green); color: #fff; }
.btn-card {
  padding: 0.6rem 1.4rem; font-size: 0.88rem;
  background: var(--green); color: #fff; width: 100%;
}
.btn-card:hover { background: var(--green-dark); }

/* Hero de marca */
.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(217, 168, 33, 0.14), transparent),
    repeating-linear-gradient(-45deg, transparent 0 26px, rgba(20, 67, 47, 0.022) 26px 28px),
    var(--bg);
}
.hero-badge {
  width: 84px; height: 84px; margin: 0 auto 1.2rem;
  border-radius: 22px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-badge svg { width: 48px; height: 48px; }
.kicker {
  color: var(--gold); letter-spacing: 0.32em; text-transform: uppercase;
  font-size: 0.8rem; margin-bottom: 0.8rem; font-weight: 700;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  letter-spacing: 0.1em; color: var(--green); line-height: 0.95;
  margin-bottom: 1rem; text-indent: 0.1em;
}
.tagline { color: var(--muted); font-size: 1.2rem; margin-bottom: 1.4rem; }
.open-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 1rem; font-size: 0.88rem; font-weight: 700;
  margin-bottom: 1.8rem; box-shadow: var(--shadow);
}
.open-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.18); }
.open-badge.closed .dot { background: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.15); }
.open-badge.closed { color: var(--muted); }
.cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Cinta de marca */
.marquee {
  background: var(--green); overflow: hidden; white-space: nowrap;
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  padding: 0.65rem 0;
}
.marquee-track {
  display: inline-block; color: var(--gold-soft);
  font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.22em;
  animation: marquee 28s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Secciones */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-eyebrow {
  text-align: center; color: var(--gold); font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.75rem;
  margin-bottom: 0.5rem;
}
.section h2 {
  font-family: var(--display);
  font-size: 2.6rem; letter-spacing: 0.06em;
  color: var(--green); margin-bottom: 0.3rem; text-align: center;
}
.section h2::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--gold); border-radius: 2px; margin: 0.7rem auto 0;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* Tarjetas de servicios */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.6rem; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(34, 26, 17, 0.13); }
.card-featured { border: 2px solid var(--gold); }
.card-icon {
  width: 76px; height: 76px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex: 0 0 auto;
}
.card-icon svg { width: 40px; height: 40px; }
.card h3 { font-family: var(--display); font-size: 1.7rem; letter-spacing: 0.05em; color: var(--green); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.card-price {
  font-family: var(--display); font-size: 2.6rem; color: var(--gold);
  letter-spacing: 0.05em; margin: auto 0 1.1rem;
}
.card-price-note { font-size: 1.5rem; color: var(--muted); }
.hero-address {
  margin-top: 1.6rem; font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* Precios */
.prices-title {
  text-align: center; margin: 3rem 0 1.2rem;
  color: var(--green); font-size: 1.9rem; font-family: var(--display); letter-spacing: 0.06em;
}
.prices, .hours {
  width: 100%; max-width: 580px; margin: 0 auto;
  border-collapse: collapse; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.prices td, .hours td { padding: 0.95rem 1.4rem; border-bottom: 1px solid var(--line); }
.prices tr:last-child td, .hours tr:last-child td { border-bottom: none; }
.prices td:first-child, .hours td:first-child { font-weight: 700; color: var(--ink); }
.prices td:last-child {
  text-align: right; color: var(--gold); font-weight: 800;
  font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em;
}
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.today td { background: #eaf3ec; color: var(--green-dark); }
.hours tr.today td:last-child { color: var(--green-dark); font-weight: 700; }

/* Opiniones */
.reviews { text-align: center; }
.reviews .stars {
  font-size: 2.4rem; color: var(--gold); letter-spacing: 0.22em;
  margin-bottom: 0.75rem; text-indent: 0.22em;
}
.reviews h2 { margin-bottom: 0.3rem; }
.reviews .cta-row { margin-top: 0.5rem; }

/* Contacto */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch;
}
.contact-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow);
}
.contact-label { color: var(--gold); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.35rem; }
.contact-big {
  font-size: 2rem; font-weight: 800; color: var(--green);
  text-decoration: none; display: inline-block; margin-bottom: 1.25rem;
}
.contact-card p { margin-bottom: 1rem; color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Pie */
.site-footer {
  background: var(--green-dark); color: #e9e2d2;
  padding: 2.8rem 0 2rem; text-align: center; font-size: 0.92rem;
  border-top: 4px solid var(--gold);
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.14em; color: #fff; padding-top: 0.15em; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .tiny { font-size: 0.75rem; color: #9db3a6; margin-top: 0.5rem; }

/* Ajustes para árabe (RTL) */
[dir="rtl"] .kicker,
[dir="rtl"] .section-eyebrow,
[dir="rtl"] .marquee-track { letter-spacing: normal; }
[dir="rtl"] .hero h1,
[dir="rtl"] .section h2,
[dir="rtl"] .brand-word,
[dir="rtl"] .card h3,
[dir="rtl"] .prices-title { letter-spacing: normal; text-indent: 0; }
[dir="rtl"] .prices td:last-child,
[dir="rtl"] .hours td:last-child { text-align: left; }
[dir="rtl"] .hours td:last-child { direction: ltr; }
[dir="rtl"] .btn-call,
[dir="rtl"] .contact-big,
[dir="rtl"] .site-footer a[href^="tel:"] { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .reviews .stars { text-indent: 0; }

/* Móvil */
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fffdf8; flex-direction: column; padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line); gap: 0.9rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .btn-call { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.2rem 0 3rem; }
  /* Servicios en una sola fila deslizable */
  .cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem; margin: 0 -1.25rem; padding: 0.25rem 1.25rem 1rem;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards .card { flex: 0 0 80%; scroll-snap-align: center; }
}
