:root {
  --marfil: #FBF6EC;
  --arena: #EAD9B7;
  --rosa: #F2C9C4;
  --lila: #CDBFE3;
  --turquesa: #3FB8AF;
  --ultramar: #2B5DAD;
  --violeta: #6C5AA8;
  --geranio: #E4483F;
  --limon: #F4D35E;
  --tinta: #2A2440;
  --fraunces: 'Fraunces', Georgia, serif;
  --poppins: 'Poppins', -apple-system, sans-serif;
  --kaushan: 'Kaushan Script', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.js { scroll-behavior: auto; }
body {
  font-family: var(--poppins);
  font-weight: 300;
  color: var(--tinta);
  background: var(--marfil);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--tinta); color: var(--marfil);
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- glass ---------- */
.glass {
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 26px;
  box-shadow:
    0 12px 48px rgba(42, 36, 64, .20),
    inset 0 1px 0 rgba(255, 255, 255, .65);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255, 255, 255, .78); }
}

.kicker {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--violeta); margin-bottom: 14px;
}
h2 {
  font-family: var(--fraunces);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.btn {
  display: inline-block;
  font-family: var(--poppins); font-weight: 600; font-size: 16px;
  color: #fff; background: var(--geranio);
  padding: 15px 32px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 8px 26px rgba(228, 72, 63, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--ultramar); outline-offset: 3px;
}
.btn-ghost {
  font-size: 15px; font-weight: 500; text-decoration: none;
  border-bottom: 2px solid rgba(42, 36, 64, .35); padding-bottom: 2px;
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  background: var(--marfil);
  display: none; align-items: center; justify-content: center;
}
html.js .loader.active { display: flex; }
.loader img { width: min(46vw, 320px); height: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 100;
  width: min(94vw, 1080px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  transition: box-shadow .3s ease, background-color .3s ease;
}
.nav.scrolled { box-shadow: 0 14px 44px rgba(42, 36, 64, .28), inset 0 1px 0 rgba(255,255,255,.65); }
.nav-brand img { width: auto; height: 30px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 30px); }
.nav-links a { font-family: var(--poppins); font-size: 14px; font-weight: 500; color: var(--tinta); text-decoration: none; opacity: .72; transition: opacity .2s ease; white-space: nowrap; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--fraunces); font-style: italic; font-weight: 600;
  font-size: 17px; color: #fff; background: var(--geranio);
  text-decoration: none; padding: 9px 22px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(228, 72, 63, .35);
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 96px clamp(18px, 5vw, 64px) clamp(48px, 8vh, 88px);
  overflow: hidden;
}
.hero-bg, .hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 62%;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42, 36, 64, .18), transparent 45%);
}
.hero-card {
  position: relative; max-width: 640px;
  padding: clamp(26px, 4vw, 52px);
}
.eyebrow {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600; opacity: .78; margin-bottom: 16px;
}
h1 {
  font-family: var(--fraunces);
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 1.04; letter-spacing: -.015em;
  margin-bottom: 18px;
}
h1 em { font-style: italic; color: var(--geranio); }
.line { display: block; overflow: hidden; }
.line-inner { display: block; }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65; max-width: 48ch; margin-bottom: 28px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(58px, 9vh, 100px) clamp(20px, 6vw, 80px); }
.manifesto-inner { max-width: 780px; margin: 0 auto; }
.m-line {
  font-family: var(--fraunces); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.35;
  margin-bottom: .5em;
}
.m-line.hl .w { color: var(--ultramar); }
.m-line.strong .w { color: var(--geranio); font-style: normal; }
html.js .m-line .w { opacity: .13; transition: opacity .25s linear; }
html.js .m-line .w.on { opacity: 1; }

/* ---------- glasset ---------- */
.glasset { position: relative; }
.glasset-stage {
  position: relative; height: 100dvh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.glasset-bg, .glasset-blur { position: absolute; inset: 0; }
.glasset-bg img, .glasset-blur img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
}
.glasset-blur img { filter: blur(18px) saturate(125%); transform: scale(1.06); }
.glasset-blur .veil { position: absolute; inset: 0; background: rgba(251, 246, 236, .34); }
.glasset-copy {
  position: absolute; top: clamp(84px, 12vh, 140px); left: 0; right: 0;
  text-align: center; padding: 0 20px; z-index: 3;
  color: var(--tinta);
}
.glasset-copy .kicker { color: var(--tinta); opacity: .7; }
.glasset-copy h2 { text-shadow: 0 1px 22px rgba(251, 246, 236, .8); }
.glasset-chips {
  position: absolute; bottom: clamp(40px, 9vh, 90px); left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; padding: 0 20px;
}
.chip {
  max-width: 420px; padding: 24px 28px; text-align: left;
}
html.js .glasset-chips .chip { position: absolute; bottom: 0; }
.chip h3 {
  font-family: var(--fraunces); font-weight: 600; font-size: 26px; margin-bottom: 6px;
}
.chip p { font-size: 14.5px; font-weight: 400; line-height: 1.55; }
.chip[data-chip="vecino"] h3 { color: var(--geranio); }

html:not(.js) .glasset-stage { height: auto; padding: 90px 20px; flex-direction: column; gap: 20px; }
html:not(.js) .glasset-copy, html:not(.js) .glasset-chips { position: static; }
html:not(.js) .glasset-chips { flex-direction: column; gap: 16px; align-items: center; }
html:not(.js) .glasset-blur { display: none; }

/* ---------- mensajero ---------- */
.mensajero { background: var(--arena); padding: clamp(60px, 9vh, 108px) clamp(20px, 6vw, 80px); }
.mensajero-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.mensajero h2 { margin: 8px 0 24px; }
.mensajero h2 em { font-style: italic; color: var(--geranio); }
.mensajero-body { font-size: clamp(16px, 1.75vw, 20px); line-height: 1.75; font-weight: 300; }
.signatur { margin-top: 22px; font-family: var(--kaushan); font-size: clamp(30px, 4vw, 42px); color: var(--ultramar); }

/* ---------- soylene ---------- */
.soylene { background: var(--marfil); padding: clamp(48px, 7vh, 84px) 0 0; overflow: hidden; }
.soylene-head { padding: 0 clamp(20px, 6vw, 80px); margin-bottom: 30px; }
.soylene-head h2 em { font-style: italic; color: var(--geranio); }
.soylene-sub {
  margin-top: 10px; font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300; color: var(--tinta); opacity: .68; max-width: 46ch;
}
.track {
  display: flex; gap: clamp(16px, 3vw, 36px);
  padding: 0 clamp(20px, 6vw, 80px) clamp(48px, 7vh, 82px);
  width: max-content;
}
.slide {
  position: relative; width: min(84vw, 1150px); flex-shrink: 0;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(42, 36, 64, .18);
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 22px; bottom: 22px;
  max-width: 380px; padding: 20px 26px;
}
.slide .num {
  font-family: var(--fraunces); font-style: italic;
  font-size: 15px; color: var(--violeta); display: block; margin-bottom: 2px;
}
.slide h3 { font-family: var(--fraunces); font-weight: 600; font-size: 26px; margin-bottom: 4px; }
.slide figcaption p { font-size: 14px; font-weight: 400; line-height: 1.55; }

/* ---------- palabras ---------- */
.palabras {
  background: var(--tinta); color: var(--marfil);
  padding: clamp(58px, 9vh, 100px) clamp(20px, 6vw, 80px) 0;
  text-align: center; overflow: hidden;
}
.palabras .kicker { color: var(--limon); }
.pca-sub { max-width: 48ch; margin: 4px auto 24px; font-size: clamp(14px, 1.5vw, 16px); font-weight: 300; line-height: 1.7; opacity: .85; }
.pca-sub em { font-family: var(--fraunces); font-style: italic; color: var(--rosa); }
.lettering { width: min(78vw, 680px); margin: 8px auto 26px; }
html.js .lettering { clip-path: inset(0 100% 0 0); }
.betydning {
  font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7;
  max-width: 52ch; margin: 0 auto; opacity: .92;
}
.betydning em { font-family: var(--fraunces); font-style: italic; color: var(--rosa); }
.marquee { margin-top: clamp(36px, 6vh, 60px); padding: 22px 0; border-top: 1px solid rgba(251, 246, 236, .14); overflow: hidden; }
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--fraunces); font-style: italic;
  font-size: 22px; color: rgba(251, 246, 236, .55);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- bli-med ---------- */
.bli-med {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(60px, 9vh, 104px) clamp(18px, 5vw, 64px);
  overflow: hidden;
}
.bli-med-bg, .bli-med-bg img {
  position: absolute; inset: -6% 0; width: 100%; height: 112%;
  object-fit: cover; object-position: center 58%;
}
.cta-card {
  position: relative; max-width: 560px; width: 100%;
  padding: clamp(30px, 4.5vw, 56px); text-align: center;
}
.cta-title {
  font-size: clamp(44px, 6vw, 72px); font-style: italic; margin-bottom: 14px;
}
.cta-desc { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.65; margin-bottom: 26px; }
.cta-desc em { font-family: var(--fraunces); font-style: italic; color: var(--ultramar); }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cta-form input {
  flex: 1 1 240px; min-width: 0;
  font-family: var(--poppins); font-size: 16px; font-weight: 400;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(42, 36, 64, .22);
  background: rgba(255, 255, 255, .82); color: var(--tinta);
}
.cta-form input::placeholder { color: rgba(42, 36, 64, .45); }
.cta-form.shake { animation: shake .4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.micro { font-size: 12.5px; font-weight: 400; opacity: .68; margin-top: 14px; }
.cta-success { padding: 10px 0 4px; }
.success-title {
  font-family: var(--fraunces); font-style: italic; font-weight: 600;
  font-size: 28px; color: var(--geranio); margin-bottom: 8px;
}
.cta-success p:last-child { font-size: 15px; line-height: 1.6; }

/* ---------- footer ---------- */
.footer {
  background: var(--tinta); color: var(--marfil);
  padding: 64px clamp(20px, 6vw, 80px) 56px;
  display: grid; gap: 14px; justify-items: center; text-align: center;
}
.fira {
  font-family: var(--kaushan);
  font-size: clamp(26px, 3.4vw, 34px);
  background: linear-gradient(100deg, var(--limon), var(--rosa) 45%, var(--turquesa));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-line { font-size: 13.5px; opacity: .7; }
.footer-links { display: flex; gap: 26px; font-size: 14px; font-weight: 400; }
.footer-links a { color: var(--marfil); opacity: .85; text-decoration: none; border-bottom: 1px solid rgba(251, 246, 236, .3); padding-bottom: 1px; }
.footer-links a:hover { opacity: 1; }
.footer-sello { margin-top: 14px; width: 88px; height: auto; opacity: .95; }

/* ---------- móvil ---------- */
@media (max-width: 768px) {
  .nav { top: 10px; padding: 8px 8px 8px 16px; }
  .nav-links { display: none; }
  .nav-brand img { height: 24px; }
  .nav-cta { font-size: 15px; padding: 8px 18px; }
  .hero { align-items: flex-end; }
  .hero-card { max-width: 100%; }
  .track {
    flex-direction: column; width: 100%;
    padding-left: clamp(18px, 5vw, 40px); padding-right: clamp(18px, 5vw, 40px);
  }
  .slide { width: 100%; }
  .slide figcaption { left: 12px; bottom: 12px; right: 12px; padding: 16px 18px; }
  .glasset-chips { padding: 0 14px; }
  .chip { padding: 18px 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  html.js .lettering { clip-path: none; }
  html.js .m-line .w { opacity: 1; }
  .btn, .btn:hover { transition: none; transform: none; }
}
