/* ==========================================================================
   Inés Uriarte — Alta costura
   Sistema visual heredado de la portada aprobada (Claude Design):
   fondo hueso, tinta casi negra, Jost + Cormorant Garamond, mucho aire.
   ========================================================================== */

:root {
  --bg: #EEEEE6;
  --bg-panel: #E9E9E0;
  --bg-card: #FCFCF9;
  --ink: #121211;
  --ink-soft: #35352F;
  --muted: #8A8A80;
  --muted-2: #6C6C63;
  --line: #C8C8BE;
  --line-soft: #E0E0D6;

  --sans: 'Jost', Helvetica, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --wa-green: #3f7a5c;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }

h1, h2, h3, p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.wordmark {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}

.hairline {
  width: 56px;
  height: 1px;
  background: var(--line);
  border: none;
}

.link-underline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
}
.link-underline:hover { border-color: var(--muted); }

@media (max-width: 720px) {
  /* Amplía la zona tocable sin mover ni una letra del diseño. */
  .link-underline { position: relative; }
  .link-underline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
  }
}

.texture {
  background-color: var(--bg-panel);
  background-image: repeating-linear-gradient(135deg, rgba(28,26,24,0.028) 0 1px, rgba(28,26,24,0) 1px 10px);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(238, 238, 230, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(18,18,17,0.02);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo {
  width: 44px;
  height: 44px;
  display: block;
}

.site-nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav__links a { position: relative; padding-bottom: 3px; }
.site-nav__links a.is-active { color: var(--ink); }
.site-nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}

.site-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 720px) {
  .site-nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 28px 0 34px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Zonas de toque cómodas: el texto sigue igual, crece el área tocable. */
  .site-nav__links {
    gap: 6px;
    padding: 18px 0 26px;
  }
  .site-nav__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
  }
  .site-nav__toggle {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
}

/* ---------- Hero (Portada) — la foto al frente ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__frame {
  position: absolute;
  inset: 0;
}
.hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__frame img.is-active { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,17,0.78) 0%, rgba(18,18,17,0.28) 38%, rgba(18,18,17,0) 62%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__frame img { transition: none; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.6vw, 26px);
  padding: clamp(28px, 6vh, 56px) var(--gutter) clamp(36px, 6vh, 64px);
  color: #EEEEE6;
}

.hero__name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  color: rgba(238, 238, 230, 0.92);
  max-width: 520px;
  text-wrap: pretty;
}

.hero__meta {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__meta span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 238, 230, 0.7);
}

.hero__meta a.link-underline {
  color: #EEEEE6;
  border-bottom-color: rgba(238, 238, 230, 0.6);
}
.hero__meta a.link-underline:hover {
  color: #EEEEE6;
  border-bottom-color: #EEEEE6;
}

@media (max-width: 560px) {
  .hero { min-height: 78vh; }
  .hero__meta { flex-direction: column; gap: 18px; }
}

/* ---------- Page header (páginas internas) ---------- */

.page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: clamp(56px, 10vh, 96px) var(--gutter) clamp(40px, 6vw, 64px);
  max-width: 760px;
  margin: 0 auto;
}

.page-head__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.page-head p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Section scaffolding ---------- */

section { position: relative; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 7vw, 80px);
}

.section-head p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.section-pad { padding: clamp(72px, 10vw, 130px) 0; }
.section-pad--tight { padding: clamp(56px, 8vw, 96px) 0; }

.divider {
  height: 1px;
  background: var(--line-soft);
  border: none;
  margin: 0;
}

/* ---------- Novias: stack de tarjetas ---------- */

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  touch-action: pan-y;
  /* Las tarjetas laterales se salen a propósito: hay que recortarlas al ancho
     de la pantalla o la página entera se corre de costado en el celular. */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: clip;
  overflow-y: visible;
}

.deck__stage {
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}
/* Las posiciones las calcula main.js (permite seguir el dedo de forma continua);
   la transición es la que hace el acomodamiento suave al soltar. */
.deck__stage.is-dragging .deck-card { transition: none; }

.deck-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 9px;
  cursor: pointer;
  box-shadow: 0 26px 46px -26px rgba(18, 18, 17, 0.4);
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1), opacity 0.55s ease;
}

.deck-card__photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-panel);
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.deck-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,17,0.8) 0%, rgba(18,18,17,0.22) 45%, rgba(18,18,17,0) 66%);
}

.deck-card__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.deck-card__name {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #EEEEE6;
}

.deck-card__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(238, 238, 230, 0.85);
}

/* En celular las tarjetas de al lado solo acompañan: su texto compite con el
   de la tarjeta principal, así que se oculta. */
@media (max-width: 720px) {
  .deck-card:not(.is-front) .deck-card__info { opacity: 0; }
}

.deck__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: clamp(20px, 3vw, 32px);
}

.deck__arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.deck__arrow:hover { border-color: var(--ink); }

.deck__count {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 56px;
  text-align: center;
}

.novias-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6vw, 64px);
}

.novias-more.is-hidden { display: none; }

/* Botón contorneado: sin relleno ni esquinas redondeadas, fiel a la portada,
   pero con cuerpo suficiente para no perderse en el celular. */
.btn-outline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  padding: 16px 30px;
  min-height: 48px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: var(--ink); }

.novias-full {
  margin-top: clamp(56px, 8vw, 96px);
}

.novias-full[hidden] { display: none; }
/* Descripciones vacías (vestidos sin texto todavía) no ocupan lugar. */
.novia-card__desc[hidden], .deck-card__desc[hidden], .lightbox__desc[hidden] { display: none; }

/* ---------- Novias grid ---------- */

.novias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(18px, 2.4vw, 28px) clamp(14px, 2vw, 22px);
}

.novia-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.novia-card__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-panel);
}
.novia-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.novia-card:hover .novia-card__frame img { transform: scale(1.035); }

.novia-card__name {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.novia-card__desc {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 560px) {
  .novias-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(18, 18, 17, 0.94);
  padding: clamp(16px, 4vw, 40px);
}
.lightbox.is-open { display: flex; flex-direction: column; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #EEEEE6;
  padding-bottom: 18px;
}

.lightbox__name {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lightbox__close {
  background: none;
  border: 1px solid rgba(238,238,230,0.4);
  color: #EEEEE6;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}
.lightbox__close:hover { border-color: #EEEEE6; }

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 28px);
  min-height: 0;
}

.lightbox__stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.lightbox__nav {
  background: none;
  border: none;
  color: #EEEEE6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  opacity: 0.7;
}
.lightbox__nav:hover { opacity: 1; }

.lightbox__desc {
  color: rgba(238,238,230,0.75);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  text-align: center;
  max-width: 560px;
  margin: 18px auto 0;
}

.lightbox__count {
  color: rgba(238,238,230,0.5);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: center;
  margin-top: 10px;
}

/* En celular las flechas al costado quedaban fuera de la pantalla: pasan a ser
   botones redondos sobre la foto, y la foto se limita para que entre todo. */
@media (max-width: 720px) {
  .lightbox__stage { position: relative; gap: 0; }

  .lightbox__stage img {
    max-height: 66vh;
    width: 100%;
  }

  .lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    background: rgba(18, 18, 17, 0.55);
    border: 1px solid rgba(238, 238, 230, 0.35);
    opacity: 1;
  }
  #lightbox-prev { left: 4px; }
  #lightbox-next { right: 4px; }

  .lightbox__close { padding: 12px 16px; }
}

/* ---------- Frase (respiro) ---------- */

.frase {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(64px, 12vh, 140px) var(--gutter);
}

.frase__text {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 4.6vw, 48px);
  line-height: 1.4;
  max-width: 920px;
  color: var(--ink);
  text-wrap: balance;
}

.frase__mark {
  display: block;
  margin: 26px auto 0;
  width: 30px;
  height: 1px;
  background: var(--line);
}

/* ---------- Proceso ---------- */

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}

.timeline {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline__step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--line-soft);
}
.timeline__step:last-child { border-bottom: 1px solid var(--line-soft); }

.timeline__index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--line);
}

.timeline__body { display: flex; flex-direction: column; gap: 10px; }

.timeline__title {
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline__text {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .timeline__step { grid-template-columns: 1fr; gap: 10px; }
  .timeline__index { display: none; }
}

.timeline__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted-2);
  text-align: center;
  max-width: 520px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.timeline__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: clamp(8px, 2vw, 16px) 0 0;
}
.timeline__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Para vos, novia ---------- */

.mas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}

.mas-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.mas-card__frame {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-panel);
}
.mas-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.mas-card:hover .mas-card__frame img { transform: scale(1.035); }

.mas-card__title {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mas-card__teaser {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
  color: var(--muted-2);
}

.mas-card__more {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .mas-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- Panel de detalle (overlay claro) ---------- */

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(18, 18, 17, 0.5);
  padding: clamp(0px, 4vw, 40px);
  overflow-y: auto;
}
.detail-overlay.is-open { display: block; }

.detail-panel {
  background: var(--bg-card);
  max-width: 760px;
  margin: 0 auto;
  min-height: 100%;
}

@media (min-width: 620px) {
  .detail-panel { margin: clamp(20px, 4vh, 56px) auto; min-height: 0; }
}

.detail-panel__bar {
  display: flex;
  justify-content: flex-end;
  padding: 18px 18px 0;
}

.detail-panel__close {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}
.detail-panel__close:hover { border-color: var(--ink); }

@media (max-width: 720px) {
  .detail-panel__close { padding: 13px 18px; }
}

.detail-panel__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 8px;
}
.detail-panel__frame img { width: 100%; height: 100%; object-fit: cover; }

.detail-panel__body {
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-panel__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-panel__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.detail-panel__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted-2);
  margin-top: -12px;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.detail-list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.detail-list li:last-child { border-bottom: 1px solid var(--line-soft); }

.detail-list__title {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.detail-list__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.detail-panel__inline-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin: 4px 0;
}
.detail-panel__inline-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sobre Inés (atelier) ---------- */

.atelier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.atelier__media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.atelier__media img { width: 100%; height: 100%; object-fit: cover; }
.atelier__media img:first-child { grid-row: 1 / span 2; aspect-ratio: 4/5; }
.atelier__media img:nth-child(2) { aspect-ratio: 1/1; }
.atelier__media img:nth-child(3) { aspect-ratio: 1/1; }

@media (max-width: 560px) {
  .atelier__media { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .atelier__media img:first-child { grid-row: 1 / span 2; }
}

.atelier__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.atelier__copy h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.atelier__copy p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.atelier__facts {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.atelier__facts span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.atelier__facts span:last-child { border-bottom: 1px solid var(--line-soft); }

@media (max-width: 860px) {
  .atelier { grid-template-columns: 1fr; }
  .atelier__media { order: -1; }
}

/* ---------- Contacto ---------- */

.contacto {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.contacto__ways {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.contacto__way {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.contacto__way .eyebrow { color: var(--muted); }
.contacto__way a, .contacto__way span.value {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

@media (max-width: 720px) {
  /* WhatsApp / Instagram / Threads: área tocable cómoda desde el celular. */
  .contacto__way a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

.contacto__way-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted-2);
  max-width: 220px;
}

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

.site-footer {
  padding: 36px var(--gutter) 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: clamp(18px, 4vw, 32px);
  bottom: clamp(18px, 4vw, 32px);
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(18,18,17,0.18);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Apertura animada del logo (solo portada, primera vez por sesión)
   El logo se borda: el aro, después INÉS y URIARTE, después el sello
   se encoge y viaja hasta el lugar del nombre en el menú.
   ========================================================================== */

.iu-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;
  overflow: hidden;
}
html.iu-intro-armed .iu-intro { display: block; }

.iu-intro__velo {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
}
html.iu-intro-go .iu-intro__velo {
  animation: iu-out-slow 1600ms ease 4650ms both;
}

.iu-stage {
  position: absolute;
  inset: 0;
}

/* El sello mantiene SIEMPRE su geometría interna de 300×300 (de ahí salen los
   tiempos y las máscaras); en celular se achica entero con --iu-base. */
.iu-sello {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  transform: scale(var(--iu-base, 1));
  transform-origin: center center;
}
html.iu-intro-go .iu-sello {
  animation: iu-dock 1500ms cubic-bezier(.66,0,.18,1) 4550ms both,
             iu-out 400ms ease 5700ms both;
}

.iu-disco {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
  opacity: 0;
}
html.iu-intro-go .iu-disco { animation: iu-in 700ms ease 1800ms both; }

.iu-aro { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.iu-aro .iu-guia,
.iu-aro .iu-mask-circle {
  stroke-dasharray: 940;
  stroke-dashoffset: 940;
}
html.iu-intro-go .iu-aro .iu-guia,
html.iu-intro-go .iu-aro .iu-mask-circle {
  animation: iu-draw 1900ms cubic-bezier(.36,0,.24,1) 150ms both;
}
html.iu-intro-go .iu-aro .iu-guia {
  animation: iu-draw 1900ms cubic-bezier(.36,0,.24,1) 150ms both,
             iu-out 700ms ease 2050ms both;
}

.iu-aguja { position: absolute; inset: 0; }
html.iu-intro-go .iu-aguja { animation: iu-vuelta 1900ms cubic-bezier(.36,0,.24,1) 150ms both; }
.iu-aguja i {
  position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: var(--ink);
}
html.iu-intro-go .iu-aguja i { animation: iu-out 450ms ease 1950ms both; }

.iu-palabras {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.iu-palabra { width: 240px; height: 60px; overflow: visible; }
.iu-palabra text {
  font-family: var(--sans); font-size: 34px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase;
}
.iu-puntada { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 3.2 3.4; stroke-linecap: round; }
.iu-relleno { fill: var(--ink); stroke: none; }

html.iu-intro-go .iu-barrido { animation: iu-avance 1150ms cubic-bezier(.38,0,.28,1) both; }
html.iu-intro-go .iu-p1 .iu-barrido { animation-delay: 2200ms; }
html.iu-intro-go .iu-p1 .iu-barrido.iu-lag { animation-delay: 2310ms; }
html.iu-intro-go .iu-p2 .iu-barrido { animation-delay: 3050ms; }
html.iu-intro-go .iu-p2 .iu-barrido.iu-lag { animation-delay: 3160ms; }
html.iu-intro-go .iu-punta { animation: iu-avance 1150ms cubic-bezier(.38,0,.28,1) both; }
html.iu-intro-go .iu-p1 .iu-punta { animation-delay: 2200ms; }
html.iu-intro-go .iu-p2 .iu-punta { animation-delay: 3050ms; }
html.iu-intro-go .iu-p1 .iu-punta-wrap { animation: iu-out 380ms ease 3290ms both; }
html.iu-intro-go .iu-p2 .iu-punta-wrap { animation: iu-out 380ms ease 4140ms both; }

@keyframes iu-draw { to { stroke-dashoffset: 0; } }
@keyframes iu-vuelta { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes iu-avance { from { transform: translateX(-8px); } to { transform: translateX(252px); } }
@keyframes iu-dock {
  from { transform: translate(0,0) scale(var(--iu-base, 1)); }
  to { transform: translate(var(--dock-x, -620px), var(--dock-y, -370px)) scale(var(--dock-scale, .1467)); }
}
@keyframes iu-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes iu-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes iu-out-slow { from { opacity: 1; } to { opacity: 0; } }
@keyframes iu-lift { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

html.iu-intro-armed #site-logo { opacity: 0; }
html.iu-intro-go #site-logo { animation: iu-in 500ms ease 5750ms both; }

/* En celular los links son un panel desplegable oculto: animarlo lo dejaría
   visible. Ahí entra el botón "Menú"; los links solo se animan en escritorio. */
@media (min-width: 721px) {
  html.iu-intro-go .site-nav__links { animation: iu-lift 1200ms cubic-bezier(.22,1,.28,1) 5450ms both; }
}
html.iu-intro-go .site-nav__toggle { animation: iu-lift 1200ms cubic-bezier(.22,1,.28,1) 5450ms both; }
html.iu-intro-go .hero__name,
html.iu-intro-go .hero__quote { animation: iu-lift 1200ms cubic-bezier(.22,1,.28,1) 5650ms both; }
html.iu-intro-go .hero__meta { animation: iu-lift 1200ms cubic-bezier(.22,1,.28,1) 5850ms both; }

@media (prefers-reduced-motion: reduce) {
  .iu-intro { display: none !important; }
}
