/* ============================================================
   EDWIN — portafolio de arte. Mundo visual único (oscuro),
   deliberadamente monotema: la obra se ve sobre negro.
   ============================================================ */
:root{
  color-scheme: dark;

  /* Tinta: negro cálido con sesgo marrón, no negro puro */
  --ink:      #0B0908;
  --ink-2:    #120F0E;
  --ink-3:    #1A1614;
  --ink-4:    #241E1A;

  /* Oro: el acento, gastado en un solo sitio a la vez */
  --gold:     #C9A063;
  --gold-hi:  #EFD6A4;
  --gold-lo:  #8C6F3E;
  --gold-ln:  rgba(201,160,99,.22);
  --gold-ln2: rgba(201,160,99,.10);

  /* Texto: hueso cálido */
  --bone:     #E9E2D8;
  --bone-2:   #B6ACA0;
  --bone-3:   #8A8077;

  --shadow: 0 24px 60px -24px rgba(0,0,0,.9);

  /* Greca escalonada andina — el motivo que también lleva
     tatuado la mano del logo (líneas de Nazca) */
  --greca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 40h8v-8h8v-8h8v8h8v8h16' fill='none' stroke='%23C9A063' stroke-width='1.6'/%3E%3C/svg%3E");

  --max: 1240px;
  --gut: clamp(18px, 4vw, 56px);

  --e: cubic-bezier(.22,.68,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }

/* Necesario: si una red social queda vacía en config.js, su ícono se oculta */
[hidden]{ display: none !important; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button, input, select, textarea{ font: inherit; color: inherit; }

::selection{ background: rgba(201,160,99,.28); color: var(--gold-hi); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Tipografía ---------- */
.display{
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-weight: 300;
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: .005em;
}
.eyebrow{
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede{ color: var(--bone-2); max-width: 52ch; }
.sig{
  font-family: 'Italianno', cursive;
  font-size: 46px;
  line-height: 1;
  color: var(--gold-hi);
}

.wrap{
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section{ position: relative; }

/* ---------- Ornamento Ξ (la marca del logo) ---------- */
.xi{ display: flex; flex-direction: column; gap: 4px; align-items: center; width: 34px; }
.xi i{ display: block; height: 1px; width: 100%; background: var(--gold); opacity: .75; }
.xi i:nth-child(2){ width: 74%; }

/* Barra de avance de lectura */
.progress{
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  pointer-events: none;
}

/* Sello circular giratorio (aparece en Sobre mí y en Contacto) */
.seal{ position: relative; pointer-events: none; }
.seal::before{
  content: '';
  position: absolute;
  inset: -22%;
  background: radial-gradient(circle, rgba(11,9,8,.92) 42%, rgba(11,9,8,.55) 68%, transparent 78%);
}
.seal svg{
  position: relative;
  width: 100%; height: 100%;
  animation: spin var(--spin, 34s) linear infinite;
}
.seal.ccw svg{ animation-direction: reverse; }
.seal .xi-mid{ position: absolute; inset: 0; display: grid; place-items: center; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Filete de greca entre bandas */
.greca-rule{
  height: 26px;
  background-image: var(--greca);
  background-size: 48px 26px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

/* ---------- Botones ---------- */
.btn{
  --bg: var(--gold);
  --fg: #150F07;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  background: var(--bg);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--bg);
  cursor: pointer;
  overflow: hidden;
  transition: color .45s var(--e), border-color .45s var(--e), transform .45s var(--e);
}
.btn span, .btn svg{ position: relative; z-index: 1; }
.btn::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-hi);
  transform: translateX(-101%);
  transition: transform .55s var(--e);
}
.btn:hover{ transform: translateY(-2px); }
.btn:hover::before{ transform: translateX(0); }

.btn.ghost{
  --bg: transparent;
  --fg: var(--bone);
  border-color: var(--gold-ln);
}
.btn.ghost::before{ background: rgba(201,160,99,.12); }
.btn.ghost:hover{ color: var(--gold-hi); border-color: var(--gold); }

.btn svg{ width: 15px; height: 15px; transition: transform .45s var(--e); }
.btn:hover svg{ transform: translateX(5px); }
.btn.ghost:hover svg{ transform: translateX(5px); }

.link-more{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  padding-block: 4px;
}
.link-more i{
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .5s var(--e);
}
.link-more:hover{ color: var(--gold-hi); }
.link-more:hover i{ transform: scaleX(1.45); }

/* ---------- Marcadores de contenido de ejemplo ---------- */
.ph{
  border-bottom: 1px dotted rgba(201,160,99,.5);
  cursor: help;
}
.ph-note{
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* Marco de foto: la imagen llena el hueco sin deformarse */
.shot{
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-2);
}
.shot > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CABECERA
   ============================================================ */
.site-head{
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  transition: background .5s var(--e), backdrop-filter .5s var(--e), border-color .5s var(--e), padding .5s var(--e);
  border-bottom: 1px solid transparent;
  padding-block: 14px;
}
.site-head.solid{
  background: rgba(11,9,8,.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gold-ln2);
  padding-block: 8px;
}
.head-in{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand{ display: block; flex: 0 0 auto; }
.brand img{
  width: auto;
  height: 68px;
  transition: height .5s var(--e), opacity .4s var(--e);
}
.site-head.solid .brand img{ height: 50px; }
.brand:hover img{ opacity: .82; }

.nav{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
}
.nav a{
  position: relative;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-2);
  padding-block: 6px;
  transition: color .35s var(--e);
}
.nav a::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--e);
}
.nav a:hover, .nav a.active{ color: var(--gold-hi); }
.nav a:hover::after, .nav a.active::after{ transform: scaleX(1); }

.head-cta{ padding: 11px 20px; font-size: 11px; }

.burger{
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--gold-ln);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}
.burger i{
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--gold);
  transition: transform .4s var(--e), opacity .3s var(--e);
}
.burger i:nth-child(1){ top: 15px; }
.burger i:nth-child(2){ top: 20px; }
.burger i:nth-child(3){ top: 25px; }
body.menu-open .burger i:nth-child(1){ transform: translateY(5px) rotate(45deg); }
body.menu-open .burger i:nth-child(2){ opacity: 0; }
body.menu-open .burger i:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11,9,8,.97);
  backdrop-filter: blur(8px);
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--e), visibility .45s;
}
body.menu-open .mobile-nav{ opacity: 1; visibility: visible; }
.mobile-nav a{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--bone);
  padding-block: 9px;
  transition: color .3s var(--e);
}
.mobile-nav a:hover, .mobile-nav a.active{ color: var(--gold-hi); }
.mobile-nav .btn{ margin-top: 20px; justify-content: center; }

/* Barra inferior fija en móvil: reservar siempre a mano */
.dock{
  position: fixed;
  inset: auto 0 0 0;
  z-index: 88;
  display: none;
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,9,8,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold-ln2);
  transform: translateY(110%);
  transition: transform .5s var(--e);
}
.dock.show{ transform: none; }
.dock .btn{
  flex: 1 1 0;
  justify-content: center;
  padding: 13px 10px;
  font-size: 10px;
  letter-spacing: .13em;
  gap: 8px;
  white-space: nowrap;
}
.dock .btn.ghost{ flex: 0 1 36%; }
body.menu-open .dock{ transform: translateY(110%); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  padding-block: clamp(130px, 17vh, 180px) clamp(70px, 9vw, 110px);
  overflow: hidden;
}
.hero::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-ln), transparent);
}
.hero-glow{
  position: absolute;
  top: 6%;
  right: 4%;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,160,99,.13), rgba(201,160,99,.04) 42%, transparent 66%);
  pointer-events: none;
  animation: breathe 11s ease-in-out infinite;
}
@keyframes breathe{
  0%,100%{ opacity: .75; transform: scale(1); }
  50%    { opacity: 1;   transform: scale(1.07); }
}

.hero-in{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(0,.84fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.hero-copy .eyebrow{ display: block; margin-bottom: 18px; }
.wordmark{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(58px, 9.6vw, 138px);
  line-height: .94;
  letter-spacing: .07em;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  background: linear-gradient(176deg, #F6E4BE 6%, var(--gold) 52%, #8A6B37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-disc{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 22px 0 24px;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bone-2);
}
.hero-disc b{ font-weight: 300; }
.hero-disc s{ text-decoration: none; color: var(--gold); }
.hero-copy .lede{ margin: 0 0 34px; max-width: 46ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art{
  position: relative;
  justify-self: center;
  width: min(430px, 100%);
}
.hero-art img{
  width: 100%;
  filter: drop-shadow(0 22px 48px rgba(0,0,0,.8));
  animation: float 9s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-11px); }
}

/* Riel de redes, borde derecho */
.social-rail{
  position: absolute;
  right: max(14px, calc((100vw - var(--max)) / 2 - 34px));
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
}
.social-rail a{
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold-ln2);
  color: var(--bone-2);
  transition: color .35s var(--e), border-color .35s var(--e), transform .35s var(--e), background .35s var(--e);
}
.social-rail a:hover{
  color: var(--gold-hi);
  border-color: var(--gold);
  background: rgba(201,160,99,.08);
  transform: translateY(-3px);
}
.social-rail svg{ width: 16px; height: 16px; }

.scroll-hint{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.scroll-hint i{
  display: block;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  animation: drag 2.6s ease-in-out infinite;
}
@keyframes drag{
  0%,100%{ transform: scaleX(.45); opacity: .5; }
  50%    { transform: scaleX(1);   opacity: 1; }
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.about{
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.16fr) minmax(0,.72fr);
  align-items: stretch;
  background: var(--ink-2);
  border-block: 1px solid var(--gold-ln2);
}
.about-photo{ min-height: 460px; }
.about-photo.right{ border-left: 1px solid var(--gold-ln2); }
.about-photo.left { border-right: 1px solid var(--gold-ln2); }
.about-body{
  padding: clamp(38px, 5vw, 68px) clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.about-body h2{
  margin: 0;
  font-size: clamp(30px, 4.4vw, 50px);
}
.about-body h2 em{
  font-style: normal;
  color: var(--gold-hi);
}
.about-body p{ margin: 0; }
.about-sig{ display: flex; align-items: flex-end; gap: 18px; margin-top: 4px; }
.about-sig .role{
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bone-3);
  padding-bottom: 10px;
}

/* Sello sobre la obra destacada de Sobre mí */
.seal.on-photo{
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 116px; height: 116px;
}

/* ============================================================
   ENCABEZADO DE SECCIÓN
   ============================================================ */
.sec{ padding-block: clamp(70px, 9vw, 118px); }
.sec-head{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: clamp(38px, 5vw, 62px);
}
.sec-head h2{
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
}
.sec-head .lede{ max-width: 46ch; margin: 0; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(16px, 2vw, 26px);
}
.svc{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 38px);
  min-height: 430px;
  border: 1px solid var(--gold-ln2);
  background: linear-gradient(170deg, var(--ink-3) 0%, var(--ink) 72%);
  overflow: hidden;
  transition: border-color .55s var(--e), transform .55s var(--e), box-shadow .55s var(--e);
}
.svc::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--greca);
  background-size: 44px 44px;
  opacity: .04;
  transition: opacity .6s var(--e), transform .9s var(--e);
}
.svc::after{
  content: '';
  position: absolute;
  right: -38%;
  bottom: -14%;
  z-index: 1;
  width: 78%;
  aspect-ratio: 3/4;
  background: radial-gradient(closest-side, rgba(201,160,99,.16), transparent 72%);
  opacity: .5;
  transition: opacity .6s var(--e), transform .8s var(--e);
}
.svc:hover{
  border-color: var(--gold-ln);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.svc:hover::before{ opacity: .075; transform: scale(1.07); }
.svc:hover::after{ opacity: .95; transform: translate(-8%,-6%); }
.svc > *{ position: relative; z-index: 2; }

/* Obra de fondo en cada tarjeta, bajo un velo oscuro */
.svc .layer{ position: absolute; inset: 0; z-index: 0; }
.svc .photo{
  background-position: center;
  background-size: cover;
  opacity: .17;
  filter: saturate(.55);
  transition: opacity .7s var(--e), transform 1.3s var(--e), filter .7s var(--e);
}
.svc:hover .photo{ opacity: .34; filter: saturate(.9); transform: scale(1.06); }
.svc .veil{
  background: linear-gradient(166deg, rgba(11,9,8,.58) 0%, rgba(11,9,8,.9) 52%, rgba(11,9,8,.97) 100%);
}

.svc-ico{
  width: 46px; height: 46px;
  color: var(--gold);
  margin-bottom: 4px;
}
.svc-ico svg{ width: 100%; height: 100%; }
.svc h3{
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
}
.svc h3 small{
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--gold);
  margin-top: 7px;
}
.svc p{ margin: 0; color: var(--bone-2); font-size: 15px; }
.svc ul{
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.svc li{
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 14px;
  color: var(--bone-2);
}
.svc li::before{
  content: '';
  flex: 0 0 auto;
  width: 12px; height: 1px;
  background: var(--gold);
  opacity: .7;
  transform: translateY(-4px);
}
.svc .link-more{ margin-top: auto; padding-top: 20px; }

/* ============================================================
   CINTA DESLIZANTE
   ============================================================ */
.ticker{
  position: relative;
  overflow: hidden;
  padding-block: clamp(20px, 3vw, 32px);
  border-block: 1px solid var(--gold-ln2);
  background: var(--ink);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.ticker-track{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  width: max-content;
  animation: slide 46s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-track span{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(26px, 4.4vw, 56px);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(201,160,99,.11);
  -webkit-text-stroke: 1px rgba(201,160,99,.4);
}
.ticker-track i{
  flex: 0 0 auto;
  width: 7px; height: 7px;
  background: var(--gold);
  opacity: .55;
  transform: rotate(45deg);
}
@keyframes slide{ to{ transform: translateX(-50%); } }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery{
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 10px;
}
.gal{
  grid-column: span 3;
  aspect-ratio: 3/4;
  border: 1px solid var(--gold-ln2);
  transition: border-color .55s var(--e);
}
.gal.wide{ grid-column: span 6; aspect-ratio: 3/2; }
.gal:hover{ border-color: var(--gold-ln); }
.gal > img{
  filter: saturate(.72) brightness(.84);
  transition: transform 1.2s var(--e), filter .7s var(--e);
}
.gal:hover > img{ transform: scale(1.06); filter: saturate(1) brightness(1); }
.gal figcaption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 54px 14px 13px;
  background: linear-gradient(transparent, rgba(11,9,8,.5) 34%, rgba(11,9,8,.88) 66%, rgba(11,9,8,.97));
}
.gal .tag{
  display: block;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.gal .cap{
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--bone);
}
.gallery-actions{
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ============================================================
   PROCESO
   ============================================================ */
.process{
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  border-block: 1px solid var(--gold-ln2);
}
.process .layer{ position: absolute; inset: 0; }
.process .photo{
  background-position: center 62%;
  background-size: cover;
  opacity: .2;
  filter: grayscale(.4);
}
.process .veil{
  background: linear-gradient(100deg, rgba(18,15,14,.96) 30%, rgba(18,15,14,.6) 100%);
}
.process > .wrap{ position: relative; z-index: 1; }
.steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: clamp(14px, 2vw, 26px);
}
.steps::before{
  content: '';
  position: absolute;
  top: 30px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-ln) 0 3px, transparent 3px 9px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--e) .25s;
}
.steps.in::before{ transform: scaleX(1); }

.step{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.step-ico{
  position: relative;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-ln);
  background: var(--ink-2);
  color: var(--gold);
  transition: background .45s var(--e), color .45s var(--e), transform .45s var(--e), border-color .45s var(--e);
}
.step-ico svg{ width: 26px; height: 26px; }
.step:hover .step-ico{
  background: rgba(201,160,99,.1);
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-4px);
}
.step .num{
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: .1em;
  margin-top: 4px;
}
.step h3{
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone);
}
.step p{ margin: 0; font-size: 13.5px; color: var(--bone-3); max-width: 24ch; }

/* ============================================================
   CONTACTO  (sección rescatada del mockup 2)
   ============================================================ */
.contact{
  position: relative;
  border-top: 1px solid var(--gold-ln2);
  background:
    radial-gradient(85% 130% at 12% 0%, rgba(201,160,99,.075), transparent 58%),
    var(--ink);
  overflow: hidden;
}
.contact-in{
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}
.contact-in{ position: relative; z-index: 1; }
.contact .seal.big{
  position: absolute;
  right: -140px;
  bottom: -70px;
  z-index: 0;
  width: clamp(230px, 26vw, 340px);
  aspect-ratio: 1;
  opacity: .5;
}
.contact .seal.big::before{ display: none; }

.contact-aside{ display: flex; flex-direction: column; gap: 22px; }
.contact-aside > img{ width: 88px; opacity: .9; }
.contact-aside h2{ margin: 0; font-size: clamp(32px, 4.4vw, 50px); }
.contact-aside p{ margin: 0; color: var(--bone-2); max-width: 38ch; }

.contact-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 2px;
}
.contact-links a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--bone-2);
  transition: color .35s var(--e);
}
.contact-links a svg{ width: 17px; height: 17px; color: var(--gold); transition: transform .35s var(--e); }
.contact-links a:hover{ color: var(--gold-hi); }
.contact-links a:hover svg{ transform: translateY(-2px); }

.contact-meta{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--gold-ln2);
  font-size: 13px;
  color: var(--bone-3);
}

/* Formulario */
.form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.field{ display: flex; flex-direction: column; gap: 7px; }
.field.full{ grid-column: 1 / -1; }
.field label{
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.field input,
.field select,
.field textarea{
  width: 100%;
  background: rgba(255,255,255,.022);
  border: 1px solid var(--gold-ln2);
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--bone);
  transition: border-color .4s var(--e), background .4s var(--e), box-shadow .4s var(--e);
}
.field textarea{ min-height: 132px; resize: vertical; }
.field select{ appearance: none; cursor: pointer; }
.field.sel{ position: relative; }
.field.sel::after{
  content: '';
  position: absolute;
  right: 17px;
  bottom: 21px;
  width: 7px; height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}
.field input::placeholder,
.field textarea::placeholder{ color: var(--bone-3); opacity: .65; }
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--gold);
  background: rgba(201,160,99,.05);
  box-shadow: 0 0 0 1px rgba(201,160,99,.2);
}
.form-foot{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}
.form-status{
  font-size: 12.5px;
  color: var(--gold-hi);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .45s var(--e), transform .45s var(--e);
}
.form-status.on{ opacity: 1; transform: none; }

/* ============================================================
   PIE
   ============================================================ */
.site-foot{
  border-top: 1px solid var(--gold-ln2);
  background: var(--ink-2);
  padding-block: 26px;
}
.foot-in{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--bone-3);
}
.foot-in .mid{ color: var(--gold); letter-spacing: .24em; text-transform: uppercase; font-size: 10.5px; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1FA855;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.75);
  transform: scale(0);
  transition: transform .5s var(--e), background .35s var(--e);
}
.wa.show{ transform: scale(1); }
.wa:hover{ background: #25C466; }
.wa svg{ width: 29px; height: 29px; }
.wa::after{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #1FA855;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%  { transform: scale(1);    opacity: .7; }
  70% { transform: scale(1.75); opacity: 0; }
  100%{ transform: scale(1.75); opacity: 0; }
}
.wa-tip{
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--ink-3);
  border: 1px solid var(--gold-ln2);
  color: var(--bone);
  font-size: 11.5px;
  letter-spacing: .1em;
  padding: 8px 13px;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .35s var(--e), transform .35s var(--e);
}
.wa:hover .wa-tip{ opacity: 1; transform: translateX(0); }

/* ============================================================
   REVELADO AL SCROLL
   ============================================================ */
/* Solo se ocultan los bloques que nacen bajo el primer pantallazo:
   lo que se ve al cargar queda visible desde el primer fotograma. */
html.js .rv.armed{
  opacity: .001;
  transform: translateY(16px);
}
html.js .rv{
  transition: opacity .95s var(--e), transform .95s var(--e), clip-path 1.15s var(--e);
  transition-delay: var(--d, 0ms);
}
html.js .rv.in{ opacity: 1; transform: none; }

/* Galería: se descubre como una cortina, de arriba abajo */
html.js .rv.curtain.armed{
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
}
html.js .rv.curtain.in{ clip-path: inset(0 0 0 0); }

/* Títulos que entran palabra por palabra */
html.js .split .w{
  display: inline-block;
  opacity: .001;
  transition: opacity .75s var(--e);
  transition-delay: calc(var(--i, 0) * 105ms + 140ms);
}
html.js .rv.in .split .w,
html.js .rv .split.shown .w{ opacity: 1; }

/* Íconos de línea que se dibujan solos */
html.js .draw [data-len]{
  transition: stroke-dashoffset 1.25s var(--e);
  transition-delay: calc(var(--j, 0) * 90ms + 220ms);
}
html.js .rv.in .draw [data-len]{ stroke-dashoffset: 0 !important; }

/* Destello que recorre el wordmark cada cierto tiempo */
html.js .wordmark{
  background-image:
    linear-gradient(104deg, transparent 40%, rgba(255,245,219,.92) 49%, transparent 58%),
    linear-gradient(176deg, #F6E4BE 6%, var(--gold) 52%, #8A6B37 100%);
  background-size: 320% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  animation: gleam 9s linear 2s infinite;
}
@keyframes gleam{
  0%       { background-position: 150% 0, 0 0; }
  26%, 100%{ background-position: -70% 0, 0 0; }
}

/* Foco dorado que sigue al cursor en el hero */
.hero-spot{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .7s var(--e);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 42%), rgba(201,160,99,.14), transparent 68%);
}
.hero.lit .hero-spot{ opacity: 1; }

/* Parallax suave de las dos fotos de Sobre mí */
.about-photo > img{ transform: scale(1.08) translateY(var(--py, 0px)); }

/* Entrada del hero, sin depender del observer */
html.js .hero .up{
  animation: up .95s var(--e) both;
  animation-delay: var(--d, 0ms);
}
@keyframes up{
  from{ opacity: 0; transform: translateY(22px); }
  to  { opacity: 1; transform: none; }
}
html.js .hero .fade-art{ animation: fadeArt 1.5s var(--e) .3s both; }
@keyframes fadeArt{
  from{ opacity: 0; transform: scale(.955); }
  to  { opacity: 1; transform: none; }
}
html.js .hero .slide-rail{ animation: rail 1s var(--e) 1.05s both; }
@keyframes rail{
  from{ opacity: 0; transform: translate(18px,-50%); }
  to  { opacity: 1; transform: translate(0,-50%); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px){
  .nav, .head-cta{ display: none; }
  .burger{ display: block; }
  .dock{ display: flex; }
  main{ padding-bottom: 76px; }
  .wa{ bottom: 88px; }
  .contact .seal.big{ right: -90px; bottom: -60px; opacity: .3; }
  .social-rail{ display: none; }
  .hero{ padding-block: clamp(104px, 13vh, 142px) clamp(56px, 7vw, 84px); }
  .hero-art{ width: min(290px, 34vw); }
  .hero-actions{ flex-wrap: nowrap; }
  .hero-actions .btn{
    padding: 14px 16px;
    font-size: 10.5px;
    letter-spacing: .14em;
    gap: 10px;
    white-space: nowrap;
  }

  /* Las dos obras de Sobre mí, en pareja, con el texto debajo */
  .about{ grid-template-columns: 1fr 1fr; }
  .about-photo{ min-height: 0; aspect-ratio: 4/3; }
  .about-photo.left { grid-area: 1 / 1 / 2 / 2; border: none; border-right: 1px solid var(--gold-ln2); }
  .about-photo.right{ grid-area: 1 / 2 / 2 / 3; border: none; }
  .about-body{
    grid-area: 2 / 1 / 3 / 3;
    padding: clamp(30px, 4vw, 46px) clamp(20px, 4vw, 48px);
    border-top: 1px solid var(--gold-ln2);
  }
  .about-body .lede{ max-width: 62ch; }

  .svc{ min-height: 0; }
  .gal{ grid-column: span 6; }
  .gal.wide{ grid-column: span 12; }
  .steps{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 18px; }
  .steps::before{ display: none; }
  .contact-in{ grid-template-columns: 1fr; gap: 30px; }
}

/* Las tres tarjetas en columna solo cuando ya no caben lado a lado */
@media (max-width: 900px){
  .services{ grid-template-columns: 1fr; gap: 16px; }
}

/* En tablet la galería se queda en una columna central: a todo el ancho
   las obras quedarían enormes y con mucho aire entre filas. */
@media (min-width: 621px) and (max-width: 1080px){
  .gallery{ max-width: 700px; margin-inline: auto; }
}

/* --- Tablet: la tarjeta de servicio se acuesta y llena el ancho --- */
@media (min-width: 621px) and (max-width: 900px){
  .svc{
    display: grid;
    grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
    column-gap: clamp(24px, 4vw, 44px);
    row-gap: 14px;
    align-content: start;
    padding: clamp(24px, 3vw, 34px);
  }
  .svc-ico{ grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .svc h3{ grid-column: 1; grid-row: 2; }
  .svc .link-more{ grid-column: 1; grid-row: 3; align-self: end; padding-top: 8px; }
  .svc p{ grid-column: 2; grid-row: 1; margin-top: 3px; }
  .svc ul{ grid-column: 2; grid-row: 2 / 4; }
}

/* --- Hero a una columna solo cuando ya no caben las dos --- */
@media (max-width: 760px){
  .hero-in{ grid-template-columns: 1fr; gap: 26px; }
  .hero-art{ grid-row: 1; justify-self: center; width: min(280px, 58%); }
}

@media (max-width: 620px){
  body{ font-size: 15.5px; }
  .brand img{ height: 54px; }
  .site-head.solid .brand img{ height: 44px; }
  .foot-in{ flex-direction: column; text-align: center; gap: 8px; }
  .wa{ right: 14px; bottom: 84px; }
  .sig{ font-size: 40px; }

  /* Menos aire vertical: en pantalla chica el espacio es caro */
  .sec{ padding-block: 52px; }
  .sec-head{ margin-bottom: 30px; gap: 10px; }

  /* --- Hero: la ilustración deja de comerse la primera pantalla --- */
  .hero{ padding-block: 92px 46px; }
  .hero-art{ width: 186px; }
  .hero-in{ gap: 22px; }
  .hero-copy .eyebrow{ margin-bottom: 12px; }
  .wordmark{ letter-spacing: .05em; font-size: 66px; }
  .hero-disc{ letter-spacing: .18em; margin: 14px 0 16px; }
  .hero-copy .lede{ margin-bottom: 24px; }
  .hero-actions{ flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn{
    flex: 1 1 0;
    justify-content: center;
    padding: 14px 8px;
    font-size: 10px;
    letter-spacing: .13em;
    gap: 8px;
    white-space: nowrap;
  }
  .hero-actions .btn svg{ width: 13px; height: 13px; }
  .scroll-hint{ display: none; }

  /* --- Sobre mí: las dos obras en pareja, el texto debajo --- */
  .about{ grid-template-columns: 1fr 1fr; }
  .about-photo{ min-height: 0; aspect-ratio: 3/4; }
  .about-photo.left { grid-area: 1 / 1 / 2 / 2; border: none; border-right: 1px solid var(--gold-ln2); }
  .about-photo.right{ grid-area: 1 / 2 / 2 / 3; border: none; }
  .about-body{
    grid-area: 2 / 1 / 3 / 3;
    padding: 30px 20px 34px;
    gap: 14px;
    border-top: 1px solid var(--gold-ln2);
  }
  .seal.on-photo{ width: 62px; height: 62px; right: 10px; bottom: 10px; }

  /* --- Servicios: tarjetas más apretadas --- */
  .services{ gap: 14px; }
  .svc{ padding: 22px 20px; gap: 12px; }
  .svc-ico{ width: 38px; height: 38px; margin-bottom: 0; }
  .svc h3{ font-size: 25px; }
  .svc h3 small{ margin-top: 5px; }
  .svc p{ font-size: 14.5px; }
  .svc ul{ gap: 7px; }
  .svc li{ font-size: 13.5px; }
  .svc .link-more{ padding-top: 12px; }

  /* --- Galería: dos columnas, la pieza ancha a todo lo ancho --- */
  .gallery{ gap: 8px; }
  .gal{ grid-column: span 6; }
  .gal.wide{ grid-column: span 12; }
  .gal figcaption{ padding: 40px 10px 10px; }
  .gal .tag{ font-size: 8.5px; letter-spacing: .22em; }
  .gal .cap{ font-size: 11px; line-height: 1.3; }
  .gallery-actions{ margin-top: 24px; }

  /* Proceso: de tarjetas apiladas a lista numerada */
  .steps{ grid-template-columns: 1fr; gap: 0; }
  .steps::before{
    top: 26px; bottom: 26px;
    left: 22px; right: auto;
    width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold-ln) 0 3px, transparent 3px 9px);
    transform: scaleY(0);
    transform-origin: top;
  }
  .steps.in::before{ transform: scaleY(1); }
  .step{
    display: grid;
    grid-template-columns: 46px auto 1fr;
    column-gap: 14px;
    row-gap: 5px;
    align-items: center;
    text-align: left;
    padding-block: 13px;
  }
  .step-ico{ grid-column: 1; grid-row: 1 / 3; width: 46px; height: 46px; align-self: start; }
  .step-ico svg{ width: 21px; height: 21px; }
  .step .num{ grid-column: 2; grid-row: 1; margin-top: 0; font-size: 17px; }
  .step h3{ grid-column: 3; grid-row: 1; justify-self: start; font-size: 11.5px; }
  .step p{ grid-column: 2 / 4; grid-row: 2; max-width: none; font-size: 13px; }

  /* Contacto: campos en dos columnas y menos relleno */
  .contact-aside{ gap: 14px; }
  .contact-aside > img{ display: none; }
  .contact-meta{ padding-top: 14px; }
  .form{ gap: 11px; }
  .field label{ font-size: 9.5px; }
  .field input, .field select, .field textarea{ padding: 11px 13px; font-size: 14px; }
  .field.sel::after{ bottom: 18px; }
  .field textarea{ min-height: 96px; }
  .form-foot{ margin-top: 0; }
  .site-foot{ padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition-duration: .01ms !important;
  }
  html.js .rv, html.js .rv.armed{
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  html.js .split .w{ opacity: 1 !important; }
  html.js .draw [data-len]{ stroke-dashoffset: 0 !important; }
  .steps::before{ transform: scaleX(1) !important; }
  .wa, .dock.show{ transform: none !important; }
  .hero-spot{ display: none; }
  .about-photo > img{ transform: scale(1.08) !important; }
}

/* ============================================================
   IMÁGENES DE FONDO
   Los archivos viven en la carpeta  img/  — para cambiar una,
   reemplaza el archivo conservando el mismo nombre.
   ============================================================ */
.svc.s-tatuajes   .photo{ background-image: url("../img/fondo-tatuajes.jpg"); }
.svc.s-pinturas   .photo{ background-image: url("../img/fondo-pinturas.jpg"); }
.svc.s-esculturas .photo{ background-image: url("../img/fondo-esculturas.jpg"); }
.process          .photo{ background-image: url("../img/fondo-proceso.jpg"); }

/* Datos de contacto como enlaces */
.contact-meta a{
  color: var(--bone-3);
  transition: color .3s var(--e);
  width: fit-content;
}
.contact-meta a:hover{ color: var(--gold-hi); }
