/* ==========================================================================
   Zarevila Barbería — hoja de estilos principal
   Fuentes autoalojadas: ./fonts.css (Oswald / Work Sans)
   ========================================================================== */

:root {
  --bg: #F7EEE1;
  --bg-dark: #201310;
  --bg-card: #EFE3D0;
  --bg-btn-dark: #2E1B15;
  --text: #241A13;
  --text-body: #4A3A2C;
  --text-legal: #3A2B20;
  --text-muted: #6B5A4A;
  --text-cream: #F7EEE1;
  --text-footer-muted: #9A8977;
  --text-footer-body: #C9BBAA;
  --border: #E0D2BA;
  --border-dark: #3B2419;
  --accent: #7A2331;
  --gold: #C9A24B;
  --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Work Sans', Arial, Helvetica, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-heading); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-dark);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

button, .btn { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-cream);
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  display: inline-block;
}
.btn-primary:hover { background: #611B27; color: var(--text-cream); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  padding: 12px 22px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  display: inline-block;
}
.btn-secondary:hover { background: var(--accent); color: var(--text-cream); }

/* ---------- Promo bar ---------- */
.promo-bar {
  background: var(--bg-dark);
  color: var(--gold);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.promo-bar strong { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-dark);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-cream);
  letter-spacing: 2px;
}
.brand-tag {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-top: 2px;
}
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-cream);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
  border-bottom-color: var(--gold);
}
.cart-toggle {
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-btn-dark);
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  color: var(--text-cream);
}
.cart-toggle .label {
  color: var(--text-cream);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
}
.cart-badge {
  background: var(--accent);
  color: var(--text-cream);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,12,9,0.55);
  z-index: 49;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 92vw;
  background: var(--bg);
  z-index: 50;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cart-drawer-head h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 1px;
  margin: 0;
}
.cart-close {
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  background: none;
  border: none;
}
.cart-empty { color: var(--text-muted); font-size: 14px; }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.cart-item img {
  width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: 3px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-price { font-size: 12px; color: var(--text-muted); margin: 4px 0; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  cursor: pointer; width: 22px; height: 22px; text-align: center; line-height: 20px;
  border: 1px solid var(--border); border-radius: 3px; background: var(--bg); font-size: 14px;
}
.cart-item-qty { font-size: 13px; }
.cart-item-remove { cursor: pointer; margin-left: auto; font-size: 12px; color: var(--accent); background: none; border: none; }
.cart-item-total { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-footer { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 12px; }
.cart-subtotal {
  display: flex; justify-content: space-between; font-family: var(--font-heading);
  font-size: 16px; margin-bottom: 14px;
}
.cart-success { background: var(--bg-card); padding: 14px; border-radius: 4px; font-size: 13px; }
.cart-shipping-note { font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.cart-shipping-note a { text-decoration: underline; }

/* ---------- Hero (home) ---------- */
.hero {
  display: flex;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 28px;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-text { flex: 1; min-width: 280px; }
.eyebrow {
  color: var(--accent);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-size: 14px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 14px 0;
  text-transform: uppercase;
}
.hero p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 460px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-media {
  flex: 1;
  min-width: 280px;
  width: 100%;
}
.hero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--bg-dark);
  padding: 28px 0;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; color: var(--text-cream); }
.stat-value { font-family: var(--font-heading); font-size: 30px; color: var(--gold); }
.stat-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Section headings ---------- */
.section { padding: 64px 28px; }
.section.tight { padding: 56px 28px; }
.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 36px;
}
.section-title.large { font-size: 38px; margin-bottom: 12px; }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 12px auto 40px;
}

/* ---------- Card grids ---------- */
.card-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.service-card {
  width: 260px;
  background: var(--bg-card);
  border-radius: 4px;
  padding: 22px;
}
.service-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin: 0 0 6px; text-transform: uppercase; }
.service-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.service-card .price { font-family: var(--font-heading); color: var(--accent); font-size: 17px; }
.view-all-link { text-align: center; margin-top: 30px; }
.view-all-link a { text-decoration: underline; font-size: 14px; }

/* ---------- About ---------- */
.about-section { background: var(--bg-card); padding: 64px 28px; }
.about-row { max-width: var(--container); margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.about-media { flex: 1; min-width: 280px; width: 100%; }
.about-media img { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; }
.about-text { flex: 1; min-width: 280px; }
.about-text h2 { font-size: 28px; text-transform: uppercase; }
.about-text p { line-height: 1.7; color: var(--text-body); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.testimonial-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial-quote { font-size: 14px; color: var(--text-body); font-style: italic; line-height: 1.6; }
.testimonial-name { font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--bg-dark); padding: 56px 28px; text-align: center; }
.cta-banner h2 { color: var(--text-cream); font-size: 26px; text-transform: uppercase; margin-bottom: 16px; }

/* ---------- Services list page ---------- */
.services-list { display: flex; flex-direction: column; gap: 14px; }
.service-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg-card); padding: 18px 24px; border-radius: 4px; flex-wrap: wrap;
}
.service-row h3 { font-size: 18px; margin: 0 0 4px; text-transform: uppercase; }
.service-row p { font-size: 13px; color: var(--text-muted); margin: 0; }
.service-row-right { display: flex; align-items: center; gap: 18px; }
.service-row .price { font-family: var(--font-heading); color: var(--accent); font-size: 19px; }

/* ---------- Team ---------- */
.team-grid { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.team-card { width: 250px; text-align: center; }
.team-card img { width: 100%; height: 260px; object-fit: cover; border-radius: 4px; }
.team-card h3 { font-size: 18px; margin: 14px 0 4px; text-transform: uppercase; }
.team-card .role { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.team-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gallery-item { position: relative; height: 200px; border-radius: 4px; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(32,19,16,0.85), rgba(32,19,16,0));
  color: var(--text-cream); font-size: 12px; padding: 20px 10px 8px; text-align: center;
}

/* ---------- Shop ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card { background: var(--bg-card); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; margin-bottom: 14px; }
.product-card h3 { font-size: 16px; margin: 0 0 6px; text-transform: uppercase; }
.product-card p { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; flex: 1; }
.product-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-family: var(--font-heading); color: var(--accent); font-size: 17px; }
.shop-intro-links a { text-decoration: underline; }

/* ---------- Blog ---------- */
.blog-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.blog-card { background: var(--bg-card); border-radius: 4px; padding: 22px; }
.blog-card-head {
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: none; border: none; width: 100%; text-align: left; padding: 0; font: inherit; color: inherit;
}
.blog-card-head h3 { font-size: 19px; margin: 0; text-transform: uppercase; }
.blog-toggle-icon { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.blog-excerpt { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.blog-body {
  font-size: 14px; color: var(--text-body); line-height: 1.7; margin-top: 14px;
  border-top: 1px solid var(--border); padding-top: 14px; display: none;
}
.blog-card.open .blog-body { display: block; }

/* ---------- Forms ---------- */
.form-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card); padding: 26px; border-radius: 4px;
}
.form-card label { font-size: 13px; font-weight: 600; display: block; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 11px; margin-top: 5px; border: 1px solid var(--border);
  border-radius: 3px; background: var(--bg); color: var(--text); font-size: 14px;
}
.form-card textarea { resize: vertical; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > label { flex: 1; min-width: 150px; }
.form-note { font-size: 11px; color: var(--text-muted); }
.form-note a { text-decoration: underline; }
.form-success { background: var(--bg-card); padding: 24px; border-radius: 4px; text-align: center; }
.form-success h2 { font-family: var(--font-heading); margin: 0 0 8px; }
.form-success p { color: var(--text-body); margin: 0; }
.hidden { display: none !important; }

/* ---------- Booking / Contact page layout ---------- */
.narrow-section { max-width: 700px; margin: 0 auto; padding: 56px 28px; }
.contact-columns { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.contact-col { flex: 1; min-width: 280px; }
.contact-col h3 { text-transform: uppercase; }
.contact-col .info { color: var(--text-body); line-height: 1.7; }
.map-placeholder {
  width: 100%; height: 180px; margin-top: 20px; border-radius: 4px;
  background: repeating-linear-gradient(135deg, #2A1712, #2A1712 10px, #3B2419 10px, #3B2419 20px);
  display: flex; align-items: center; justify-content: center; color: var(--text-cream);
  font-size: 12px; text-align: center; padding: 12px; gap: 8px;
}
.faq-block h4 { text-transform: uppercase; font-size: 14px; margin-top: 20px; }
.faq-item { margin-bottom: 10px; }
.faq-item .q { font-weight: 600; font-size: 13px; }
.faq-item .a { font-size: 13px; color: var(--text-muted); }

/* ---------- Legal pages ---------- */
.legal-section { max-width: 760px; margin: 0 auto; padding: 56px 28px; line-height: 1.8; color: var(--text-legal); }
.legal-section h1 { text-transform: uppercase; }
.legal-updated { font-size: 12px; color: var(--text-muted); }
.legal-section h3 { font-family: var(--font-heading); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-cream); padding: 48px 28px 24px; margin-top: 40px; }
.footer-row { max-width: var(--container); margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { min-width: 220px; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand p { font-size: 13px; color: var(--text-footer-body); margin-top: 10px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social span {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg-btn-dark);
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.footer-col h4 { font-family: var(--font-heading); text-transform: uppercase; font-size: 13px; color: var(--gold); margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--text-cream); }
.footer-links a:hover { color: var(--gold); }
.footer-newsletter { min-width: 240px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 9px; border: 1px solid var(--border-dark); border-radius: 3px;
  background: var(--bg-btn-dark); color: var(--text-cream); font-size: 13px;
}
.newsletter-form button {
  background: var(--gold); color: var(--bg-dark); border: none; padding: 9px 14px;
  border-radius: 3px; font-family: var(--font-heading); cursor: pointer;
}
.footer-hours { font-size: 12px; color: var(--text-footer-muted); margin-top: 12px; }
.footer-bottom {
  max-width: var(--container); margin: 32px auto 0; border-top: 1px solid var(--border-dark);
  padding-top: 18px; font-size: 12px; color: var(--text-footer-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero h1 { font-size: 36px; }
  .hero { padding: 40px 20px; }
  .section, .section.tight, .narrow-section, .legal-section { padding: 40px 20px; }
  .section-title.large { font-size: 28px; }
  .site-header { padding: 12px 16px; }
  .cta-banner h2 { font-size: 22px; }
}
