:root {
  --brand: #D8205D;
  --brand-dark: #B0164A;
  --brand-soft: #FCE8EF;
  --ink: #16121A;
  --ink-2: #3D3742;
  --muted: #6B6470;
  --surface: #FFFFFF;
  --surface-alt: #F7F4F6;
  --line: #ECE6EA;
  --night: #140F17;
  --night-2: #221A26;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 18, 26, .06), 0 8px 24px rgba(22, 18, 26, .06);
  --shadow-hover: 0 2px 4px rgba(22, 18, 26, .08), 0 18px 40px rgba(216, 32, 93, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1160px;
  --header-h: 72px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--brand); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(216, 32, 93, .28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 26px rgba(216, 32, 93, .34); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow-light { color: #FF8FB3; }

.accent { color: var(--brand); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(22, 18, 26, .05); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 60px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  --open: 0;
  --pin: 0px;
  position: relative;
  height: calc(100svh - var(--header-h) + var(--pin));
  min-height: 640px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(216, 32, 93, .10), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(216, 32, 93, .06), transparent 60%);
}

.hero-pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-visual { display: flex; justify-content: center; }

.door {
  position: relative;
  width: min(470px, 86vw);
  aspect-ratio: 1580 / 1370;
  perspective: 1500px;
  animation: door-in .9s var(--ease) both;
}

.door-inside,
.door-leaf {
  position: absolute;
  left: 27.6%;
  top: 4.67%;
  width: 44.87%;
  height: 90.2%;
}

.door-inside {
  overflow: hidden;
  background: linear-gradient(160deg, #1D1520 0%, var(--night) 100%);
}

.door-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 70% at 50% 30%, rgba(255, 143, 179, .55), transparent 65%);
  opacity: calc(var(--open) * 1);
}

.door-code {
  position: absolute;
  left: 9%;
  right: 6%;
  top: 30%;
  display: grid;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(.6rem, 1.15vw, .78rem);
  color: #EDE6EE;
}
.door-code .ln { white-space: nowrap; }
.door-code .ln:nth-child(1) { opacity: clamp(0, calc((var(--open) - .3) * 4), 1); }
.door-code .ln:nth-child(2) { opacity: clamp(0, calc((var(--open) - .5) * 4), 1); }
.door-code .ln:nth-child(3) { opacity: clamp(0, calc((var(--open) - .7) * 4), 1); }
.door-code i { font-style: normal; }
.t-k { color: #FF8FB3; }
.t-o { color: #9C93A3; }
.t-s { color: #7FE0B8; }

.door-leaf {
  transform-origin: left center;
  transform: rotateY(calc(var(--open) * -108deg));
  background: linear-gradient(100deg, #FFFFFF 0%, #FBF6F8 70%, #F3E9EE 100%);
  box-shadow: inset 0 0 0 1px rgba(216, 32, 93, calc(var(--open) * .25)), 0 18px 36px rgba(22, 18, 26, calc(var(--open) * .18));
  will-change: transform;
}

.door-knob {
  position: absolute;
  left: 85.2%;
  top: 55.9%;
  width: 11.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.door-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.door-logo polygon,
.door-logo text { fill: var(--brand); }
.door-logo-frame { fill: none; stroke: var(--brand); stroke-width: 51; }
.door-logo text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 210px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateX(-50%);
  opacity: clamp(0, calc(1 - var(--open) * 2.5), 1);
}
.scroll-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: cue-bounce 1.6s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.trust-inner {
  padding: 26px 20px;
  text-align: center;
}
.trust p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-2);
}
.trust strong { color: var(--ink); font-weight: 700; }

.section { padding: 104px 0; }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(216, 32, 93, .25); }
.card p { color: var(--muted); margin: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  margin-bottom: 20px;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: paso;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step p { color: var(--muted); margin: 0; }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 18px;
}

.plack {
  overflow: hidden;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(216, 32, 93, .28), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #CFC6D3;
}
.plack h2 { color: #fff; }

.plack-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.plack-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.plack-list li {
  position: relative;
  padding-left: 28px;
  color: #EDE6EE;
}
.plack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid #FF8FB3;
  border-bottom: 2px solid #FF8FB3;
  transform: rotate(-45deg);
}

.plack-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.phone {
  margin: 0;
  width: min(270px, 62vw);
  aspect-ratio: 560 / 1218;
  border-radius: 40px;
  padding: 9px;
  background: #0B080D;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(216, 32, 93, .2);
  overflow: hidden;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.phone-front { position: relative; z-index: 2; transform: translateX(18%); }
.phone-back {
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 1;
  transform: translateX(-88%) rotate(-6deg);
  opacity: .9;
  filter: saturate(.85) brightness(.85);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.reason {
  padding: 30px 28px 28px 32px;
  border-left: 3px solid var(--brand);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.reason p { color: var(--muted); margin: 0; }

.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFE3EC;
  padding: 96px 0;
}
.cta-inner { text-align: center; max-width: 760px; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.15rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 26px;
  margin-top: 28px;
}
.cta-mail {
  color: #fff;
  font-weight: 500;
  text-underline-offset: 4px;
  padding: 10px 0;
}

.site-footer {
  background: var(--night);
  color: #9C93A3;
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-inner p { margin: 0; font-size: .95rem; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a { color: #CFC6D3; text-decoration: none; padding: 10px 0; }
.footer-inner nav a:hover { color: #fff; }
.footer-inner img { width: 46px; filter: brightness(0) invert(1); opacity: .9; }

body.intro-activa { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  animation: intro-salida .35s ease-in 2.15s forwards;
}
.intro[hidden] { display: none; }

.intro-logo {
  width: min(420px, 68vw);
  height: auto;
  overflow: visible;
  transform-origin: 50% 49.8%;
  animation: intro-zoom .8s cubic-bezier(.7, 0, .84, 0) 1.55s forwards;
}

.intro-marco {
  fill: none;
  stroke: var(--brand);
  stroke-width: 51;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: intro-trazo .7s var(--ease) .1s forwards;
}

.intro-uno {
  fill: var(--brand);
  opacity: 0;
  animation: intro-uno-izq .6s var(--ease) .35s forwards;
}
.intro-uno-der { animation-name: intro-uno-der; }

.intro-perilla {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: intro-pop .35s cubic-bezier(.34, 1.56, .64, 1) .85s forwards;
}

.intro-texto {
  fill: var(--brand);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 210px;
  opacity: 0;
  animation: intro-texto .4s var(--ease) .9s forwards;
}

.intro-luz {
  opacity: 0;
  animation: intro-luz .4s ease-out 1.3s forwards;
}

.intro-saltar {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink-2);
  font: 500 .9rem var(--font-body);
  cursor: pointer;
}
.intro-saltar:hover { color: var(--brand); border-color: var(--brand); }

@keyframes intro-trazo { to { stroke-dashoffset: 0; } }
@keyframes intro-uno-izq {
  from { opacity: 0; transform: translateX(-320px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-uno-der {
  from { opacity: 0; transform: translateX(320px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-pop { to { transform: scale(1); } }
@keyframes intro-texto {
  from { opacity: 0; transform: translateY(90px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-luz { to { opacity: 1; } }
@keyframes intro-zoom { to { transform: scale(16); } }
@keyframes intro-salida { to { opacity: 0; visibility: hidden; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .hero { --open: 1; }

@keyframes door-in {
  from { opacity: 0; transform: rotateY(-18deg) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(22, 18, 26, .08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 12px; }

  .hero { height: auto; min-height: 0; padding: 40px 0 64px; }
  .hero-pin { position: static; height: auto; min-height: 0; }
  .scroll-cue { display: none; }
  .hero-grid, .plack-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .door { width: min(320px, 82vw); }
  .plack-visual { min-height: 500px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards, .steps, .reasons { grid-template-columns: 1fr; }
  .plack-list { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .door-code { font-size: .58rem; gap: 6px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero { --open: 1 !important; --pin: 0px !important; }
}
