/* =====================================================================
   BarberTop · estilos compartidos (cursos, servicios para barberías, blog)
   Mismo estilo que la portada: Anton + Manrope, negro carbón y dorado.
   ===================================================================== */
:root {
  --fondo:  #0D0C0B;  --fondo2: #171310;  --carta: #141110;  --linea: #2E2721;
  --hueso:  #F3EEE6;  --texto2: #CFC6B8;  --ceniza: #9C9285;
  --oro:    #C9A660;  --oro-claro: #D9BC80;
  --titulo: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --cuerpo: 'Manrope', system-ui, sans-serif;
  /* nombres usados por las páginas internas */
  --negro: var(--fondo); --blanco: var(--hueso); --suave: var(--texto2); --gris: #15110e;
  --grande: var(--titulo); --letra: var(--cuerpo);
  --ancho: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--fondo); color: var(--hueso); font: 400 16px/1.65 var(--cuerpo); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.caja { width: min(var(--ancho), 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
section { padding: clamp(64px, 8vw, 104px) 0; }
.textura { background: #0b0a09 url('imagenes/sitio/textura.webp') center / 640px auto repeat; }

/* Títulos grandes y espaciados */
.titulo { font: 400 clamp(32px, 4.4vw, 54px)/1.05 var(--titulo); letter-spacing: .16em; text-transform: uppercase; }
.titulo.centro { text-align: center; }
.titulo.tijeras { display: flex; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.titulo.tijeras::before, .titulo.tijeras::after { content: ""; width: 34px; height: 1px; background: var(--ceniza); flex: none; }
.titulo.chico { font-size: clamp(28px, 3.4vw, 40px); }
.separador { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 0; color: transparent; height: 8px;
  background: radial-gradient(circle, var(--oro) 3px, transparent 3.5px) center / 8px 8px no-repeat; }
.separador::before, .separador::after { content: ""; width: 130px; height: 1px; background: linear-gradient(90deg, transparent, var(--oro-claro), transparent); opacity: .5; }
.item-titulo { font: 400 22px/1.15 var(--titulo); letter-spacing: .1em; text-transform: uppercase; color: var(--oro); margin-bottom: 10px; }
.texto { color: var(--texto2); font-size: 16px; line-height: 1.7; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 34px;
  background: var(--oro); color: #17120C; font: 700 13px var(--cuerpo); letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; box-shadow: 0 6px 24px rgba(201,166,96,.18); }
.boton:hover { background: var(--oro-claro); }
.boton.borde, .boton.linea { background: transparent; color: var(--hueso); box-shadow: inset 0 0 0 1px #4a4037; }
.boton.borde:hover, .boton.linea:hover { box-shadow: inset 0 0 0 1px var(--oro); color: var(--oro); }
.boton.chico { min-height: 40px; padding: 0 18px; font-size: 11px; letter-spacing: .22em; }

/* ---------- Cinta de palabras + cabecera fija ---------- */
.fija { position: sticky; top: 0; z-index: 40; }
.cinta { overflow: hidden; height: 34px; display: flex; align-items: center;
  /* mismo vidrio ahumado que la cabecera, y las palabras se desvanecen en los bordes */
  background: linear-gradient(180deg, rgba(10,9,8,.86), rgba(16,13,10,.82));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.cinta-pista { display: flex; width: max-content; animation: cinta 60s linear infinite; }
.cinta span { font: 400 15px var(--titulo); letter-spacing: .14em; text-transform: uppercase; color: var(--oro); white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 44px; }
.cinta span::after { content: "◆"; font-size: 7px; color: var(--oro); }
@keyframes cinta { to { transform: translateX(-50%); } }
.cabecera { position: relative; height: 64px; display: flex; align-items: center;
  /* Vidrio ahumado: deja ver la página detrás, oscuro arriba y más transparente abajo */
  background: linear-gradient(180deg, rgba(16,13,10,.82) 0%, rgba(16,13,10,.62) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.55); }
/* Filete dorado: se desvanece en los extremos y lleva un rombo al centro (firma BarberTop) */
.cabecera::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; transition: opacity .25s;
  background: linear-gradient(90deg, transparent 0%, rgba(201,166,96,.25) 12%, #C9A660 38%, transparent 47%, transparent 53%, #C9A660 62%, rgba(201,166,96,.25) 88%, transparent 100%); }
.cabecera::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); pointer-events: none; transition: opacity .25s;
  background: #0D0C0B; border: 1px solid #C9A660; box-shadow: 0 0 0 3px #0D0C0B, 0 0 12px rgba(201,166,96,.55); }
.cabecera .caja { display: flex; align-items: center; gap: 14px; width: min(1180px, 100% - 40px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo .emblema { height: 42px; width: auto; }
.logo .wordmark { height: 20px; width: auto; }
.cabecera .boton { min-height: 44px; padding: 0 26px; font-size: 12px; }
.redondo { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3b332b; background: rgba(20,17,14,.7); color: var(--hueso);
  display: grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; }
.redondo:hover, .redondo[aria-expanded="true"] { border-color: var(--oro); color: var(--oro); }
.redondo svg { width: 20px; height: 20px; }

/* ---------- Menú: las opciones con más opciones se despliegan ---------- */
.menu { position: absolute; right: max(20px, calc((100% - 1180px) / 2)); top: calc(100% + 8px); width: min(380px, calc(100% - 40px));
  background: #16120F; border: 1px solid #3b332b; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 8px 0 16px; display: none;
  max-height: calc(100svh - 120px); overflow-y: auto; }
.menu.abierto { display: block; }
.menu .rotulo-menu { display: block; padding: 14px 24px 16px; border-bottom: 1px solid var(--linea); font: 700 11px var(--cuerpo); letter-spacing: .3em; text-transform: uppercase; color: #b0915a; }
.menu a, .menu summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; text-decoration: none; cursor: pointer;
  font: 700 14px var(--cuerpo); letter-spacing: .16em; text-transform: uppercase; color: var(--texto2); list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "⌄"; color: var(--oro); font-size: 18px; line-height: 1; transform: translateY(-4px); transition: transform .2s; }
.menu details[open] > summary { color: var(--oro); }
.menu details[open] > summary::after { transform: translateY(2px) rotate(180deg); }
.menu details > a, .menu details details > summary { padding: 9px 24px 9px 40px; font-size: 13px; letter-spacing: .06em; text-transform: none; font-weight: 600; color: var(--ceniza); }
.menu details details > summary { color: var(--texto2); }
.menu details details > a { padding-left: 56px; font-weight: 500; }
.menu a:hover, .menu summary:hover { color: var(--oro); }
.menu .boton { display: flex; margin: 12px 16px 0; color: #17120C; padding: 0 20px; font-size: 13px; letter-spacing: .26em; }

/* ---------- Pie ---------- */
.pie-cuerpo { padding: 56px 0 40px; }
.firma { display: grid; justify-items: center; gap: 6px; }
.firma img { width: min(300px, 70%); height: auto; }
.firma small { font: 600 10px var(--cuerpo); letter-spacing: .32em; color: var(--texto2); text-transform: uppercase; }
.pie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid rgba(201,166,96,.18); border-bottom: 1px solid rgba(201,166,96,.18); }
.pie-col { padding: 34px clamp(14px, 3vw, 36px) 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pie-col + .pie-col { border-left: 1px solid rgba(201,166,96,.18); }
.pie h4 { font: 400 15px var(--titulo); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 20px; position: relative; padding-bottom: 14px; }
.pie h4::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 1px; background: var(--oro); transform: translateX(-50%); opacity: .8; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; color: var(--texto2); justify-items: center; }
.pie li span { display: block; margin-top: 2px; }
.pie a { text-decoration: none; transition: color .2s; }
.pie a:hover { color: var(--oro); }
.pie b { color: var(--hueso); font-weight: 700; }
.pie small { display: block; font: 600 10px var(--cuerpo); letter-spacing: .26em; color: var(--ceniza); text-transform: uppercase; margin-bottom: 2px; }
.redes { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.redes a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--oro-claro); border: 1px solid rgba(201,166,96,.4);
  background: rgba(13,12,11,.6); transition: color .2s, background .2s, box-shadow .2s, transform .2s; }
.redes a svg { width: 18px; height: 18px; }
.redes a:hover { color: #17120C; background: var(--oro); box-shadow: 0 0 16px rgba(201,166,96,.5); transform: translateY(-2px); }
.copy { text-align: center; color: var(--ceniza); font-size: 12px; letter-spacing: .04em; padding: 22px 0 110px; }
.copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barra de Instagram y botón subir ---------- */
.aviso-ig { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #070606; border-top: 1px solid #1e1a16; }
.aviso-ig .caja { display: flex; align-items: center; gap: 14px; height: 54px; width: min(1180px, 100% - 40px); font-size: 14px; }
.aviso-ig a { text-decoration: none; display: flex; align-items: center; gap: 14px; }
.aviso-ig img { width: 30px; height: 30px; border-radius: 7px; }
.aviso-ig .usuario { color: var(--oro); }
.aviso-ig button { margin-left: auto; width: 32px; height: 32px; background: none; border: 1px solid #3b332b; color: var(--hueso); border-radius: 4px; cursor: pointer; }
/* Botón subir: un eslabón dorado colgando de una cadena (sigue la temática del sitio) */
.subir { position: fixed; right: 28px; bottom: 74px; z-index: 34; width: 52px; height: 52px; border-radius: 50%; color: #D9BC80;
  background: radial-gradient(circle at 35% 30%, #2a221a, #0d0b0a 70%); border: 2px solid #C9A660;
  box-shadow: 0 0 0 4px rgba(13,12,11,.8), 0 0 18px rgba(201,166,96,.35);
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transform-origin: 50% -46px;
  transition: opacity .25s, box-shadow .25s, color .25s; }
.subir::before { content: ""; position: absolute; bottom: calc(100% + 2px); left: 50%; width: 12px; height: 46px; transform: translateX(-50%); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='22' viewBox='0 0 12 22'%3E%3Crect x='2.5' y='1.5' width='7' height='13' rx='3.5' fill='none' stroke='%23C9A660' stroke-width='1.8'/%3E%3Cline x1='6' y1='14.5' x2='6' y2='22' stroke='%23C9A660' stroke-width='1.8'/%3E%3C/svg%3E") center bottom / 12px 22px repeat-y;
  -webkit-mask: linear-gradient(to top, #000 55%, transparent); mask: linear-gradient(to top, #000 55%, transparent); }
.subir:hover { color: #17120C; background: radial-gradient(circle at 35% 30%, #F0D9A0, #C9A660 70%); box-shadow: 0 0 0 4px rgba(13,12,11,.8), 0 0 28px rgba(201,166,96,.7); animation: colgando 1.2s ease-in-out; }
@keyframes colgando { 0% { transform: rotate(0); } 25% { transform: rotate(7deg); } 55% { transform: rotate(-5deg); } 80% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
.subir svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .subir:hover { animation: none; } }
.con-scroll .subir { opacity: 1; pointer-events: auto; }
body.sin-aviso .subir { bottom: 24px; }

/* Espacio para una foto que falta */
.falta-foto { background: #110e0c url('imagenes/sitio/textura.webp') center / 300px auto; border: 1px dashed #3b332b; border-radius: 10px; display: grid; place-items: center; color: var(--ceniza); font-size: 14px; text-align: center; padding: 16px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
  .logo .wordmark { display: none; }
  .logo .emblema { height: 40px; }
  .cabecera .boton { display: none; }
  .titulo { letter-spacing: .1em; }
  .titulo.tijeras::before, .titulo.tijeras::after { width: 18px; }
  .pie { grid-template-columns: 1fr; }
  .pie-col { padding: 26px 10px; }
  .pie-col + .pie-col { border-left: 0; border-top: 1px solid rgba(201,166,96,.18); }
  .subir { right: 16px; width: 46px; height: 46px; }
  .aviso-ig .largo { display: none; }
  h1, h2, h3 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinta-pista { animation: none; }
}

/* Portada: el botón de la cabecera espera a que el del centro salga de la vista (su espacio se mantiene) */
.cabecera .boton { transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.cabecera .boton.cab-espera { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; }
