/* ============================================================
   BARBERÍA IMPERIAL — Landing base (boceto reutilizable)
   ------------------------------------------------------------
   PERSONALIZACIÓN RÁPIDA POR CLIENTE:
   1) Colores -> bloque ":root" (variables --gold / --bg).
   2) Tipografías -> variables --font-* (y el <link> de Google Fonts en index.html).
   3) Textos -> directamente en index.html.
   4) Fotos -> carpeta /img (ver README).
   ============================================================ */

/* ---------- 1. TOKENS DE DISEÑO ---------- */
:root {
  /* Fondos (de más oscuro a menos) */
  --bg-900: #0b0a08;
  --bg-850: #0f0d0b;
  --bg-800: #131110;
  --bg-700: #1b1814;
  --bg-600: #232017;

  /* Dorado (acento principal de la marca) */
  --gold-100: #f6e8c2;
  --gold-200: #ecd595;
  --gold-300: #e0c172;
  --gold-400: #d4af37;   /* PRIMARIO */
  --gold-500: #b8902f;
  --gold-600: #8f6c1d;

  /* Texto */
  --cream: #f6f1e6;
  --text:  #e7e0d1;
  --muted: #9c9384;

  /* Líneas y superficies */
  --line:  rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);
  --card:  rgba(255, 255, 255, 0.022);
  --card-hover: rgba(212, 175, 55, 0.05);

  /* Tipografías */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-head:    'Oswald', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Medidas */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --gold-grad: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 45%, var(--gold-600) 100%);

  /* Texto que va SOBRE el dorado (se mantiene oscuro en todos los temas) */
  --on-gold: #1a1510;
  /* Fondos de cabecera y menú (se adaptan por tema) */
  --header-bg: rgba(11, 10, 8, 0.86);
  --menu-bg: rgba(11, 10, 8, 0.97);
  /* Velo sobre las fotos de fondo de sección (se adapta por tema) */
  --section-overlay: rgba(11, 10, 8, 0.90);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════ TEMA 2 · NEUTRO (elegante, desaturado) ════════ */
:root[data-theme="neutral"] {
  --bg-900: #161514; --bg-850: #1b1a18; --bg-800: #201e1c; --bg-700: #262320; --bg-600: #2d2a26;
  --gold-100: #ece4d6; --gold-200: #d9ccb6; --gold-300: #c8b89c; --gold-400: #b6a382; --gold-500: #97855f; --gold-600: #6f6042;
  --cream: #f3eee5; --text: #d8d2c6; --muted: #948c7e;
  --line: rgba(182, 163, 130, 0.18); --line-soft: rgba(255,255,255,0.05);
  --card: rgba(255,255,255,0.02); --card-hover: rgba(182,163,130,0.06);
  --header-bg: rgba(22, 21, 20, 0.88); --menu-bg: rgba(22, 21, 20, 0.97);
  --section-overlay: rgba(22, 21, 20, 0.91);
}

/* ════════ TEMA 3 · CLARO (fondos claros, texto oscuro) ════════ */
:root[data-theme="light"] {
  --bg-900: #f4efe6; --bg-850: #efe8db; --bg-800: #fbf7ef; --bg-700: #ebe3d4; --bg-600: #e3d9c7;
  --gold-100: #8a6a1c; --gold-200: #a9842a; --gold-300: #9d7a22; --gold-400: #b8902f; --gold-500: #a07d24; --gold-600: #7c5f17;
  --cream: #1c1813; --text: #322d25; --muted: #756c5e;
  --line: rgba(160, 125, 36, 0.28); --line-soft: rgba(0,0,0,0.08);
  --card: rgba(0,0,0,0.022); --card-hover: rgba(184,144,47,0.08);
  --header-bg: rgba(244, 239, 230, 0.9); --menu-bg: rgba(244, 239, 230, 0.98);
  --section-overlay: rgba(244, 239, 230, 0.93);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }   /* asegura que el atributo hidden mande sobre display */
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
::selection { background: var(--gold-400); color: var(--on-gold); }

/* ---------- 3. TEXTURA DE GRANO (atmósfera) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 4. UTILIDADES ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 6vw, 82px); position: relative; }
.gold-text {
  background: linear-gradient(100deg, #c79b34 0%, #f6e8c2 22%, #fff0c2 31%, #e2c272 44%, #c79b34 64%, #c79b34 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: goldShimmer 5.5s linear infinite;
}
@keyframes goldShimmer { 0% { background-position: 185% 0; } 100% { background-position: -45% 0; } }

/* Encabezado de sección con ornamento de estrella */
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-300);
}
.section-head { text-align: center; margin-bottom: clamp(26px, 4vw, 50px); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 10px;
}
.divider-star {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 18px; color: var(--gold-400);
}
.divider-star::before, .divider-star::after {
  content: ""; width: clamp(40px, 10vw, 90px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.divider-star::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.divider-star span { font-size: 0.7rem; transform: translateY(-1px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem;
  padding: 15px 30px; border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-gold {
  background: var(--gold-grad); color: var(--on-gold);
  box-shadow: 0 8px 24px -8px rgba(212,175,55,0.5);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -8px rgba(212,175,55,0.65); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--cream);
  background: rgba(255,255,255,0.02); backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-200); transform: translateY(-3px); }

/* ---------- 5. HEADER / NAV ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
  padding-block: 22px;
}
.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; color: var(--gold-400); flex: none; }
.brand .name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.06em; line-height: 0.9; text-transform: uppercase; color: var(--cream); }
.brand .name small { display: block; font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.4em; color: var(--gold-300); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: 0.82rem; letter-spacing: 0.1em; color: var(--text);
  position: relative; padding: 4px 0; transition: color .3s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-grad); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-200); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; }
.burger span { height: 2px; width: 100%; background: var(--cream); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,7,5,0.97) 8%, rgba(8,7,5,0.72) 45%, rgba(8,7,5,0.25) 100%),
    linear-gradient(0deg, rgba(8,7,5,0.98) 2%, transparent 40%);
}
.hero-bg::before {
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: radial-gradient(60% 60% at 80% 30%, rgba(212,175,55,0.16), transparent 70%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 640px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-400); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8.5vw, 5.6rem);
  line-height: 0.92; text-transform: uppercase; color: var(--cream);
  letter-spacing: 0.005em;
}
.hero h1 .line3 { display: block; }
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.18rem); color: var(--text);
  max-width: 460px; margin: 26px 0 34px; opacity: 0.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 0.92rem; color: var(--text); }
.hero-trust .stars { color: var(--gold-400); letter-spacing: 2px; }
.hero-trust strong { color: var(--cream); }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 0.65rem; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll .mouse { width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:7px; background: var(--gold-400); border-radius:2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0%{opacity:0; top:6px} 30%{opacity:1} 60%{opacity:1; top:18px} 100%{opacity:0; top:18px} }

/* ---------- 7. CINTA / MARQUEE ---------- */
.ribbon { background: var(--gold-grad); color: var(--on-gold); overflow: hidden; padding: 14px 0; }
.ribbon .track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.ribbon .track span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 48px; }
.ribbon .track span::after { content: "✦"; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. POR QUÉ ELEGIRNOS ---------- */
.why {
  background-color: var(--bg-850);
  background-image: linear-gradient(var(--section-overlay), var(--section-overlay)),
    url("https://images.unsplash.com/photo-1512690459411-b9245aed614b?auto=format&fit=crop&w=1500&q=80");
  background-size: cover; background-position: center;
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.why-item { padding: 38px 28px; border-right: 1px solid var(--line); transition: background .4s; position: relative; }
.why-item:last-child { border-right: none; }
.why-item:hover { background: var(--card-hover); }
.why-item .ic { width: 40px; height: 40px; color: var(--gold-400); margin-bottom: 18px; transition: transform .35s ease, color .35s ease; transform-origin: left center; }
.why-item:hover .ic { transform: scale(1.18); color: var(--gold-300, var(--gold-400)); }
.why-item h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; color: var(--cream); margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- 9. SERVICIOS + PRECIOS ---------- */
#servicios {
  background-color: var(--bg-900);
  background-image: linear-gradient(var(--section-overlay), var(--section-overlay)),
    url("https://images.unsplash.com/photo-1593702288056-7927b442d0ae?auto=format&fit=crop&w=1500&q=80");
  background-size: cover; background-position: center;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--card); border: 1px solid var(--line);
  padding: 34px 28px; border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content:""; position:absolute; inset:0; opacity:0;
  background: radial-gradient(120% 100% at 50% 0%, rgba(212,175,55,0.1), transparent 60%);
  transition: opacity .4s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: 0 22px 40px -22px rgba(0,0,0,0.8); }
.service-card:hover::before { opacity: 1; }
.service-card .ic { width: 44px; height: 44px; color: var(--gold-400); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.15rem; color: var(--cream); }
.service-card p { color: var(--muted); font-size: 0.92rem; margin: 8px 0 20px; min-height: 42px; }
.service-card .price-row { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.service-card .price { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-300); letter-spacing: 0.02em; }
.service-card .price small { font-size: 0.9rem; color: var(--muted); font-family: var(--font-body); }
.service-card .dur { font-family: var(--font-head); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }

/* ---------- Cabecera de páginas internas (galería) ---------- */
.page-hero {
  position: relative; padding: 130px 0 34px; text-align: center;
  background-color: var(--bg-850);
  background-image: linear-gradient(var(--section-overlay), var(--section-overlay)),
    url("https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center;
}
.page-hero .back {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
  color: var(--gold-200); transition: color .3s;
}
.page-hero .back:hover { color: var(--gold-100); }

/* ---------- 10. GALERÍA ---------- */
.gallery { background: var(--bg-850); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--line-soft); }
.gallery-grid figure.tall { grid-row: span 2; }
.gallery-grid figure.wide { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: grayscale(0.3) brightness(0.85); }
.gallery-grid figure:hover img { transform: scale(1.08); filter: grayscale(0) brightness(1); }
.gallery-grid figure::after {
  content: "＋"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold-100); font-size: 1.6rem; opacity: 0;
  background: linear-gradient(0deg, rgba(11,10,8,0.6), transparent); transition: opacity .4s;
}
.gallery-grid figure:hover::after { opacity: 1; }

/* ---------- 11. BARBEROS ---------- */
.barbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin-left: auto; margin-right: auto; }
.barber-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/4; }
.barber-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.82); transition: transform .8s var(--ease), filter .5s; }
.barber-card:hover img { transform: scale(1.06); filter: grayscale(0) brightness(0.95); }
.barber-card .info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px;
  background: linear-gradient(0deg, rgba(11,10,8,0.95) 20%, transparent);
  transform: translateY(8px); transition: transform .4s var(--ease);
}
.barber-card:hover .info { transform: translateY(0); }
.barber-card h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.3rem; color: var(--cream); }
.barber-card .role { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.68rem; color: var(--gold-300); margin-top: 2px; }
.barber-card .socials { display: flex; gap: 12px; margin-top: 12px; opacity: 0; transition: opacity .4s .05s; }
.barber-card:hover .socials { opacity: 1; }
.barber-card .socials a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-200); transition: .3s; }
.barber-card .socials a:hover { background: var(--gold-400); color: var(--on-gold); }

/* Stats fila */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat { display: flex; align-items: center; gap: 16px; }
.stat .ic { width: 34px; height: 34px; color: var(--gold-400); flex: none; }
.stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--cream); line-height: 1; }
.stat .lbl { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; color: var(--muted); }

/* ---------- 12. TESTIMONIOS ---------- */
.testi { background: var(--bg-850); position: relative; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.testi-card .quote-mark { font-family: var(--font-serif); font-size: 4rem; line-height: 0.5; color: var(--gold-500); opacity: 0.5; height: 28px; }
.testi-card .stars { color: var(--gold-400); letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.testi-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--text); line-height: 1.65; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi-card .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; }
.testi-card .who strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--cream); display: block; }
.testi-card .who span { font-size: 0.78rem; color: var(--muted); }

/* ---------- 13. RESERVAR (FORM) ---------- */
.book {
  position: relative;
  background-color: #0b0a08;
  background-image: linear-gradient(rgba(9,8,6,0.88), rgba(9,8,6,0.92)),
    url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center;
}
.book-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.book-aside { padding: clamp(34px, 5vw, 56px); background: var(--bg-700); position: relative; }
.book-aside h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3rem); line-height: 0.95; color: var(--cream); margin: 12px 0 18px; }
.book-aside p { color: var(--muted); margin-bottom: 28px; }
.book-aside .perk { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.book-aside .perk .ic { width: 22px; height: 22px; color: var(--gold-400); flex: none; }
.book-aside .perk span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.84rem; color: var(--text); }
.book-form { padding: clamp(34px, 5vw, 56px); background: var(--bg-800); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--gold-300); }
.field input, .field select, .field textarea {
  background: var(--bg-900); border: 1px solid var(--line); color: var(--cream);
  padding: 13px 14px; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color .3s, background .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-400); background: var(--bg-850); }
.field textarea { resize: vertical; min-height: 84px; }
.book-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.book-form .note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ---------- 14. HORARIO + UBICACIÓN ---------- */
.locate-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.hours-card, .map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours-card { background: var(--bg-800); padding: clamp(28px, 4vw, 44px); }
.hours-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; color: var(--cream); margin-bottom: 6px; }
.hours-card .addr { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; display: flex; gap: 10px; }
.hours-card .addr .ic { width: 18px; height: 18px; color: var(--gold-400); flex: none; margin-top: 3px; }
.hours-list li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.hours-list li span:first-child { color: var(--text); }
.hours-list li span:last-child { color: var(--gold-200); }
.hours-list li.closed span:last-child { color: var(--muted); }
.hours-card .contact-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); }
.hours-card .contact-line .ic { width: 18px; height: 18px; color: var(--gold-400); }
.map-card { min-height: 360px; background: var(--bg-700); }
.map-card iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(0.4) invert(0.9) contrast(0.85); }

/* ---------- 15. FOOTER ---------- */
.footer { background: var(--bg-900); border-top: 1px solid var(--line); padding-block: 60px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 18px; }
.footer p.about { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.footer h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--gold-300); margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a, .footer .fcontact li { color: var(--muted); font-size: 0.9rem; transition: color .3s; }
.footer ul a:hover { color: var(--gold-200); }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-200); transition: .3s; }
.footer-socials a:hover { background: var(--gold-400); color: var(--on-gold); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }

/* ---------- 16. ANIMACIONES DE ENTRADA (scroll reveal) ---------- */
.reveal { opacity: 0; transform: translateY(36px) scale(0.985); filter: blur(5px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; filter: none; }
/* Variantes direccionales */
.reveal.r-left { transform: translateX(-48px) scale(0.99); }
.reveal.r-right { transform: translateX(48px) scale(0.99); }
.reveal.r-left.in-view, .reveal.r-right.in-view { transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Carga del hero */
.hero .anim { opacity: 0; transform: translateY(28px); animation: heroIn 1s var(--ease) forwards; }
.hero .anim.d1 { animation-delay: .15s; }
.hero .anim.d2 { animation-delay: .3s; }
.hero .anim.d3 { animation-delay: .45s; }
.hero .anim.d4 { animation-delay: .6s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2300; background: rgba(7,6,5,0.94); display: none; place-items: center; padding: 30px; backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 86vh; border: 1px solid var(--line); border-radius: var(--radius); }
.lightbox .close { position: absolute; top: 24px; right: 30px; font-size: 2rem; color: var(--cream); cursor: pointer; }

/* Placeholder de imagen (cuando la foto no carga) */
.img-fallback { background: var(--bg-700) var(--gold-grad) !important; position: relative; }

/* ---------- 16b. SELECTOR DE TEMA (widget flotante) ---------- */
.theme-switch {
  position: fixed; left: 18px; bottom: 18px; z-index: 1500;
  display: flex; align-items: center; gap: 10px;
  background: var(--header-bg); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 50px; padding: 9px 12px;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
}
.theme-switch .ts-label {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.6rem; color: var(--muted); padding-left: 4px;
}
.theme-switch .swatches { display: flex; gap: 7px; }
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), border-color .25s; position: relative;
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.active { border-color: var(--gold-400); }
.theme-dot[data-set="dark"]    { background: linear-gradient(135deg, #1a1714 50%, #d4af37 50%); }
.theme-dot[data-set="neutral"] { background: linear-gradient(135deg, #201e1c 50%, #b6a382 50%); }
.theme-dot[data-set="light"]   { background: linear-gradient(135deg, #efe8db 50%, #b8902f 50%); border: 2px solid var(--line); }
.theme-dot[data-set="light"].active { border-color: var(--gold-400); }

/* ---------- 16c. FAQ ---------- */
.faq { background: var(--bg-850); }
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--card); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; text-align: left;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1rem; color: var(--cream); transition: color .3s;
}
.faq-q:hover { color: var(--gold-200); }
.faq-q .sign { font-size: 1.4rem; color: var(--gold-400); transition: transform .35s var(--ease); flex: none; line-height: 1; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- 16d. BONO REGALO ---------- */
.gift { position: relative; overflow: hidden; }
/* Vídeo de fondo en bucle (silenciado) con velo oscuro+dorado */
.gift-video { position: absolute; inset: 0; z-index: 0; }
.gift-video video, .gift-video img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) sepia(0.18) brightness(0.5) contrast(1.05); }
.gift-video::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 50% 25%, rgba(212,175,55,0.16), transparent 62%),
    linear-gradient(rgba(9,8,6,0.70), rgba(9,8,6,0.82));
}
.gift .container { position: relative; z-index: 1; }
.gift-card {
  position: relative; border: 1px solid var(--gold-500); border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px); text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(212,175,55,0.14), transparent 60%),
    rgba(10, 9, 7, 0.5);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.gift-card::before, .gift-card::after {
  content: "✦"; position: absolute; color: var(--gold-500); opacity: 0.4; font-size: 1.4rem;
}
.gift-card::before { top: 22px; left: 26px; }
.gift-card::after { bottom: 22px; right: 26px; }
.gift-card .eyebrow { display: block; margin-bottom: 14px; }
.gift-card h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 0.95; color: var(--cream); }
.gift-card p { color: var(--text); max-width: 540px; margin: 18px auto 30px; }
.gift-card .amounts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.gift-card .chip {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-200);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 22px;
  transition: background .3s, color .3s, transform .3s;
}
.gift-card .chip:hover { background: var(--gold-grad); color: var(--on-gold); transform: translateY(-3px); }

/* ---------- 16e. TARIFA COMPLETA (menú de precios) ---------- */
.pricing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 60px; max-width: 960px; margin-inline: auto; }
.price-group { break-inside: avoid; }
.price-group h3 {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.82rem; color: var(--gold-300); margin: 14px 0 6px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.price-group h3 svg { width: 18px; height: 18px; }
.price-line { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.price-line .pname { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.92rem; color: var(--text); }
.price-line .leader { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 14px; }
.price-line .pval { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-200); white-space: nowrap; }

/* ---------- 16f. BANDA CTA CON FONDO (parallax) ---------- */
.cta-band {
  position: relative; padding-block: clamp(64px, 11vw, 128px); text-align: center;
  background-color: #0b0a08;
  background-image: linear-gradient(rgba(8,7,5,0.74), rgba(8,7,5,0.82)),
    url("https://images.unsplash.com/photo-1622286342621-4bd786c2447c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover; background-position: center; background-attachment: fixed;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 40%, rgba(212,175,55,0.14), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band .eyebrow { color: #e2c272; }
.cta-band h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem, 6.5vw, 4.6rem); line-height: 0.95; color: #f6f1e6; max-width: 18ch; margin: 16px auto 30px; }

/* ---------- 16g. INSTAGRAM ---------- */
.insta { background: var(--bg-850); }
.insta-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 30px; }
.insta-head a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; color: var(--gold-200); display: inline-flex; align-items: center; gap: 10px; transition: color .3s; }
.insta-head a:hover { color: var(--gold-100); }
.insta-head svg { width: 22px; height: 22px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-grid a { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) brightness(0.9); transition: transform .6s var(--ease), filter .4s; }
.insta-grid a:hover img { transform: scale(1.09); filter: none; }
.insta-grid a::after {
  content: ""; position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: rgba(11,10,8,0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' stroke='%23f6e8c2' stroke-width='1.6'%3E%3Crect x='3' y='3' width='20' height='20' rx='5'/%3E%3Ccircle cx='13' cy='13' r='4'/%3E%3Ccircle cx='18.5' cy='7.5' r='1' fill='%23f6e8c2' stroke='none'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: opacity .35s;
}
.insta-grid a:hover::after { opacity: 1; }

/* Iconos de redes (SVG) */
.footer-socials a svg { width: 17px; height: 17px; }
.barber-card .socials a svg { width: 14px; height: 14px; }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2) { border-right: none; }
  .why-item:nth-child(1), .why-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .barbers-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .pricing-cols { grid-template-columns: 1fr; gap: 0 0; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .book-wrap { grid-template-columns: 1fr; }
  .locate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* El menú pasa a hamburguesa cuando los enlaces no caben en una sola línea */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--menu-bg); backdrop-filter: blur(14px); padding: 26px var(--gutter);
    gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0;
    pointer-events: none; transition: .35s var(--ease);
  }
  .nav-links.open { display: flex; transform: none; opacity: 1; pointer-events: auto; }
}

@media (max-width: 680px) {
  .services-grid, .why-grid, .gallery-grid, .barbers-grid, .footer-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid var(--line); }
  .why-item:last-child { border-bottom: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .cta-band { background-attachment: scroll; }
  .gallery-grid figure.tall, .gallery-grid figure.wide { grid-row: auto; grid-column: auto; }
  .hero { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .theme-switch { left: 12px; bottom: 12px; padding: 8px 10px; }
  .theme-switch .ts-label { display: none; }
}

/* Respetamos "reducir movimiento": quitamos las entradas y desplazamientos,
   PERO mantenemos el contenido visible y la cinta de servicios en marcha. */
@media (prefers-reduced-motion: reduce) {
  /* Mantenemos una aparición suave (solo opacidad), sin desplazamientos ni desenfoque */
  .reveal { transform: none !important; filter: none !important; }
  .reveal.r-left, .reveal.r-right { transform: none !important; }
  .hero .anim { opacity: 1 !important; transform: none !important; }
  .hero-scroll .mouse::after { animation: none; }
  /* La cinta sigue moviéndose (es decorativa y el cliente la quiere así) */
  .ribbon .track { animation: marquee 30s linear infinite !important; }
}

/* ============================================================
   21. EFECTOS DE MODERNIZACIÓN
   ============================================================ */
/* Barra de progreso de scroll (dorada, arriba) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1200;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(212,175,55,0.6);
  transition: width .12s linear;
}

/* Botones del hero: efecto continuo para que destaquen */
/* ── Botón dorado: glow + shimmer rápido + anillo radar ── */
.hero-actions .btn-gold { animation: ctaGlow 2s ease-in-out infinite, pulse 4s infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 6px 24px -6px rgba(212,175,55,0.5); }
  50%       { box-shadow: 0 10px 38px -4px rgba(212,175,55,1), 0 0 32px -4px rgba(212,175,55,0.45); }
}
/* Latido cada 4s para llamar la atención sobre "Reservar cita" */
@keyframes pulse {
  0%  { transform: scale(1); }
  10% { transform: scale(1.1); }
  20% { transform: scale(1); }
}
/* Shimmer blanco que cruza cada 1.8 s */
.hero-actions .btn-gold::after {
  content: ""; position: absolute; top: -10%; left: -150%; width: 65%; height: 120%;
  background: linear-gradient(100deg, transparent 10%, rgba(255,255,255,0.82) 50%, transparent 90%);
  transform: skewX(-22deg); animation: ctaShine 1.8s ease-in-out infinite; pointer-events: none;
}
@keyframes ctaShine { 0% { left: -150%; } 38%, 100% { left: 185%; } }
/* Anillo radar que se expande desde el borde */
.hero-actions .btn-gold::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid rgba(212,175,55,0.9);
  animation: pingRing 2s ease-out infinite;
  pointer-events: none;
}
@keyframes pingRing {
  0%   { transform: scale(1);    opacity: 0.85; }
  70%  { opacity: 0.15; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ── Botón ghost IA: borde dorado intenso + relleno en hover ── */
.hero-actions .btn-ghost { isolation: isolate; }
/* Relleno deslizante en hover (::before) */
.hero-actions .btn-ghost::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.18) 0%, rgba(212,175,55,0.08) 100%);
  transform: translateX(-101%); transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}
.hero-actions .btn-ghost:hover::before { transform: translateX(0); }
/* Pulso de borde dorado muy visible */
.hero-actions .btn-ai { animation: aiPulse 1.9s ease-in-out infinite; }
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0),   0 0 0 0 rgba(212,175,55,0);   border-color: rgba(212,175,55,0.45); }
  50%       { box-shadow: 0 0 28px -2px rgba(212,175,55,0.75), 0 0 0 5px rgba(212,175,55,0.12); border-color: rgba(212,175,55,1); }
}

/* ── Ripple al hacer clic ── */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  animation: rippleAnim 0.65s linear forwards; pointer-events: none;
}
.btn-gold .ripple { background: rgba(255,255,255,0.35); }
.btn-ghost .ripple { background: rgba(212,175,55,0.28); }
@keyframes rippleAnim { to { transform: scale(4.5); opacity: 0; } }

/* Press táctil */
.hero-actions .btn:active { transform: scale(0.96) translateY(2px) !important; transition: transform .1s !important; }

/* Destello al pasar el ratón por las tarjetas de servicio */
.service-card::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-18deg); transition: left .75s var(--ease); pointer-events: none;
}
.service-card:hover::after { left: 135%; }
.service-card > * { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-gold, .hero-actions .btn-ai, .hero-actions .btn-ghost { animation: none; }
  .hero-actions .btn-gold::after, .hero-actions .btn-gold::before { animation: none; display: none; }
  .hero-actions .btn-ghost::before { transition: none; }
  .gold-text { animation: none; }
}

/* ============================================================
   18. LEGIBILIDAD ENTRE TEMAS
   Estas zonas SIEMPRE tienen fondo oscuro (foto/degradado fijo),
   así que su texto debe permanecer claro en cualquier paleta.
   ============================================================ */
/* Cabecera transparente al inicio (sobre el hero oscuro) */
.header:not(.scrolled) .name { color: #f6f1e6; }
.header:not(.scrolled) .name small { color: #e0c172; }
.header:not(.scrolled) .nav-links a { color: #e9e3d5; }
.header:not(.scrolled) .mark { color: #e0c172; }
.header:not(.scrolled) .burger span { background: #f6f1e6; }

/* Hero (siempre sobre foto + scrim oscuro) */
.hero h1 { color: #f6f1e6; }
.hero p.lead { color: #e6e0d2; }
.hero .eyebrow { color: #e2c272; }
/* (.gold-text usa el shimmer dorado animado definido más arriba) */
.hero-trust { color: #e6e0d2; }
.hero-trust strong { color: #fff; }
.hero-trust .stars { color: #e2c272; }

/* Tarjetas de barbero (rótulo sobre degradado oscuro fijo) */
.barber-card h3 { color: #f6f1e6; }
.barber-card .role { color: #e0c172; }
.barber-card .socials a { border-color: rgba(226,194,114,0.4); color: #e8d3a0; }

/* Icono "＋" de la galería al hacer hover */
.gallery-grid figure::after { color: #f6e8c2; }

/* Bono regalo (sobre vídeo oscuro): texto claro en cualquier tema */
.gift-card .eyebrow { color: #e2c272; }
.gift-card h2 { color: #f6f1e6; }
.gift-card p { color: #e8e1d2; }
.gift-card .chip { color: #f0d98a; border-color: rgba(226,194,114,0.4); }

/* ============================================================
   19. WIDGETS FLOTANTES (chat + WhatsApp)
   ============================================================ */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 1400;
  display: flex; flex-direction: column; gap: 13px; align-items: flex-end;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.55); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 27px; height: 27px; }
.fab.wa { background: #25D366; color: #fff; }
.fab.chat { background: var(--gold-grad); color: var(--on-gold); }
.fab .badge {
  position: absolute; top: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: #e23b3b; color: #fff; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600;
  display: grid; place-items: center; border: 2px solid var(--bg-900);
}
.fab .fab-tip {
  position: absolute; right: 66px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--menu-bg); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem;
  padding: 8px 12px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(8px);
}
.fab:hover .fab-tip { opacity: 1; }

/* Pulso del botón de chat para llamar la atención */
.fab.chat::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-400);
  animation: fabPulse 2.4s var(--ease) infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: .6; } 70%,100% { transform: scale(1.6); opacity: 0; } }

/* Panel de chat */
.chat-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 1450;
  width: min(350px, calc(100vw - 40px)); max-height: min(540px, calc(100vh - 140px));
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 26px 64px -22px rgba(0,0,0,0.75);
  transform: translateY(18px) scale(.95); opacity: 0; pointer-events: none; transform-origin: bottom right;
  transition: transform .32s var(--ease), opacity .32s;
}
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--bg-700); border-bottom: 1px solid var(--line); }
.chat-head .c-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); display: grid; place-items: center; flex: none; }
.chat-head .c-avatar svg { width: 22px; height: 22px; }
.chat-head h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .92rem; color: var(--cream); line-height: 1.1; }
.chat-head .status { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.chat-close { margin-left: auto; color: var(--muted); font-size: 1.4rem; line-height: 1; transition: color .3s; }
.chat-close:hover { color: var(--cream); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 15px; font-size: .9rem; line-height: 1.5; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { background: var(--bg-700); color: var(--text); border-bottom-left-radius: 4px; align-self: flex-start; border: 1px solid var(--line-soft); }
.msg.user { background: var(--gold-grad); color: var(--on-gold); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chips button {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: .64rem;
  color: var(--gold-200); border: 1px solid var(--line); border-radius: 50px; padding: 7px 12px; transition: .25s;
}
.chat-chips button:hover { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg-800); }
.chat-input input { flex: 1; background: var(--bg-900); border: 1px solid var(--line); color: var(--cream); border-radius: 50px; padding: 10px 16px; font-family: var(--font-body); font-size: .88rem; }
.chat-input input:focus { outline: none; border-color: var(--gold-400); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); display: grid; place-items: center; flex: none; transition: transform .25s; }
.chat-input button:hover { transform: scale(1.08); }
.chat-input button svg { width: 18px; height: 18px; }

@media (max-width: 680px) {
  .fab-stack { right: 14px; bottom: 14px; }
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 24px; height: 24px; }
  .chat-panel { right: 14px; bottom: 78px; }
}

/* ============================================================
   20. SIMULADOR DE ESTILO (Virtual Try-On)
   ============================================================ */
.tryon-promo {
  position: relative; text-align: center;
  background-color: #0b0a08;
}
/* Vídeo de fondo en bucle (silenciado) con velo oscuro */
.tryon-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tryon-video video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) sepia(0.15) brightness(0.55) contrast(1.05); }
.tryon-video::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(8,7,5,0.62), rgba(8,7,5,0.80));
}
.tryon-promo .badge-ai {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem;
  color: var(--on-gold); background: var(--gold-grad); padding: 7px 14px; border-radius: 50px;
}
.tryon-promo h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 6vw, 4rem); line-height: 0.95; color: #f6f1e6; }
.tryon-promo p { color: #e6e0d2; max-width: 540px; margin: 16px auto 28px; }
.tryon-promo .mini-steps { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-top: 30px; }
.tryon-promo .mini-steps span { display: inline-flex; align-items: center; gap: 9px; color: #cfc7b6; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; }
.tryon-promo .mini-steps b { width: 24px; height: 24px; border-radius: 50%; background: rgba(212,175,55,0.15); color: #e2c272; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.8rem; }

/* Modal */
.tryon-modal {
  position: fixed; inset: 0; z-index: 2100; display: none; place-items: center; padding: 20px;
  background: rgba(6,5,4,0.86); backdrop-filter: blur(8px);
}
.tryon-modal.open { display: grid; }
.tryon-dialog {
  width: min(940px, 100%); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.8); animation: msgIn .4s var(--ease);
}
.tryon-top { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--bg-700); }
.tryon-top .badge-ai { margin: 0; }
.tryon-top h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; color: var(--cream); }
.tryon-top .x { margin-left: auto; font-size: 1.5rem; color: var(--muted); line-height: 1; transition: color .3s; }
.tryon-top .x:hover { color: var(--cream); }

.tryon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: auto; }
.tryon-stage { padding: 24px; border-right: 1px solid var(--line); min-height: 360px; display: flex; flex-direction: column; }
.tryon-controls { padding: 24px; display: flex; flex-direction: column; }

/* Dropzone */
.dropzone {
  flex: 1; border: 1.5px dashed var(--line); border-radius: 12px; display: grid; place-items: center;
  text-align: center; padding: 28px; cursor: pointer; transition: border-color .3s, background .3s; color: var(--muted);
  background: rgba(255,255,255,0.015);
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold-400); background: var(--card-hover); color: var(--text); }
.dropzone svg { width: 42px; height: 42px; color: var(--gold-400); margin-bottom: 12px; }
.dropzone strong { color: var(--cream); display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; }
.dropzone small { font-size: 0.8rem; }

/* Lienzo de imagen (preview / resultado) */
.stage-media { flex: 1; position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-900); display: grid; place-items: center; min-height: 300px; max-height: 66vh; }
.stage-media img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.stage-expand {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(9,8,6,0.7); border: 1px solid var(--line); color: var(--cream); backdrop-filter: blur(6px); transition: background .25s, color .25s;
}
.stage-expand:hover { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.stage-expand svg { width: 18px; height: 18px; }
.stage-media .ph { color: var(--muted); font-size: 0.85rem; padding: 20px; text-align: center; }
.stage-loading { position: absolute; inset: 0; display: none; place-items: center; flex-direction: column; gap: 14px; background: rgba(9,8,6,0.82); color: var(--cream); text-align: center; padding: 24px; }
.stage-loading.show { display: grid; }
.stage-loading .spinner { width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--gold-400); border-radius: 50%; animation: spin 0.9s linear infinite; }
.stage-loading span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.stage-loading small { color: var(--muted); font-size: 0.74rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage-tag { position: absolute; top: 10px; left: 10px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.62rem; color: var(--on-gold); background: var(--gold-grad); padding: 5px 10px; border-radius: 50px; }

/* Controles de estilo */
.tryon-controls h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--gold-300); margin: 0 0 10px; }
.tryon-controls .group { margin-bottom: 20px; }
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chips button {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.72rem;
  color: var(--text); border: 1px solid var(--line); border-radius: 50px; padding: 8px 13px; transition: .2s;
}
.style-chips button:hover { border-color: var(--gold-400); color: var(--gold-200); }
.style-chips button.sel { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.tryon-controls .actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.tryon-controls .actions .btn { width: 100%; justify-content: center; }
.tryon-controls .actions .btn[disabled] { opacity: .45; pointer-events: none; }
.tryon-msg { font-size: 0.82rem; color: var(--muted); text-align: center; min-height: 18px; }
.tryon-msg.err { color: #e6896f; }
.tryon-disclaimer { font-size: 0.7rem; color: var(--muted); text-align: center; margin-top: 4px; }

@media (max-width: 760px) {
  .tryon-grid { grid-template-columns: 1fr; }
  .tryon-stage { border-right: none; border-bottom: 1px solid var(--line); min-height: 280px; }
}

/* ============================================================
   20b. BLOQUE DESTACADO "TU NUEVO LOOK CON IA"
   ============================================================ */
.tryon-promo { text-align: left; }                 /* anula el center anterior */
.tryon-promo::after {                               /* halo dorado superior */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 80% 20%, rgba(212,175,55,0.16), transparent 60%);
}
.tryon-promo-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.tryon-promo-text .badge-ai { margin-bottom: 18px; }
.tryon-promo-text h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem, 6.2vw, 4.4rem); line-height: 0.92; color: #f6f1e6; }
.tryon-promo-text p { color: #e6e0d2; max-width: 460px; margin: 16px 0 26px; }
.tryon-promo .mini-steps { justify-content: flex-start; }
.btn-lg { padding: 18px 38px; font-size: 0.92rem; }

/* Badge pulsante */
.badge-ai.pulse { position: relative; }
.badge-ai.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50px; animation: badgePulse 2.2s ease-out infinite;
}
@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(212,175,55,0); }
}

/* Visual antes / después */
.tryon-promo-visual { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.ba-card { position: relative; width: 46%; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 22px 50px -22px rgba(0,0,0,0.8); }
.ba-card img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { transform: rotate(-4deg) translateY(10px); filter: grayscale(0.35) brightness(0.82); }
.ba-after { transform: rotate(4deg) translateY(-10px); z-index: 2; border-color: var(--gold-500); animation: afterGlow 3s ease-in-out infinite; }
@keyframes afterGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--gold-500), 0 22px 56px -20px rgba(212,175,55,0.35); }
  50% { box-shadow: 0 0 0 1px var(--gold-400), 0 26px 70px -16px rgba(212,175,55,0.62); }
}
.ba-tag { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.6rem; padding: 5px 11px; border-radius: 50px; background: rgba(9,8,6,0.82); color: var(--cream); white-space: nowrap; }
.ba-tag-gold { background: var(--gold-grad); color: var(--on-gold); }
.ba-arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: 50px; height: 50px; border-radius: 50%; background: var(--gold-grad); color: var(--on-gold); display: grid; place-items: center; box-shadow: 0 10px 26px -6px rgba(212,175,55,0.6); }
.ba-arrow svg { width: 24px; height: 24px; }

/* Botón IA en el hero */
.btn-ai { border-color: var(--gold-500); color: var(--gold-100); }
.btn-ai:hover { border-color: var(--gold-400); color: var(--gold-100); }

/* Enlace destacado en el menú */
.nav-links a.nav-highlight { color: var(--gold-200); }
.nav-links a.nav-highlight::before { content: "✨"; margin-right: 5px; font-size: 0.85em; }
.header:not(.scrolled) .nav-links a.nav-highlight { color: #f0d98a; }

@media (max-width: 860px) {
  .tryon-promo { text-align: center; }
  .tryon-promo-inner { grid-template-columns: 1fr; gap: 34px; }
  .tryon-promo-visual { order: -1; }
  .tryon-promo-text .badge-ai { margin-inline: auto; }
  .tryon-promo-text p { margin-inline: auto; }
  .tryon-promo .mini-steps { justify-content: center; }
}
