/* Barbería La Línea · identidad: poste de barbero (azul garita, rojo poste, hueso), Anton + DM Sans + Permanent Marker. */
:root {
  --hueso: #f3efe6;
  --papel: #fbf8f2;
  --tinta: #141414;
  --rojo: #d62f26;
  --rojo-hondo: #a8221b;
  --azul: #1b2f73;
  --azul-hondo: #101a40;
  --font-marker: 'Permanent Marker';
  --radius: 4px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* grano de película encima de todo */
body::after { content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; background-image: var(--grain); opacity: .07; mix-blend-mode: multiply; }

.aviso { background: var(--tinta); color: var(--hueso); }
.marker { font-family: var(--font-marker), cursive; }
.outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.outline { -webkit-text-stroke-color: var(--stroke, var(--text)); }
h1, h2, h3 { font-family: var(--font-display), Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }

/* encabezado */
.site-head { background: color-mix(in srgb, var(--hueso) 92%, transparent); border-bottom: 1.5px solid var(--tinta); }
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-family: var(--font-display), Impact, sans-serif; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.logo small { display: block; font-family: var(--font-marker), cursive; font-size: .75rem; text-transform: none; color: var(--rojo-hondo); margin-top: 2px; }
.logo-pole { width: 12px; height: 34px; border-radius: 6px; border: 1.5px solid var(--tinta); background: repeating-linear-gradient(150deg, var(--rojo) 0 5px, var(--papel) 5px 9px, var(--azul) 9px 14px, var(--papel) 14px 18px); }
.nav a { color: var(--tinta); font-weight: 600; text-transform: uppercase; font-size: .8125rem; letter-spacing: .12em; }
.btn { border-radius: var(--radius); text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; }
.btn-sm { min-height: 44px; padding: 0 16px; }
.btn-main { background: var(--rojo); color: #fff; box-shadow: 3px 3px 0 var(--tinta); }
.btn-main:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.btn-ghost { color: var(--hueso); border: 1.5px solid color-mix(in srgb, var(--hueso) 55%, transparent); background: transparent; }
.btn-paper { background: var(--papel); color: var(--tinta); box-shadow: 3px 3px 0 var(--tinta); }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { filter: none; background: var(--rojo-hondo); }
  .btn-ghost:hover { border-color: var(--hueso); }
  .nav a:hover { color: var(--rojo); }
}

/* encabezados de sección */
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 46rem; }
.tag { justify-self: start; background: var(--rojo); color: #fff; font-family: var(--font-display), Impact, sans-serif; font-size: .875rem; padding: 3px 8px; letter-spacing: .06em; }
h2 { font-size: clamp(2.6rem, 11vw, 5rem); line-height: .95; }

/* ===== Portada ===== */
.hero { background: var(--azul-hondo); color: var(--hueso); padding: 48px 0 64px; overflow: hidden; --stroke: var(--hueso); position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 85% 10%, color-mix(in srgb, var(--azul) 80%, transparent), transparent 60%); }
.hero-grid { display: grid; gap: 40px; }
.hero .kicker { color: var(--hueso); letter-spacing: .16em; }
.hero .kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); }
.hero h1 { font-size: clamp(3.6rem, 18vw, 8.6rem); line-height: 1; letter-spacing: 0; text-transform: uppercase; font-weight: 400; margin-top: 14px; }
.hero .outline { -webkit-text-stroke-width: 2px; }
.hero h1 .line { padding-top: .14em; margin-top: -.14em; }
.hero .lead { color: color-mix(in srgb, var(--hueso) 82%, transparent); margin-top: 18px; }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art { position: relative; height: 360px; max-width: 460px; width: 100%; justify-self: center; }
.pole { position: absolute; left: 4%; top: 6px; bottom: 6px; width: 58px; display: flex; flex-direction: column; align-items: center; }
.pole-cap { width: 72px; height: 22px; border-radius: 12px 12px 4px 4px; background: linear-gradient(90deg, #8d8a84, #e9e5dc 40%, #8d8a84); flex: none; }
.pole-cap:last-child { border-radius: 4px 4px 12px 12px; }
.pole-glass { position: relative; flex: 1; width: 100%; overflow: hidden; border-radius: 4px; box-shadow: inset 8px 0 14px rgba(0,0,0,.35), inset -6px 0 10px rgba(255,255,255,.18); background: var(--papel); }
.pole-stripes { position: absolute; left: 0; right: 0; top: 0; height: 200%; background: repeating-linear-gradient(-28deg, var(--rojo) 0 16px, var(--papel) 16px 30px, var(--azul) 30px 46px, var(--papel) 46px 60px); will-change: transform; }
.js .pole-stripes { animation: pole 6s linear infinite; }
@keyframes pole { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.pole-glass::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%, rgba(0,0,0,.25)); }

.polaroid { background: var(--papel); color: var(--tinta); padding: 10px 10px 0; box-shadow: 0 14px 30px rgba(0,0,0,.28); list-style: none; }
.polaroid figcaption, .polaroid p { font-family: var(--font-marker), cursive; font-size: 1rem; padding: 8px 2px 10px; }
.ph { aspect-ratio: 4 / 5; display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px;
  background: repeating-linear-gradient(-45deg, #e4dfd4 0 12px, #ece8de 12px 24px); border: 1.5px dashed #a29d92; color: #55524c; }
.ph span { font-family: var(--font-display), Impact, sans-serif; text-transform: uppercase; font-size: 1.25rem; color: var(--tinta); }
.ph span::before { content: ''; display: block; width: 30px; height: 24px; margin: 0 auto 10px; border: 2px solid currentColor; border-radius: 4px;
  background: radial-gradient(circle at 50% 55%, transparent 5px, currentColor 5px 7px, transparent 7px); }
.ph small { font-size: .8125rem; }
.hero-photo { position: absolute; right: 2%; top: 10px; width: 64%; transform: rotate(3deg); }

.sticker { position: absolute; z-index: 2; font-family: var(--font-display), Impact, sans-serif; text-transform: uppercase; font-size: .9375rem; letter-spacing: .04em; padding: 6px 12px; box-shadow: 2px 3px 0 rgba(0,0,0,.35); }
.sticker { transform: rotate(var(--r, 0deg)); }
.sticker-red { --r: -8deg; background: var(--rojo); color: #fff; left: 2%; bottom: 10%; }
.sticker-paper { background: var(--papel); color: var(--tinta); right: 0; bottom: 6%; --r: -4deg; }

/* ===== Franja de poste ===== */
.stripe-band { position: relative; overflow: hidden; padding: 14px 0; border-block: 1.5px solid var(--tinta);
  background: repeating-linear-gradient(-45deg, var(--rojo) 0 14px, var(--papel) 14px 26px, var(--azul) 26px 40px, var(--papel) 40px 52px); }
.stripe-track { display: flex; gap: 14px; width: max-content; }
.js .stripe-track { animation: f-slide 32s linear infinite; }
.stripe-track span { background: var(--tinta); color: var(--hueso); font-family: var(--font-display), Impact, sans-serif; text-transform: uppercase; font-size: 1.375rem; padding: 4px 16px; white-space: nowrap; }

/* ===== Estilos ===== */
.style-list { list-style: none; padding: 0; border-top: 1.5px solid var(--tinta); }
.style-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 20px 0; border-bottom: 1.5px solid var(--tinta); }
.style-name { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.style-num { font-family: var(--font-display), Impact, sans-serif; color: var(--rojo); font-size: 1rem; }
.style-row h3 { font-size: clamp(1.9rem, 8vw, 3.4rem); line-height: 1; }
.style-row p { grid-column: 1; color: var(--muted); }
.style-price { font-family: var(--font-display), Impact, sans-serif; font-weight: 400; font-size: 1.75rem; grid-row: 1; grid-column: 2; }
.style-go { grid-column: 2; grid-row: 2; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--tinta);
  font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; text-decoration: none; background: var(--papel); color: var(--tinta); border-radius: var(--radius); }

/* ===== Turnera (contenedor; el detalle va en turnera.css) ===== */
.turnera { background: var(--azul-hondo); color: var(--hueso); --stroke: var(--hueso); }
.turnera .lead { color: color-mix(in srgb, var(--hueso) 80%, transparent); }

/* ===== Galería ===== */
.wall { list-style: none; padding: 8px 20px 24px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wall::-webkit-scrollbar { display: none; }
.wall .polaroid { scroll-snap-align: center; position: relative; }
.wall .polaroid:nth-child(odd) { rotate: -2deg; }
.wall .polaroid:nth-child(even) { rotate: 2.5deg; margin-top: 18px; }
.wall .polaroid::before { content: ''; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--rojo) 78%, transparent); }

/* ===== Visítanos ===== */
.board { display: grid; gap: 14px; }
.board-card { background: var(--papel); border: 1.5px solid var(--tinta); padding: 24px; box-shadow: 5px 5px 0 var(--tinta); display: grid; gap: 10px; align-content: start; }
.board-card h3 { font-size: 1.75rem; }
.hours { display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #a29d92; padding-bottom: 6px; }
.hours dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.board-red { background: var(--rojo); color: #fff; }
.board-red .btn { justify-self: start; }

/* ===== Cierre ===== */
.cierre { background: var(--rojo); color: #fff; padding: 0 0 80px; overflow: hidden; }
.marquee-big { padding: 26px 0 10px; }
.marquee-big div { display: flex; gap: 40px; width: max-content; font-family: var(--font-display), Impact, sans-serif; text-transform: uppercase; font-size: clamp(3rem, 14vw, 7rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); white-space: nowrap; }
.js .marquee-big div { animation: f-slide 30s linear infinite; }
.cierre-in { text-align: center; display: grid; justify-items: center; gap: 18px; padding-top: 30px; }
.cierre .marker { font-size: 1.5rem; transform: rotate(-4deg); }
.cierre h2 { font-size: clamp(3.4rem, 15vw, 7.5rem); line-height: 1.02; }

.florece { background: var(--tinta); color: var(--hueso); padding: 40px 0; }
.florece .wrap { display: grid; gap: 18px; justify-items: start; }
.florece p { font-size: 1.125rem; max-width: 36em; }

footer { background: var(--tinta); color: color-mix(in srgb, var(--hueso) 70%, transparent); border-top: 1px solid rgba(255,255,255,.12); }
.to-top { background: var(--rojo); color: #fff; }
.note { color: var(--muted); }
.turnera .note { color: color-mix(in srgb, var(--hueso) 72%, transparent); }

@media (min-width: 820px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero-art { height: 480px; }
  .hero h1 { font-size: clamp(4.5rem, 8.4vw, 7rem); }
  .sticker-red { left: 14%; top: 34%; bottom: auto; }
  .style-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; padding: 22px 16px; transition: background-color 200ms ease, color 200ms ease; }
  .style-row p { grid-column: 2; grid-row: 1; }
  .style-price { grid-column: 3; }
  .style-go { grid-column: 4; grid-row: 1; }
  .wall { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin-inline: auto; overflow: visible; gap: 34px 28px; padding-top: 16px; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .florece .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  .style-row:hover { background: var(--rojo); color: #fff; }
  .style-row:hover p, .style-row:hover .style-num { color: #fff; }
}


/* ===== Animación (reglas de Emil: transform/opacity/clip-path, ease-out fuerte, una sola vez) ===== */
/* portada: el poste se "llena" de abajo hacia arriba, la foto cae y se acomoda, los stickers se pegan de golpe */
.js .pole { animation: ll-pole 900ms var(--ease-in-out) 200ms both; }
@keyframes ll-pole { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.js .hero-photo { animation: ll-drop 900ms var(--ease-out) 380ms both; }
@keyframes ll-drop { from { opacity: 0; transform: translateY(-28px) rotate(-7deg); } to { opacity: 1; transform: rotate(3deg); } }
.js .sticker { animation: ll-slap 320ms var(--ease-out) both; }
.js .sticker-red { animation-delay: 950ms; } .js .sticker-paper { animation-delay: 1100ms; }
@keyframes ll-slap { from { opacity: 0; transform: scale(1.5) rotate(calc(var(--r) - 10deg)); } to { opacity: 1; transform: rotate(var(--r)); } }

/* lista de estilos: el nombre se recorre y una foto flotante sigue al cursor (solo con mouse) */
.style-peek { display: none; }
@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  .style-row h3 { transition: transform 260ms var(--ease-out); }
  .style-row:hover h3 { transform: translateX(10px); }
  .style-list { position: relative; }
  .style-peek { display: block; position: absolute; left: 0; top: 0; z-index: 3; width: 190px; pointer-events: none; }
  .style-peek .polaroid { opacity: 0; transform: scale(.85) rotate(-6deg); transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
  .style-peek.is-on .polaroid { opacity: 1; transform: scale(1) rotate(-4deg); }
  .style-peek .ph span { font-size: 1rem; }

}

/* galería: cada foto cae girando un poco antes de quedar pegada */
.js .wall[data-stagger] > * { transform: translateY(-26px) rotate(-4deg); }
.js .wall[data-stagger][data-visible] > * { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .pole, .js .hero-photo, .js .sticker { animation: none; }
  .style-peek { display: none !important; }
  .js .pole-stripes, .js .stripe-track, .js .marquee-big div { animation: none; }
}
footer a { display: inline-block; padding-block: 13px; margin-block: -13px; }
