/* ==========================================================================
   Iridis Estudio — Home
   Diseño: Figma "Iridis Site" / Home (node 3:2)
   ========================================================================== */

:root {
  /* Paleta de marca (acentos) */
  --celeste:    #9ad7e8;
  --menta:      #bdefe5;
  --amarillo:   #efe3a7;
  --rosa:       #f0a9d7;
  --lavanda:    #8992c0;

  /* Neutros del diseño */
  --noche:      #14141c;
  --crema:      #f5f5f5;
  --tinta:      #221d18;
  --tinta-suave:#4a4137;
  --piedra:     #8f8676;
  --dorado:     #d9bc8c;
  --hueso:      #f3efe7;
  --marfil:     #f8f4ed;
  --bruma:      #c9c2b4;
  --periwinkle: #d6dcff;

  --gutter: 80px;
  --shell: 1400px;   /* ancho máximo del contenedor centrado en desktop */

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --------------------------------------------------------------------------
   Elementos compartidos
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2.34px;
}
.eyebrow--lavender   { color: var(--lavanda); }
.eyebrow--periwinkle { color: var(--periwinkle); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.23vw, 32px);
  line-height: 1.2;
  color: var(--tinta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 1.75px;
  line-height: normal;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s ease, box-shadow .4s ease, color .4s ease, opacity .4s ease;
}
.btn--rose     { border-color: var(--rosa);    color: var(--tinta); }
.btn--lavender { border-color: var(--lavanda); color: var(--tinta); }
.btn--on-dark  { color: #fff; font-weight: 500; }

.btn--rose:hover     { background: rgba(240, 169, 215, .14); box-shadow: 0 0 28px rgba(240, 169, 215, .28); }
.btn--lavender:hover { background: rgba(137, 146, 192, .12); box-shadow: 0 0 28px rgba(137, 146, 192, .22); }

/* Mientras no exista la página de piezas, el botón se muestra desactivado. */
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.btn:disabled:hover {
  background: transparent;
  box-shadow: none;
}

/* Explica por qué un botón está apagado, para que no parezca una falla. */
.btn-note {
  margin-top: -34px;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .4px;
  color: var(--piedra);
  text-align: center;
}

.placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1.1px;
  color: rgba(34, 29, 24, .6);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 860px;
  overflow: hidden;
  background: var(--noche);

  /* Posición del puntero en píxeles, relativa al hero. La fija el JS. */
  --px: 0;
  --py: 0;
  --lit: 0;
}

.hero__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
}

/* Glow 1 — 900 × 900 en (820, −420) */
.glow--1 {
  left: 820px; top: -420px; width: 900px; height: 900px;
  background: radial-gradient(circle at 50% 50%,
    rgba(240, 169, 215, .62) 0%,
    rgba(196, 146, 190, .46) 34%,
    rgba(137, 146, 192, .24) 58%,
    rgba(20, 20, 28, 0) 74%);
}

/* Glow 2 — 640 × 640 en (−220, 540) */
.glow--2 {
  left: -220px; top: 540px; width: 640px; height: 640px;
  background: radial-gradient(circle at 50% 50%,
    rgba(189, 239, 229, .58) 0%,
    rgba(154, 215, 232, .30) 40%,
    rgba(20, 20, 28, 0) 70%);
}

/* Glow 3 — 520 × 520 en (115, 120) */
.glow--3 {
  left: 115px; top: 120px; width: 520px; height: 520px;
  background: radial-gradient(circle at 50% 50%,
    rgba(240, 169, 215, .34) 0%,
    rgba(176, 96, 132, .22) 42%,
    rgba(20, 20, 28, 0) 70%);
}

/* Luz iridiscente que persigue el puntero. En reposo es invisible,
   de modo que el estado base del hero es idéntico al diseño. */
.hero__pointer {
  position: absolute;
  left: 0; top: 0;
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: calc(var(--lit) * .85);
  transform: translate3d(calc(var(--px) * 1px), calc(var(--py) * 1px), 0);
  transition: opacity .8s ease;
  background:
    radial-gradient(circle at 38% 34%, rgba(154, 215, 232, .40) 0%, rgba(154, 215, 232, 0) 55%),
    radial-gradient(circle at 66% 38%, rgba(189, 239, 229, .34) 0%, rgba(189, 239, 229, 0) 55%),
    radial-gradient(circle at 70% 64%, rgba(239, 227, 167, .30) 0%, rgba(239, 227, 167, 0) 55%),
    radial-gradient(circle at 40% 70%, rgba(240, 169, 215, .40) 0%, rgba(240, 169, 215, 0) 58%),
    radial-gradient(circle at 50% 50%, rgba(137, 146, 192, .26) 0%, rgba(137, 146, 192, 0) 62%);
}

/* Nav — 1280 de ancho en (80, 40) */
.nav {
  position: absolute;
  left: 50%; top: 40px;
  transform: translateX(-50%);
  width: min(var(--shell), 100% - var(--gutter) * 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 400;
  color: var(--hueso);
}
.nav a { text-decoration: none; }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 3.38px;
}
/* Versión de contorno claro: sobre el fondo oscuro el trazo original
   se confunde con el fondo y la marca pierde su estructura de vitral. */
.nav__mark { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  letter-spacing: 1.04px;
}
.nav__links a {
  opacity: .85;
  transition: opacity .3s ease, color .3s ease;
}
.nav__links a:hover { opacity: 1; color: var(--rosa); }

/* Contenido — 760 de ancho en (340, 150) */
.hero__content {
  position: absolute;
  left: 50%;
  top: 150px;
  transform: translateX(-50%);
  width: 760px;
  max-width: calc(100% - var(--gutter) * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__wordmark {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(64px, 10.4167vw, 150px);
  line-height: .9;
  color: #fff;
}
.hero__descriptor {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2.6px;
  color: var(--dorado);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 2.9167vw, 42px);
  line-height: 1.2;
  color: var(--marfil);
  max-width: 640px;
}
.hero__lede {
  font-weight: 300;
  font-size: clamp(15px, 1.1806vw, 17px);
  line-height: 1.55;
  color: var(--bruma);
  max-width: 520px;
}
.hero__signature {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1.44px;
  color: var(--piedra);
}

/* --------------------------------------------------------------------------
   Introducción
   -------------------------------------------------------------------------- */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 150px var(--gutter);
  background: var(--crema);
  text-align: center;
}
.intro__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(27px, 2.3611vw, 34px);
  line-height: 1.2;
  color: var(--tinta);
}
.intro__text {
  max-width: 620px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta-suave);
}

/* --------------------------------------------------------------------------
   Piezas destacadas
   -------------------------------------------------------------------------- */

.featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 0 var(--gutter) 150px;
  background: var(--crema);
}
.featured__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.featured__sub {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.4;
  color: var(--tinta-suave);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  gap: 40px;
  width: 100%;
  max-width: 1220px;
  justify-content: center;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__photo {
  position: relative;
  aspect-ratio: 380 / 475;
  overflow: hidden;
}
/* El degradé de cada tarjeta se ve sólo mientras la foto carga. */
.card__photo picture,
.card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__photo--1 {
  background: linear-gradient(90deg, #9ad7e8 0%, #bdefe5 25%, #efe3a7 50%, #f0a9d7 75%, #8992c0 100%);
}
.card__photo--2 {
  background: linear-gradient(90deg, #f0a9d7 0%, #efe3a7 33.333%, #bdefe5 66.667%, #8992c0 100%);
}
.card__photo--3 {
  background: linear-gradient(90deg, #8992c0 0%, #9ad7e8 33.333%, #bdefe5 66.667%, #efe3a7 100%);
}
.card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.card__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
  color: var(--tinta);
}
.card__technique { font-weight: 400; font-size: 13px; color: var(--piedra); }
.card__description {
  margin-top: 2px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tinta-suave);
}
.card__price     { font-weight: 400; font-size: 15px; color: var(--tinta); }
/* Código de catálogo: es con lo que se pregunta por una pieza, así que
   prioriza legibilidad sobre discreción. */
.card__code {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--tinta-suave);
}

/* --------------------------------------------------------------------------
   Preservación en resina
   -------------------------------------------------------------------------- */

.process {
  padding: 150px var(--gutter);
  background: #fff;
}
.process__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: min(var(--shell), 100%);
  margin-inline: auto;
}
.process__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.process__lede {
  max-width: 620px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta-suave);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  counter-reset: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 28px;
}
/* Filetes finos entre pasos, como separadores del recorrido. */
.step + .step {
  border-left: 1px solid rgba(137, 146, 192, .28);
}
.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step__number {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 52px;
  line-height: .9;
  color: rgba(137, 146, 192, .55);
}
.step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  line-height: 1.3;
  color: var(--tinta);
}
.step__text {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tinta-suave);
}

.process__note {
  max-width: 620px;
  margin-top: -18px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: var(--piedra);
}

/* --------------------------------------------------------------------------
   El concepto Iridis
   -------------------------------------------------------------------------- */

.concept {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 809px;
  padding: 130px var(--gutter) 0;
  overflow: hidden;
  background: var(--noche);
  isolation: isolate;
}

/* El arcoíris que se convierte en el fondo oscuro.
   Estado inicial: banda iridiscente a todo lo ancho.
   Al entrar en pantalla se disuelve hacia el centro y deja la noche. */
.concept::before {
  content: "";
  position: absolute;
  inset: -10% -10%;
  z-index: -2;
  background: repeating-linear-gradient(115deg,
    #9ad7e8 0, #bdefe5 190px, #efe3a7 380px, #f0a9d7 570px, #8992c0 760px, #9ad7e8 950px);
  background-position: 0 0;
  filter: blur(40px) saturate(112%);
  opacity: .05;
  transform: scale(1);
}

/* Velo de noche que sube sobre el arcoíris hasta apagarlo. */
.concept::after {
  content: "";
  position: absolute;
  inset: -10% -10%;
  z-index: -1;
  background: radial-gradient(circle at 50% 46%,
    rgba(20, 20, 28, .55) 0%,
    rgba(20, 20, 28, .82) 34%,
    rgba(20, 20, 28, 1) 62%);
  opacity: 1;
}

/* Sin JS el bloque se muestra ya en su estado final: fondo noche, texto visible.
   El JS marca .concept--anim para volver al arcoíris y .is-revealed para disolverlo. */
.concept--anim::before { opacity: 1; background-position: 0 0; transform: scale(1.06); }
.concept--anim::after  { opacity: 0; }
.concept--anim .concept__ring,
.concept--anim .concept__content { opacity: 0; }

.concept--anim.is-revealed::before {
  animation: iridis-fade 2600ms cubic-bezier(.33, .1, .2, 1) forwards;
}
.concept--anim.is-revealed::after {
  animation: iridis-night 2600ms cubic-bezier(.33, .1, .2, 1) forwards;
}
.concept--anim.is-revealed .concept__ring,
.concept--anim.is-revealed .concept__content {
  animation: iridis-surface 1400ms ease forwards;
  animation-delay: 900ms;
}

@keyframes iridis-fade {
  0%   { background-position: 0 0;      opacity: 1;   transform: scale(1.06); }
  45%  { background-position: -430px 0; opacity: .82; transform: scale(1.03); }
  100% { background-position: -950px 0; opacity: .05; transform: scale(1); }
}
@keyframes iridis-night {
  0%   { opacity: 0; }
  40%  { opacity: .55; }
  100% { opacity: 1; }
}
@keyframes iridis-surface {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.concept__ring {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 699px;
  height: 699px;
  margin-left: -350px;
  pointer-events: none;
}

.concept__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 660px;
  max-width: 100%;
  text-align: center;
}
.concept__wordmark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 5.1389vw, 74px);
  line-height: 1.2;
  color: #fff;
}
.concept__etymology {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 15px;
  color: var(--amarillo);
}
.concept__text {
  max-width: 600px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: #fff;
}
.concept__values {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2.08px;
  color: var(--rosa);
}

/* --------------------------------------------------------------------------
   La artista
   -------------------------------------------------------------------------- */

.artist {
  padding: 160px var(--gutter);
}
.artist__inner {
  display: flex;
  align-items: center;
  gap: 90px;
  width: min(var(--shell), 100%);
  margin-inline: auto;
}
.artist__photo {
  position: relative;
  flex: 0 0 420px;
  width: 420px;
  height: 525px;
  overflow: hidden;
  /* El degradé se ve sólo mientras la foto carga. */
  background: linear-gradient(90deg, #efe3a7 0%, #f0a9d7 45%, #8992c0 85%);
}
.artist__photo picture,
.artist__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.artist__paragraph {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta-suave);
}
/* Línea de entrada: las tres facetas de Natalia, con peso editorial. */
.artist__lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--tinta);
}

/* --------------------------------------------------------------------------
   Comisiones
   -------------------------------------------------------------------------- */

.commissions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 160px var(--gutter);
  background: rgba(154, 215, 232, .26);
  text-align: center;
}
.commissions__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(29px, 2.5vw, 36px);
  line-height: 1.2;
  color: var(--tinta);
}
.commissions__text {
  max-width: 560px;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--tinta-suave);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 80px var(--gutter) 44px;
  background: var(--noche);
  color: var(--hueso);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(var(--shell), 100%);
  margin-inline: auto;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer__mark { height: 54px; width: auto; }
.footer__name {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3.38px;
}
.footer__byline {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 17px;
  color: var(--bruma);
}
.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-weight: 300;
  font-size: 15px;
}
.footer__contact a {
  color: var(--hueso);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(240, 169, 215, .45);
  transition: color .3s ease, border-color .3s ease;
}
.footer__contact a:hover {
  color: var(--rosa);
  border-color: var(--rosa);
}
.footer__legal {
  padding-top: 26px;
  border-top: 1px solid rgba(243, 239, 231, .12);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .8px;
  color: var(--piedra);
}

/* --------------------------------------------------------------------------
   Adaptaciones
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --gutter: 48px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 380px)); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .step  { padding: 0 24px; }
  .step:nth-child(odd)  { padding-left: 0; }
  .step:nth-child(even) { padding-right: 0; }
  .step:nth-child(odd)  { border-left: 0; }

  .artist__inner { gap: 56px; }
  .artist__photo { flex-basis: 340px; width: 340px; height: 425px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }

  .hero { height: auto; min-height: 640px; padding: 120px 0 96px; }
  .hero__content { position: static; transform: none; width: 100%; margin: 0 auto; }
  .nav { flex-direction: column; gap: 18px; text-align: center; }
  .nav__links { gap: 22px; flex-wrap: wrap; justify-content: center; }

  .intro       { padding: 96px var(--gutter); }
  .featured    { padding: 0 var(--gutter) 96px; gap: 40px; }
  .cards       { grid-template-columns: minmax(0, 380px); }
  .process     { padding: 96px var(--gutter); }
  .process__inner { gap: 40px; align-items: flex-start; }
  .process__header { align-items: flex-start; text-align: left; }
  .steps       { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .step        { padding: 0; border-left: 0 !important; }
  .process__note { margin-top: 0; text-align: left; }
  .concept     { min-height: 0; padding: 96px var(--gutter); }
  .concept__ring { width: 520px; height: 520px; margin-left: -260px; top: 40px; }
  .artist      { padding: 96px var(--gutter); }
  .artist__inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .artist__photo { flex: 0 0 auto; width: 100%; max-width: 420px; height: auto; aspect-ratio: 420 / 525; }
  .commissions { padding: 96px var(--gutter); }
  .footer       { padding: 64px var(--gutter) 36px; }
  .footer__inner { gap: 36px; }
  .footer__top  { flex-direction: column; gap: 28px; }
  .footer__contact { align-items: flex-start; }
  .footer__mark { height: 44px; }
  .nav__mark { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__pointer { display: none; }

  /* El arcoíris no se anima: la sección se muestra ya resuelta en noche. */
  .concept--anim::before { opacity: .05; background-position: 0 0; transform: scale(1); }
  .concept--anim::after  { opacity: 1; }
  .concept--anim .concept__ring,
  .concept--anim .concept__content { opacity: 1; }
  .concept--anim.is-revealed::before,
  .concept--anim.is-revealed::after,
  .concept--anim.is-revealed .concept__ring,
  .concept--anim.is-revealed .concept__content { animation: none; }
}
