/* ============================================
   BLUEPRINT BARBERÍA — Sistema de diseño nativo
   Sin ACSS · Sin frameworks · CSS puro
   ============================================ */

/* ── VARIABLES :root ── */
:root {
  --color-dark:       #1c1c1a;
  --color-accent:     #c8a96e;
  --color-text:       #ffffff;
  --color-light:      #e8e0d5;
  --color-text-dark:  #212121;

  --color-accent-20:  rgba(200, 169, 110, 0.20);
  --color-accent-40:  rgba(200, 169, 110, 0.40);
  --color-dark-60:    rgba(28, 28, 26, 0.60);
  --color-dark-70:    rgba(28, 28, 26, 0.70);
  --color-white-10:   rgba(255, 255, 255, 0.10);
  --color-white-40:   rgba(255, 255, 255, 0.40);
  --color-white-80:   rgba(255, 255, 255, 0.80);

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-s:    clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
  --text-m:    clamp(1rem, 0.95rem + 0.5vw, 1.125rem);
  --text-l:    clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --text-xl:   clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --text-xxl:  clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --text-hero: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);

  --space-xs:   0.75rem;
  --space-s:    1.25rem;
  --space-m:    2rem;
  --space-l:    3rem;
  --space-xl:   5rem;
  --space-xxl:  8rem;

  --content-width:    1100px;
  --section-padding:  clamp(1rem, 3vw, 2rem);

  --transition:       all 0.3s ease;
  --border-radius:    2px;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-m);
  color: var(--color-text);
  background-color: var(--color-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol { list-style: none; }

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-xxl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-l); }
h5 { font-size: var(--text-m); }
h6 { font-size: var(--text-s); }
p { line-height: 1.8; }

/* ── LAYOUT HELPERS ── */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--section-padding);
}
.section {
  padding-block: var(--space-xl);
  padding-inline: var(--section-padding);
}
.section--light {
  background-color: var(--color-light);
  color: var(--color-text-dark);
}
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--color-text-dark);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85em 2em;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary { background-color: var(--color-accent); color: var(--color-dark); }
.btn--primary:hover { background-color: #d4b87a; }
.btn--outline { background-color: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.btn--outline:hover { background-color: var(--color-accent); color: var(--color-dark); }
.btn--white { background-color: var(--color-text); color: var(--color-dark); }
.btn--white:hover { background-color: rgba(255,255,255,0.88); }
.btn--ghost { background-color: transparent; color: var(--color-text); border: 1px solid var(--color-white-40); }
.btn--ghost:hover { border-color: var(--color-text); }

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow--dark { color: var(--color-accent); }

/* ── LÍNEA DECORATIVA ── */
.divider-accent { width: 48px; height: 2px; background-color: var(--color-accent); margin-block: var(--space-s); }
.divider-accent--center { margin-inline: auto; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem var(--section-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s ease, border-bottom 0.4s ease;
}
.header--scrolled { background-color: var(--color-dark); border-bottom: 1px solid var(--color-accent-20); }
.header__logo { font-family: var(--font-heading); font-size: var(--text-l); font-weight: 700; color: var(--color-accent); letter-spacing: 0.05em; }
.header__nav { display: flex; align-items: center; gap: var(--space-m); }
.header__nav a { font-family: var(--font-body); font-size: var(--text-s); font-weight: 400; color: var(--color-text); letter-spacing: 0.05em; opacity: 0.85; }
.header__nav a:hover { opacity: 1; color: var(--color-accent); }
@media (max-width: 768px) { .header__nav { display: none; } }

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 90svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, var(--color-dark-70) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; padding: var(--space-l) var(--section-padding); width: 100%; }
.hero__nav { display: flex; gap: var(--space-m); justify-content: flex-end; flex-wrap: wrap; }
.hero__nav a { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--color-text); opacity: 0.9; }
.hero__nav a:hover { opacity: 1; color: var(--color-accent); }

/* ── SPLIT (dos columnas sticky) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; width: 100%; }
.split__left {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-m);
  padding: var(--space-xl) var(--space-l) var(--space-xl) max(var(--section-padding), calc((100vw - var(--content-width)) / 2));
}
.split__right { display: flex; flex-direction: column; }
.split__right img { width: 100%; height: 100svh; object-fit: cover; position: sticky; top: 0; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split__left { position: static; height: auto; padding: var(--space-l) var(--section-padding); }
  .split__right img { height: auto; aspect-ratio: 1 / 1; position: static; }
}

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-align: center;
  padding-block: var(--space-xxl);
  padding-inline: var(--section-padding);
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: var(--color-dark-70); pointer-events: none; }
.cta-banner__content { position: relative; z-index: 1; max-width: 600px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-m); }
.cta-banner__actions { display: flex; gap: var(--space-s); flex-wrap: wrap; justify-content: center; }

/* ── SERVICIOS GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-accent-20);
  padding: var(--space-l) var(--space-m);
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.service-card:hover { border-color: var(--color-accent); background: var(--color-accent-20); }
.service-card__icon { font-size: 2rem; color: var(--color-accent); }
.service-card__name { font-family: var(--font-heading); font-size: var(--text-l); font-weight: 700; color: var(--color-text); }
.service-card__desc { font-size: var(--text-s); color: var(--color-white-80); line-height: 1.6; flex: 1; }
.service-card__price { font-family: var(--font-body); font-size: var(--text-xl); font-weight: 700; color: var(--color-accent); }

/* ── CONTACTO ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); align-items: center; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--space-l); }
.contact-item { display: flex; align-items: center; gap: var(--space-s); font-size: var(--text-m); color: var(--color-text-dark); }
.contact-item i { color: var(--color-accent); font-size: var(--text-l); width: 1.5em; text-align: center; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-top: var(--space-m);
}
.contact-image {
  width: 100%;
  display: flex;
  justify-content: center;
}
.contact-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  transition: mask-image 0.3s ease;
}

/* ── DIVISOR ENTRE SECCIONES ── */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-xl) 0;
  opacity: 0.4;
}

/* ── FOOTER ── */
.footer { background-color: var(--color-dark); padding: var(--space-xxl) var(--section-padding) var(--space-l); border-top: 1px solid var(--color-accent-20); }
.footer__top { display: flex; justify-content: space-between; gap: var(--space-l); flex-wrap: wrap; padding-bottom: var(--space-l); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-m); max-width: 320px; }
.footer__logo { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--color-accent); }
.footer__desc { font-size: var(--text-s); color: var(--color-white-80); line-height: 1.7; }
.footer__social { display: flex; gap: var(--space-s); }
.footer__social a { color: var(--color-white-40); font-size: var(--text-l); transition: var(--transition); }
.footer__social a:hover { color: var(--color-text); }
.footer__menus { display: flex; gap: var(--space-xxl); flex-wrap: wrap; }
.footer__menu-col { display: flex; flex-direction: column; gap: var(--space-m); min-width: 120px; }
.footer__menu-title { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text); }
.footer__menu-col a { font-size: var(--text-s); color: var(--color-white-80); }
.footer__menu-col a:hover { color: var(--color-text); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-l); border-top: 1px solid var(--color-white-10); flex-wrap: wrap; gap: var(--space-m); }
.footer__credit { font-size: var(--text-xs); color: var(--color-white-80); }
.footer__legal { display: flex; gap: var(--space-m); flex-wrap: wrap; }
.footer__legal a { font-size: var(--text-xs); font-weight: 700; color: var(--color-text); }
.footer__legal a:hover { text-decoration: underline; }

/* ── MAPA ── */
.mapa-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-l);
  align-items: center;
}
.mapa-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.mapa-img-link {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.mapa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
  filter: grayscale(20%);
}
.mapa-img-link:hover .mapa-img {
  filter: grayscale(0%);
}
.mapa-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(28,28,26,0.35);
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mapa-img-link:hover .mapa-overlay {
  opacity: 1;
}
.mt-l { margin-top: var(--space-l); }
@media (max-width: 768px) {
  .mapa-grid {
    grid-template-columns: 1fr;
  }
  .mapa-img-link {
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin: 0 auto;
    order: -1;
  }
  .mapa-info {
    text-align: center;
    align-items: center;
  }
}

/* ── ANIMACIONES ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }

/* ── UTILIDADES ── */
.text-accent   { color: var(--color-accent); }
.text-center   { text-align: center; }
.text-muted    { opacity: 0.7; }
.mt-s  { margin-top: var(--space-s); }
.mt-m  { margin-top: var(--space-m); }
.mt-l  { margin-top: var(--space-l); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { flex-direction: column; }
.gap-s { gap: var(--space-s); }
.gap-m { gap: var(--space-m); }

/* ============================================
   FIX CONTRASTE ACCESIBILIDAD (WCAG AA)
   ============================================ */
.section--light span.eyebrow,
.section--light span.eyebrow--dark,
.section--light div span.eyebrow,
.section--light .split__left span.eyebrow,
.section--light .contact-info span.eyebrow {
  color: #9a7a3e !important;
}
.section--light:first-of-type .eyebrow,
.section--light:first-of-type .eyebrow--dark {
  color: #9a7a3e !important;
}
.eyebrow:where(.section--light *),
.eyebrow--dark:where(.section--light *) {
  color: #9a7a3e !important;
}
.section--light [class*="eyebrow"] {
  color: #9a7a3e !important;
}
.eyebrow--accent { color: #9a7a3e; }
.section--light .text-accent { color: #9a7a3e !important; }

/* ── FOOTER HORIZONTAL MÓVIL ── */
@media (max-width: 768px) {
  .footer__top {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-m);
  }
  .footer__menus {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-l);
  }
  .footer__menu-col {
    min-width: auto;
    flex: 1 1 auto;
  }
}
