/* ============================================
   ANGEL TATTOOS — STYLES
   ============================================ */

:root {
  --black: #0a0a0a;
  --black-soft: #121212;
  --black-card: #1a1717;
  --black-card-hot: #221515;
  --red: #8a0f14;
  --red-bright: #c81f2b;
  --red-glow: #e2313d;
  --silver: #b8b8b8;
  --silver-light: #e6e6e6;
  --white: #f5f5f2;
  --border: rgba(230, 230, 230, 0.12);

  --font-display: 'Pirata One', 'UnifrakturMaguntia', cursive;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --radius: 10px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-fast: 200ms;
  --dur: 260ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--red) var(--black);
  scrollbar-width: thin;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red-bright);
}

::selection { background: var(--red-bright); color: #fff; -webkit-text-fill-color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border: 2px solid var(--black); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-bright); }

:focus-visible { outline: 2px solid var(--red-glow); outline-offset: 3px; }

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.5px; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ===== METALLIC TEXT (cromado del logo) ===== */
.metal-text,
.hero__word--metal,
.brand__name,
.section-title,
.footer .brand__name {
  background: linear-gradient(180deg, var(--silver-light) 0%, var(--silver) 45%, #8f8f8f 55%, var(--silver-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--silver-light);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition:
    transform var(--dur-press) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(200, 31, 43, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200, 31, 43, 0.5); }
  .btn--primary:hover:active { transform: translateY(0) scale(0.97); }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  padding-block: 0.6rem;
  transition:
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    padding var(--dur) var(--ease-out);
}
.header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--border);
  padding-block: 0.35rem;
}

/* Línea de progreso: la tinta que avanza con el scroll */
.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-glow));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red-bright);
  transition: rotate var(--dur) var(--ease-out), scale var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__logo { rotate: -8deg; scale: 1.05; }
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.brand__name--accent { color: var(--red-bright); -webkit-text-fill-color: var(--red-bright); margin-left: 0.15rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  gap: 1.8rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-block: 0.3rem;
  color: var(--silver-light);
  transition: color var(--dur-fast) ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link.is-current { color: var(--white); }
.nav__link.is-current::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--white); }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--silver-light);
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-press) var(--ease-out);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
    color: #fff;
    transform: translateY(-3px);
  }
}

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* ===== SELECTOR DE IDIOMA (EN / ES) ===== */
.lang {
  position: relative;
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: rgba(10, 10, 10, 0.5);
}
/* La píldora roja se desliza hasta el idioma activo */
.lang::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 99px;
  background: var(--red-bright);
  transition: transform var(--dur) var(--ease-out);
}
.lang[data-active="es"]::before { transform: translateX(100%); }
.lang__btn {
  position: relative;
  z-index: 1;
  min-width: 40px;
  min-height: 34px;
  padding: 0 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--silver);
  transition: color var(--dur-fast) ease, transform var(--dur-press) var(--ease-out);
}
.lang__btn[aria-pressed="true"] { color: #fff; }
.lang__btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .lang__btn[aria-pressed="false"]:hover { color: var(--white); }
}
@media (max-width: 899px) {
  .header__actions { gap: 0.75rem; }
}
.header__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.7rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--red-glow), var(--red) 55%, var(--red-bright));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 6px 18px rgba(200, 31, 43, 0.4);
}
/* Brillo de cromo: pasa de vez en cuando, no todo el rato */
.header__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: ctaShine 6s var(--ease-in-out) 2.5s infinite;
}
@media (hover: hover) and (pointer: fine) {
  .header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 28px rgba(200, 31, 43, 0.65);
  }
  .header__cta:hover:active { transform: translateY(0) scale(0.97); }
}

@keyframes ctaShine {
  0% { transform: translateX(-150%) skewX(-20deg); }
  18%, 100% { transform: translateX(320%) skewX(-20deg); }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  z-index: 1200;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--silver-light);
  border-radius: 2px;
  transition:
    transform var(--dur) var(--ease-out),
    opacity var(--dur-fast) ease,
    background-color var(--dur-fast) ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--red-bright); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--red-bright); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 6rem;
}

.hero__bg {
  position: absolute;
  inset: -4% 0;
  scale: 1.05;
  background: var(--black) url('../assets/hero-ink-poster.jpg') center / cover no-repeat;
  animation: heroBg 1200ms var(--ease-out) both;
}

/* El video aparece sobre su propio fotograma cuando ya está reproduciendo */
.hero__video.is-playing { opacity: 1; }

/* Pantalla vertical: versión vertical del video y su fotograma */
@media (max-aspect-ratio: 4/5) {
  .hero__bg { background-image: url('../assets/hero-ink-poster-mobile.jpg'); }
}

/* Video de tinta en bucle: el centro se oscurece para que el título se lea */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
  filter: saturate(1.1) contrast(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at center, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.12) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 70%, rgba(10,10,10,1) 100%);
}

/* Grano de serigrafía: textura de cartel callejero */
.hero__grain {
  position: absolute;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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");
  animation: grain 900ms steps(5) infinite;
}
.hero.is-paused .hero__grain,
.hero.is-paused .scroll-down span { animation-play-state: paused; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 780px;
}

.hero__logo {
  width: clamp(90px, 18vw, 150px);
  height: clamp(90px, 18vw, 150px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red-bright);
  box-shadow: 0 0 40px rgba(200, 31, 43, 0.45);
  margin-bottom: 0.5rem;
  animation: stamp 760ms var(--ease-out) 150ms both;
}

.hero__title {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  text-shadow: 0 0 30px rgba(0,0,0,0.6);
}
/* Textos pequeños legibles sobre el video */
.hero__subtitle,
.hero__text { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }

/* Sombra oscura detrás del rojo para que no se funda con el fondo */
.hero__word--red { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9); }

/* Cada palabra se "tatúa": se revela de izquierda a derecha detrás de una aguja roja */
.hero__word {
  position: relative;
  display: inline-block;
  padding-inline: 0.04em;
  animation: inkWipe 750ms var(--ease-in-out) 250ms both;
}
.hero__word--red {
  color: var(--red-bright);
  -webkit-text-fill-color: var(--red-bright);
  animation-delay: 500ms;
}
.hero__word::after {
  content: '';
  position: absolute;
  inset: 8% 0;
  background: linear-gradient(90deg, transparent calc(100% - 3px), #ff6b73 calc(100% - 3px));
  filter: drop-shadow(0 0 6px rgba(226, 49, 61, 0.9));
  transform: translateX(-100%);
  animation:
    needleMove 750ms var(--ease-in-out) 250ms both,
    needleFade 240ms ease-out 1000ms both;
}
.hero__word--red::after {
  animation-delay: 500ms, 1250ms;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--silver-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 300;
  animation: riseIn 700ms var(--ease-out) 650ms both;
}

.hero__text {
  max-width: 560px;
  color: #cfcfcf;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin-top: 0.3rem;
  animation: riseIn 700ms var(--ease-out) 720ms both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  animation: riseIn 700ms var(--ease-out) 790ms both;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid var(--silver);
  border-radius: 20px;
  animation: fadeIn 600ms ease 1200ms both;
}
.scroll-down span {
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: -2.5px;
  width: 5px;
  height: 5px;
  background: var(--red-bright);
  border-radius: 50%;
  animation: scrollDown 1.8s var(--ease-out) infinite;
}

@keyframes heroBg {
  from { opacity: 0; scale: 1.18; }
  to { opacity: 1; scale: 1.05; }
}
@keyframes stamp {
  0% { opacity: 0; scale: 1.35; rotate: -10deg; filter: blur(8px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; scale: 1; rotate: 0deg; filter: blur(0); }
}
@keyframes inkWipe {
  from { clip-path: inset(-25% 100% -25% 0); filter: blur(3px); }
  to { clip-path: inset(-25% -8% -25% -8%); filter: blur(0); }
}
@keyframes needleMove {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes needleFade {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes riseIn {
  from { opacity: 0; translate: 0 14px; filter: blur(4px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); }
  80% { transform: translate(7%, -2%); }
  100% { transform: translate(0, 0); }
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(18px); opacity: 0; }
  100% { transform: translateY(18px); opacity: 0; }
}

/* ===== TICKER: cintas cruzadas tipo calle ===== */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.2rem, 5vw, 3.5rem);
  background: var(--black);
}
.ticker__band {
  position: relative;
  width: 120%;
  margin-left: -10%;
  overflow: hidden;
  white-space: nowrap;
}
.ticker__band--front {
  z-index: 2;
  background: var(--red-bright);
  color: var(--black);
  rotate: -2.5deg;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  border-block: 2px solid var(--black);
}
.ticker__band--back {
  position: absolute;
  top: 50%;
  left: 0;
  translate: 0 -50%;
  z-index: 1;
  background: var(--black-card);
  border-block: 1px solid var(--border);
  rotate: 2deg;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}
.ticker__track.is-running { animation: marquee var(--ticker-dur, 40s) linear infinite; }
.ticker__band--back .ticker__track.is-running { animation-direction: reverse; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }

.ticker__item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1;
  padding: 0.55rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticker__band--back .ticker__item {
  color: transparent;
  -webkit-text-stroke: 1px var(--silver);
  opacity: 0.7;
}
/* Estrella de cuatro puntas, como los destellos del logo */
.ticker__sep {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.ticker__band--back .ticker__sep { color: var(--red-bright); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTION SHARED ===== */
section { padding-block: clamp(4rem, 8vw, 7rem); }

.eyebrow {
  display: inline-block;
  color: var(--red-bright);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head--left { text-align: left; margin: 0; max-width: 480px; }

.section-desc { color: var(--silver); font-size: 1rem; }

/* ===== REVEALS (solo si hay JS; sin JS todo se ve) ===== */
/* El recorte va en la imagen, nunca en el elemento observado:
   IntersectionObserver ignora elementos totalmente recortados */
.js [data-reveal="rise"]:not(.is-in) { opacity: 0; }
.js img[data-reveal="clip"]:not(.is-in),
.js [data-reveal="clip"]:not(.is-in) > img { clip-path: inset(100% 0 0 0); }
.js img[data-reveal="clip-x"]:not(.is-in) { clip-path: inset(0 0 0 100%); }

[data-reveal="rise"].is-in { animation: riseIn 700ms var(--ease-out) var(--d, 0ms) backwards; }
img[data-reveal="clip"].is-in { animation: clipUp 1000ms var(--ease-out-expo) var(--d, 0ms) backwards; }
img[data-reveal="clip-x"].is-in { animation: clipLeft 1000ms var(--ease-out-expo) var(--d, 0ms) backwards; }
[data-reveal="clip"].is-in > img {
  animation:
    clipUp 1000ms var(--ease-out-expo) var(--d, 0ms) backwards,
    imgSettle 1400ms var(--ease-out-expo) var(--d, 0ms) backwards;
}

@keyframes clipUp {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes clipLeft {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes imgSettle {
  from { scale: 1.3; }
  to { scale: 1; }
}

/* ===== ABOUT ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.about__img {
  height: auto; /* sin esto, el atributo height="1024" del HTML estira la foto */
  border-radius: var(--radius);
  border: 3px solid var(--black-card);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  object-fit: cover;
}
.about__img--1 {
  width: 70%;
  aspect-ratio: 4/5;
  position: relative;
  z-index: 1;
}
.about__img--2 {
  width: 50%;
  aspect-ratio: 1/1;
  position: absolute;
  right: 0;
  bottom: -1.5rem;
  z-index: 2;
  border-color: var(--red);
}

.about__content p { color: #cbcbcb; margin-bottom: 1rem; max-width: 65ch; }

.about__stats {
  display: flex;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red-bright);
  -webkit-text-fill-color: var(--red-bright);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SERVICES: hoja de flash ===== */
.services { background: var(--black-soft); }

/* La lámina: marcas de corte de imprenta en las esquinas y grano de papel */
.flash-sheet {
  position: relative;
  border: 1px solid var(--border);
  background: var(--black);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.flash-sheet::before {
  content: '';
  position: absolute;
  inset: -12px;
  pointer-events: none;
  --m: var(--red-bright);
  background:
    linear-gradient(var(--m), var(--m)) top left / 22px 2px no-repeat,
    linear-gradient(var(--m), var(--m)) top left / 2px 22px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 22px 2px no-repeat,
    linear-gradient(var(--m), var(--m)) top right / 2px 22px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / 2px 22px no-repeat;
}
.flash-sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%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");
}

/* Sello del estudio, como en las láminas firmadas */
.flash-sheet__stamp {
  position: absolute;
  top: -34px;
  right: clamp(-10px, 2vw, 28px);
  z-index: 3;
  width: clamp(72px, 9vw, 104px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red-bright);
  rotate: 12deg;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 5px var(--black-soft);
}
@media (max-width: 639px) {
  /* En móvil el sello sube para no tapar el primer título */
  .flash-sheet { margin-top: 1.5rem; }
  .flash-sheet__stamp { top: -46px; right: 6px; width: 64px; }
}
.js .flash-sheet__stamp[data-reveal]:not(.is-in) { opacity: 0; }
.flash-sheet__stamp.is-in { animation: sheetStamp 700ms var(--ease-out) var(--d, 0ms) backwards; }

/* Celdas separadas por líneas de recorte, no tarjetas */
.flash-sheet__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
.flash {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem);
  margin: 0 -1px -1px 0;
  border-right: 1px dashed rgba(230, 230, 230, 0.16);
  border-bottom: 1px dashed rgba(230, 230, 230, 0.16);
  transition: background-color var(--dur) ease;
}

.flash__art {
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--red-glow);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flash__art * {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.flash__art .fill { fill: currentColor; }

.flash__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.05;
  color: var(--silver-light);
  transition: color var(--dur) ease;
}
.flash__text {
  margin-top: 0.4rem;
  color: var(--silver);
  font-size: 0.9rem;
  max-width: 34ch;
}

/* La aguja dibuja cada diseño al aparecer… */
.js .flash[data-reveal="draw"]:not(.is-in) .flash__art * { stroke-dashoffset: 1; }
.js .flash[data-reveal="draw"]:not(.is-in) .flash__art .fill { fill-opacity: 0; }
.flash.is-in .flash__art * {
  animation: needleDraw 1300ms var(--ease-in-out) var(--d, 0ms) backwards;
}
.flash.is-in .flash__art .fill {
  animation:
    needleDraw 1300ms var(--ease-in-out) var(--d, 0ms) backwards,
    inkFill 500ms ease-out calc(var(--d, 0ms) + 1000ms) backwards;
}
.flash.is-drawn .flash__art * { animation: none; }

/* …y lo vuelve a trazar al pasar el cursor */
@media (hover: hover) and (pointer: fine) {
  .flash:hover { background-color: var(--black-card-hot); }
  .flash:hover .flash__name { color: var(--red-glow); }
  .flash.is-drawn:hover .flash__art * { animation: needleRedraw 900ms var(--ease-in-out); }
  .flash.is-drawn:hover .flash__art .fill {
    animation:
      needleRedraw 900ms var(--ease-in-out),
      inkFill 400ms ease-out 650ms backwards;
  }
}

@keyframes needleDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes needleRedraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes inkFill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes sheetStamp {
  0% { opacity: 0; transform: scale(1.5) rotate(-14deg); filter: blur(6px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

@media (min-width: 640px) {
  .flash-sheet__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "b c" "d e" "f f";
  }
  .flash {
    grid-template-columns: 1fr;
    align-items: start;
    align-content: start;
    gap: 1.4rem;
    padding: clamp(1.8rem, 3.5vw, 2.6rem);
  }
  .flash__art { width: 76px; }
  .flash--a { grid-area: a; }
  .flash--b { grid-area: b; }
  .flash--c { grid-area: c; }
  .flash--d { grid-area: d; }
  .flash--e { grid-area: e; }
  .flash--f { grid-area: f; }

  /* La pieza principal, más grande, como el diseño central de la lámina */
  .flash--a { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .flash--a .flash__art { width: 120px; }
  .flash--a .flash__name { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

  /* Cuidado post-tatuaje: franja al pie de la lámina */
  .flash--f { grid-template-columns: auto 1fr; align-items: center; gap: 1.6rem; }
  .flash--f .flash__art { width: 56px; }
}

@media (min-width: 1000px) {
  .flash-sheet__grid {
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-areas: "a b c" "a d e" "f f f";
  }
  .flash--a {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
  }
  .flash--a .flash__art { width: 150px; }
  .flash--a .flash__text { font-size: 1rem; }
}

/* ===== GALLERY ===== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--black-card);
  transition: transform var(--dur-press) var(--ease-out), opacity 120ms ease;
}
.gallery__item:active { transform: scale(0.98); }
.gallery__item.is-source { opacity: 0; transition: none; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  /* Fotos de móvil unificadas en tono de estudio; a todo color al pasar el cursor */
  .gallery__item img {
    filter: grayscale(0.55) contrast(1.08) brightness(0.82);
    transition: filter 320ms ease, scale 600ms var(--ease-out);
  }
  .gallery__item:hover img,
  .gallery__item:focus-visible img { filter: none; scale: 1.06; }
  .has-cursor .gallery__item { cursor: none; }
}

/* Cursor "Ver" que sigue al puntero en la galería */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1500;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-bright);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(200, 31, 43, 0.45);
  pointer-events: none;
  opacity: 0;
  scale: 0.4;
  transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur) var(--ease-out);
}
.cursor.is-active { opacity: 1; scale: 1; }
.cursor.is-pressed { scale: 0.88; }

/* ===== CONTACT ===== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.8rem;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) ease;
}
.contact-card svg {
  width: 28px;
  height: 28px;
  color: var(--red-bright);
  transition: rotate var(--dur) var(--ease-out), scale var(--dur) var(--ease-out);
}
.contact-card--whatsapp svg { color: #1fae4a; }
.contact-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover { transform: translateY(-5px); border-color: var(--red-bright); }
  .contact-card:hover svg { rotate: -10deg; scale: 1.12; }
  .contact-card:hover:active { transform: translateY(-2px) scale(0.98); }
}
.contact-card__title { font-weight: 600; font-size: 1.05rem; color: var(--white); }
.contact-card__text { color: var(--silver); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.footer__socials { display: flex; gap: 0.8rem; }
.footer__copy { color: var(--silver); font-size: 0.82rem; }

/* Acceso al panel: discreto, para el equipo del estudio */
.footer__admin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding-inline: 0.6rem;
  color: #8a8a8a;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  transition: color var(--dur-fast) ease;
}
.footer__admin svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .footer__admin:hover { color: var(--red-glow); }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1fae4a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(31, 174, 74, 0.45);
  z-index: 900;
  transition: transform var(--dur-press) var(--ease-out);
  animation: riseIn 600ms var(--ease-out) 1300ms both;
}
/* Onda que llama la atención cada pocos segundos (solo transform/opacity) */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1fae4a;
  opacity: 0;
  animation: ring 4s var(--ease-out) 3s infinite;
}
.whatsapp-float svg { width: 32px; height: 32px; color: #fff; }
.whatsapp-float:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover { transform: scale(1.08); }
  .whatsapp-float:hover:active { transform: scale(0.98); }
}

@keyframes ring {
  0% { opacity: 0.7; transform: scale(1); }
  35%, 100% { opacity: 0; transform: scale(1.7); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  pointer-events: none;
}
.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.96);
  opacity: 0;
  transition: opacity 220ms ease;
}
.lightbox.is-shown::before { opacity: 1; transition-duration: 300ms; }

.lightbox__figure {
  position: relative;
  z-index: 1;
  touch-action: pan-y;
}
.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(90vw, 900px);
  max-height: 82vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close,
.lightbox__nav,
.lightbox__counter {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transition:
    opacity var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    rotate var(--dur) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}
.lightbox.is-shown .lightbox__close,
.lightbox.is-shown .lightbox__nav,
.lightbox.is-shown .lightbox__counter { opacity: 1; transition-delay: 0ms, 0ms, 0ms, 0ms, 0ms, 0ms; }

.lightbox__close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--silver-light);
}
.lightbox__close svg,
.lightbox__nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox__close:active { transform: scale(0.92); }

.lightbox__nav {
  top: 50%;
  margin-top: -24px;
  color: var(--silver-light);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.5);
}
.lightbox__nav:active { transform: scale(0.92); }
.lightbox__prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox__next { right: clamp(0.5rem, 3vw, 2rem); }

@media (hover: hover) and (pointer: fine) {
  .lightbox__close:hover { color: var(--red-bright); rotate: 90deg; }
  .lightbox__nav:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
}

.lightbox__counter {
  bottom: clamp(1rem, 3vw, 1.8rem);
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--silver);
  font-variant-numeric: tabular-nums;
}
.lightbox__counter b { color: var(--red-bright); font-weight: 400; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .about__inner { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .about__inner { grid-template-columns: 1fr 1.1fr; }
  .contact__inner { grid-template-columns: 1fr 1.3fr; }
}

/* Desktop nav appears; hamburger hides */
@media (min-width: 900px) {
  .nav {
    position: static;
    flex-direction: row;
    background: none;
    width: auto;
    height: auto;
    padding: 0;
  }
}

@media (max-width: 899px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 80vw);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-out);
    z-index: 1100;
  }
  .nav.active {
    transform: translateX(0);
    transition: transform 480ms var(--ease-drawer);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  .nav__list li {
    opacity: 0;
    translate: 24px 0;
    transition: opacity 160ms ease, translate 160ms ease;
  }
  .nav.active .nav__list li {
    opacity: 1;
    translate: 0 0;
    transition: opacity 400ms var(--ease-out), translate 500ms var(--ease-out);
  }
  .nav.active .nav__list li:nth-child(1) { transition-delay: 120ms; }
  .nav.active .nav__list li:nth-child(2) { transition-delay: 170ms; }
  .nav.active .nav__list li:nth-child(3) { transition-delay: 220ms; }
  .nav.active .nav__list li:nth-child(4) { transition-delay: 270ms; }
  .nav.active .nav__list li:nth-child(5) { transition-delay: 320ms; }

  .nav__link {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .header__cta { display: none; }
}

@media (min-width: 900px) {
  .header__cta { display: inline-flex; }
}

/* Large desktop */
@media (min-width: 1100px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Small phones */
@media (max-width: 420px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .about__stats { gap: 1rem; }
}

/* Movimiento reducido: menos desplazamiento, se conservan los fundidos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__bg,
  .hero__logo,
  .hero__word,
  .hero__subtitle,
  .hero__text,
  .hero__actions,
  .whatsapp-float { animation: fadeIn 400ms ease both; }
  .hero__word::after { display: none; }

  .hero__grain,
  .scroll-down span,
  .header__cta::before,
  .whatsapp-float::before,
  .ticker__track.is-running { animation: none; }

  [data-reveal].is-in,
  [data-reveal].is-in > img { animation: fadeIn 400ms ease backwards; }
  .js img[data-reveal]:not(.is-in),
  .js [data-reveal]:not(.is-in) > img { clip-path: none; }

  .nav__list li,
  .nav.active .nav__list li { translate: none; }

  .flash.is-in .flash__art *,
  .flash.is-drawn:hover .flash__art * { animation: none; }
  .js .flash[data-reveal="draw"]:not(.is-in) .flash__art * { stroke-dashoffset: 0; }
  .js .flash[data-reveal="draw"]:not(.is-in) .flash__art .fill { fill-opacity: 1; }
}
