/* IVBEAUTY — cabina de pestañas y cejas
   Paleta: carbón cálido, bronce apagado, champán.
   Tipografía: Fraunces (titulares) + Inter (cuerpo). */

:root {
  --ink: #0b0a08;
  --ink-2: #12110e;
  --gold: #c9a227;
  --champagne: #e8dfc8;
  --paper: #f2ede4;
  --mute: #b7b0a3;
  --line: rgba(232, 223, 200, 0.18);
  --gold-line: rgba(201, 162, 39, 0.45);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --header: 4.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0125rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  padding-top: var(--header);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.brand-name,
blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
}

.carta,
.proceso,
.resultados,
.cabina,
.cita {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--champagne);
  font-weight: 400;
}

p {
  margin: 0;
}

p + p {
  margin-top: 0.75rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

.btn:focus-visible {
  outline-color: var(--champagne);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-eyebrow {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: 0.75rem;
  z-index: 80;
  background: var(--champagne);
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  font-size: 0.875rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0.5rem 0.9rem;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
  min-width: 0;
  flex: 1;
}

.brand-name {
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--champagne);
}

.brand-meta {
  display: none;
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.06em;
}

@media (min-width: 400px) {
  .brand-meta {
    display: block;
  }
}

.nav-desktop {
  display: none;
  margin-left: auto;
  gap: 1.65rem;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--mute);
}

.nav-desktop a:hover {
  color: var(--champagne);
}

.header-cta {
  display: inline-flex;
  margin: 0;
  color: var(--champagne);
  text-decoration: none;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.12rem;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-cta:hover {
  color: var(--gold);
}

.nav-toggle {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8125rem;
  cursor: pointer;
  width: 44px;
  min-height: 44px;
  padding: 0;
}

.nav-toggle-mark {
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-mark {
  transform: rotate(0deg);
  background: var(--gold);
}

.nav-panel {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 0.5rem var(--pad) 1.75rem;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: auto;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-panel a {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--champagne);
  line-height: 1.2;
  padding: 0.2rem 0;
}

.nav-panel a:hover {
  color: var(--gold);
}

.nav-panel-note {
  margin-top: 1.25rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.nav-panel-note a {
  font-family: var(--sans);
  font-size: inherit;
  color: var(--champagne);
}

body.nav-open {
  overflow: hidden;
}

/* ——— Hero ——— */

.hero {
  display: grid;
  min-height: calc(100svh - var(--header));
  max-width: 100%;
  min-width: 0;
}

.hero-copy {
  padding: 3.25rem var(--pad) 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  order: 2;
  position: relative;
  z-index: 2;
  margin-top: -5.25rem;
  background: linear-gradient(to top, var(--ink) 62%, transparent);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.65rem, 11.5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
  color: var(--champagne);
  font-weight: 300;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line span {
  display: block;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.35rem;
  color: var(--mute);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
  margin-top: 1.6rem;
}

.hero-photo {
  position: relative;
  margin: 0;
  min-height: 58vw;
  max-height: 72vh;
  overflow: hidden;
  order: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 58vw;
  max-height: 72vh;
  object-fit: cover;
  object-position: 62% 40%;
  transform: scale(1.08);
  will-change: transform;
}

.hero-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(to top, var(--ink), transparent);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: var(--pad);
  top: 0.9rem;
  bottom: auto;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
}

/* Hero entrance — one sequence, then rest */

.hero-photo {
  clip-path: inset(10% 8% 10% 8%);
  animation: heroCrop 1.55s var(--ease) 0.1s forwards;
}

.hero-photo img {
  animation: heroZoom 1.7s var(--ease) 0.1s forwards;
}

.hero-line span {
  transform: translateY(110%);
  animation: heroLine 1.05s var(--ease) forwards;
}

.hero-line:nth-child(1) span {
  animation-delay: 0.72s;
}
.hero-line:nth-child(2) span {
  animation-delay: 0.9s;
}
.hero-line:nth-child(3) span {
  animation-delay: 1.08s;
}

.hero-eyebrow,
.hero-lead,
.hero-actions,
.hero-caption {
  opacity: 0;
  animation: heroFade 0.9s var(--ease) 1.35s forwards;
}

@keyframes heroCrop {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1.04);
  }
}

@keyframes heroLine {
  to {
    transform: translateY(0);
  }
}

@keyframes heroFade {
  to {
    opacity: 1;
  }
}

/* ——— Buttons / links ——— */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem 0.85rem 1.15rem;
  background: var(--champagne);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--champagne);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  flex-shrink: 0;
}

.btn:hover {
  background: transparent;
  color: var(--champagne);
}

.text-link {
  color: var(--champagne);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.12rem;
}

.text-link:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* ——— Carta ——— */

.carta {
  padding: 4.5rem var(--pad) 3.5rem;
  display: grid;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 100%;
  min-width: 0;
}

.menu {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.carta-intro {
  max-width: 34rem;
}

.carta-intro p {
  color: var(--mute);
}

.menu-item {
  display: block;
  padding: 1.15rem 0 1.2rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.menu-item:last-child {
  border-bottom: 1px solid var(--line);
}

.menu-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0.75rem, 1fr) auto;
  align-items: baseline;
  gap: 0.65rem;
}

.menu-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.4vw, 1.65rem);
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1.15;
  min-width: 0;
}

.menu-dots {
  border-bottom: 1px dotted rgba(232, 223, 200, 0.32);
  transform: translateY(-0.28em);
}

.menu-price {
  font-size: 0.92rem;
  color: var(--champagne);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-desc {
  margin-top: 0.35rem;
  color: var(--mute);
  font-size: 0.9rem;
  max-width: 38rem;
}

.menu-item:hover .menu-name,
.menu-item:focus-visible .menu-name {
  color: var(--champagne);
}

.menu-item:hover .menu-dots,
.menu-item:focus-visible .menu-dots {
  border-bottom-color: var(--gold);
}

.menu-item:hover .menu-price,
.menu-item:focus-visible .menu-price {
  color: var(--gold);
}

/* ——— Proceso (únicos números: es un procedimiento real) ——— */

.proceso {
  padding: 1rem var(--pad) 4.5rem;
}

.proceso-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.proceso-head p {
  color: var(--mute);
}

.pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.pasos li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.paso-num {
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pasos p {
  color: var(--mute);
  font-size: 0.95rem;
}

/* ——— Galería ——— */

.resultados {
  padding: 0 0 4.5rem;
}

.resultados-head {
  padding: 0 var(--pad) 2rem;
  max-width: 40rem;
}

.resultados-head p {
  color: var(--mute);
}

.gallery {
  display: grid;
  gap: 3.5rem;
}

.pair {
  margin: 0;
  position: relative;
}

.shot {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-label {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--champagne);
  text-shadow: 0 1px 12px rgba(11, 10, 8, 0.8);
}

.pair-flush {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.pair-flush .shot img {
  aspect-ratio: 4 / 5;
  height: auto;
}

.pair-note {
  grid-column: 1 / -1;
  padding: 0.9rem var(--pad) 0;
  color: var(--mute);
  font-size: 0.88rem;
}

.pair-offset {
  padding: 0 var(--pad);
  display: grid;
  gap: 0.75rem;
}

.pair-offset .shot-main img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.pair-offset .shot-inset {
  width: min(58%, 18rem);
  margin-top: -18%;
  margin-left: 0;
  outline: 6px solid var(--ink);
}

.pair-offset .shot-inset img {
  aspect-ratio: 4 / 5;
  height: auto;
}

.pair-offset .pair-note {
  padding-left: 0;
  padding-right: 0;
}

.pair-stack {
  padding: 0 var(--pad);
  display: grid;
  gap: 1.25rem;
}

.pair-stack .shot-tall img {
  aspect-ratio: 3 / 4;
  height: auto;
}

.pair-stack-side .pair-note {
  padding: 0.9rem 0 0;
}

/* ——— Cabina / confianza ——— */

.cabina {
  padding: 4.5rem var(--pad) 5rem;
  border-top: 1px solid var(--line);
}

.quote {
  margin: 0 0 3.25rem;
  max-width: 52rem;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.65rem, 4.4vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--champagne);
  font-style: italic;
  font-weight: 300;
}

.quote figcaption {
  margin-top: 1.15rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-style: normal;
  color: var(--mute);
}

.quote figcaption::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
  margin-right: 0.7rem;
  vertical-align: middle;
}

.hechos {
  display: grid;
  gap: 2rem;
}

.hechos p {
  color: var(--mute);
  max-width: 36rem;
}

.hechos h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

/* ——— Cita ——— */

.cita {
  padding: 4.5rem var(--pad) 5rem;
  background: var(--ink-2);
  display: grid;
  gap: 2.75rem;
}

.cita-copy {
  max-width: 36rem;
}

.cita-copy p {
  color: var(--mute);
}

.cita-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.6rem;
}

.cita-datos {
  display: grid;
  gap: 1.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.cita-datos h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: none;
}

.cita-datos p {
  color: var(--paper);
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
}

/* ——— Footer ——— */

.site-footer {
  padding: 2rem var(--pad) 2.5rem;
  display: grid;
  gap: 1.1rem;
  border-top: 1px solid var(--line);
}

.footer-brand .brand-name {
  margin: 0;
  font-size: 1.35rem;
  color: var(--champagne);
}

.footer-brand p {
  color: var(--mute);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-links a {
  color: var(--champagne);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-legal {
  color: var(--mute);
  font-size: 0.75rem;
}

/* ——— Desktop ——— */

@media (min-width: 760px) {
  .hero-photo {
    min-height: 62vh;
    max-height: none;
  }

  .hero-photo img {
    min-height: 62vh;
    max-height: none;
  }

  .pair-offset {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
    gap: 0;
  }

  .pair-offset .shot-main {
    grid-column: 1 / -1;
  }

  .pair-offset .shot-inset {
    grid-column: 1;
    width: 42%;
    margin-top: -22%;
    margin-left: 6%;
  }

  .pair-stack {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
    gap: 1.5rem;
  }

  .hechos {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }

  .hechos article + article {
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }

  .cita-datos {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  .nav-toggle,
  .nav-panel {
    display: none !important;
  }

  .site-header {
    padding: 0.65rem var(--pad);
  }

  .nav-desktop {
    display: flex;
    margin-left: auto;
    margin-right: 0.5rem;
    gap: 1.65rem;
  }

  .header-cta {
    margin: 0;
    font-size: 0.8125rem;
  }

  .hero {
    grid-template-columns: minmax(18rem, 0.92fr) minmax(22rem, 1.18fr);
    min-height: calc(100svh - var(--header));
    align-items: stretch;
  }

  .hero-copy {
    order: 1;
    margin-top: 0;
    background: none;
    padding: clamp(2rem, 6vh, 5rem) 0 clamp(2.5rem, 8vh, 5.5rem)
      var(--pad);
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .hero-title {
    font-size: clamp(3.4rem, 6.4vw, 6.4rem);
    margin-right: -18%;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-photo {
    order: 2;
    min-height: calc(100svh - var(--header));
    max-height: none;
    height: 100%;
    align-self: stretch;
  }

  .hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 100%;
    max-height: none;
    height: 100%;
    object-position: 70% 38%;
  }

  .hero-photo::after {
    height: auto;
    inset: 0;
    width: 28%;
    background: linear-gradient(to right, var(--ink), transparent);
  }

  .hero-caption {
    left: auto;
    top: auto;
    right: var(--pad);
    bottom: 1.25rem;
  }

  .carta {
    grid-template-columns: minmax(16rem, 0.72fr) minmax(22rem, 1.15fr);
    gap: 4rem;
    align-items: start;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .carta-intro {
    position: sticky;
    top: calc(var(--header) + 1.5rem);
  }

  .menu-item {
    padding: 1.05rem 0.35rem 1.15rem 0;
  }

  .proceso {
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(22rem, 1.15fr);
    gap: 4rem;
    padding-bottom: 6rem;
  }

  .pasos {
    gap: 0;
  }

  .pasos li {
    padding: 1.35rem 0;
    border-top: 1px solid var(--line);
    grid-template-columns: 3rem 1fr;
  }

  .pasos li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .resultados-head {
    max-width: 44rem;
    padding-bottom: 2.5rem;
  }

  .gallery {
    gap: 5.5rem;
  }

  .pair-flush {
    padding-left: 0;
    padding-right: 0;
  }

  .quote blockquote {
    max-width: 20ch;
  }

  .cita {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    padding: 6rem var(--pad);
  }

  .cita-datos {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0.2rem 0 0 2.5rem;
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    margin-right: -22%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo,
  .hero-photo img,
  .hero-line span,
  .hero-eyebrow,
  .hero-lead,
  .hero-actions,
  .hero-caption {
    animation: none;
    transform: none;
    opacity: 1;
    clip-path: none;
  }

  .hero-photo img {
    transform: none;
  }
}
