@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces-Display-v16.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Regular-v15.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Kaushan Script';
  src: url('/fonts/KaushanScript-v15.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --marfil: #fbf6ec;
  --arena: #ead9b7;
  --rosa: #f2c9c4;
  --lila: #cdbfe3;
  --turquesa: #2e928c;
  --ultramar: #2858a5;
  --violeta: #5e4d92;
  --geranio: #b8322d;
  --limon: #f4d35e;
  --tinta: #2a2440;
  --tinta-suave: #746e7d;
  --blanco: #fffdf8;
  --fraunces: 'Fraunces', Georgia, serif;
  --poppins: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --kaushan: 'Kaushan Script', 'Fraunces', cursive;
  --shadow: 0 18px 60px rgba(42, 36, 64, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-width: 320px;
  font-family: var(--poppins);
  font-weight: 400;
  color: var(--tinta);
  background: var(--marfil);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: weight style;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

.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;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 300;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--marfil);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.glass {
  background: rgba(255, 253, 248, .78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .75);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255, 253, 248, .94); }
}

.kicker {
  margin-bottom: 14px;
  color: var(--violeta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .21em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
h2 {
  font-family: var(--fraunces);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -.018em;
}
.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.75;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--geranio);
  box-shadow: 0 8px 26px rgba(184, 50, 45, .32), inset 0 1px 0 rgba(255, 255, 255, .32);
  color: #fff;
  cursor: pointer;
  font-family: var(--poppins);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); background: #a72c28; }
.btn-ghost {
  padding-bottom: 3px;
  border-bottom: 2px solid rgba(42, 36, 64, .4);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--ultramar);
  outline-offset: 4px;
}

/* Navegación */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(94vw, 1120px);
  padding: 9px 11px 9px 18px;
  border-radius: 999px;
  translate: -50% 0;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.nav.scrolled { background: rgba(255, 253, 248, .93); box-shadow: 0 14px 42px rgba(42, 36, 64, .23); }
.nav-brand { flex: 0 0 auto; text-decoration: none; }
.nav-brand img { width: auto; height: 36px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 28px); margin: 0 22px; }
.nav-links a {
  color: var(--tinta);
  font-size: 13px;
  font-weight: 500;
  opacity: .76;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-secondary { display: none; }
.nav-cta {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--geranio);
  box-shadow: 0 6px 18px rgba(184, 50, 45, .3);
  color: #fff;
  font-family: var(--fraunces);
  font-size: 16px;
  font-style: italic;
  font-weight: 650;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 104px clamp(18px, 5vw, 68px) clamp(46px, 8vh, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg, .hero-bg picture, .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: center 62%; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(42, 36, 64, .04) 38%, rgba(42, 36, 64, .26) 100%);
  pointer-events: none;
}
.hero-card {
  position: relative;
  width: min(100%, 625px);
  padding: clamp(26px, 3.4vw, 46px);
}
.eyebrow {
  margin-bottom: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .23em;
  line-height: 1.5;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 18px;
  font-family: var(--fraunces);
  font-size: clamp(36px, 4.35vw, 56px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.024em;
}
h1 em { color: var(--geranio); font-style: italic; }
.line, .line-inner { display: block; }
.hero-sub {
  max-width: 46ch;
  text-wrap: balance;
  margin-bottom: 12px;
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.65;
}
.hero-note { margin-bottom: 26px; color: var(--ultramar); font-family: var(--fraunces); font-size: 18px; font-style: italic; font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Manifiesto */
.manifesto { padding: clamp(72px, 11vh, 124px) clamp(20px, 6vw, 80px); }
.manifesto-inner { max-width: 850px; margin: 0 auto; }
.m-line {
  margin-bottom: .52em;
  color: var(--tinta-suave);
  font-family: var(--fraunces);
  font-size: clamp(25px, 3.45vw, 42px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}
.m-line .w { color: var(--tinta-suave); transition: color .2s linear; }
.m-line .w.on { color: var(--tinta); }
.m-line.hl .w.on { color: var(--ultramar); }
.m-line.strong .w.on { color: var(--geranio); font-style: normal; }

/* El cristal que se disuelve */
.glasset { position: relative; }
.glasset-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
.glasset-bg, .glasset-bg picture, .glasset-bg img, .glasset-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.glasset-bg img, .glasset-blur img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.glasset-blur img { filter: blur(16px) saturate(120%); transform: scale(1.09); }
.glasset-blur .veil { position: absolute; inset: 0; background: rgba(251, 246, 236, .38); }
.glasset-stage::before, .glasset-stage::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}
.glasset-stage::before {
  top: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(251, 246, 236, .66) 0%, rgba(251, 246, 236, .36) 46%, rgba(251, 246, 236, 0) 100%);
}
.glasset-stage::after {
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(251, 246, 236, .52) 0%, rgba(251, 246, 236, .26) 52%, rgba(251, 246, 236, 0) 100%);
}
.glasset-copy {
  position: absolute;
  top: clamp(90px, 13vh, 144px);
  left: 50%;
  z-index: 3;
  width: min(92vw, 760px);
  text-align: center;
  translate: -50% 0;
}
.glasset-copy .kicker { color: var(--tinta); }
.glasset-copy h2 { text-shadow: 0 2px 20px rgba(251, 246, 236, .96); }
.glasset-chips {
  position: absolute;
  right: 0;
  bottom: clamp(38px, 8vh, 84px);
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0 18px;
}
.chip { width: min(92vw, 430px); padding: 23px 27px; }
.js .glasset-chips .chip { position: absolute; bottom: 0; }
.chip h3 { margin-bottom: 6px; font-family: var(--fraunces); font-size: 27px; font-weight: 650; }
.chip p { font-size: 15px; line-height: 1.58; }
.chip[data-chip="vecino"] h3 { color: var(--geranio); }
.no-js .glasset-stage { height: auto; padding: 100px 20px; flex-direction: column; gap: 24px; }
.no-js .glasset-copy, .no-js .glasset-chips { position: static; translate: none; }
.no-js .glasset-chips { flex-direction: column; align-items: center; gap: 16px; }
.no-js .glasset-blur { display: none; }

/* Josep */
.mensajero { padding: clamp(72px, 10vh, 116px) clamp(20px, 6vw, 80px); background: var(--arena); }
.mensajero-inner {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 680px);
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
}
.portrait-wrap { position: relative; padding: 14px; }
.portrait-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(42, 36, 64, .18);
  border-radius: 52% 48% 45% 55% / 48% 44% 56% 52%;
  transform: rotate(-3deg);
}
.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 49% 51% 54% 46% / 52% 46% 54% 48%;
  box-shadow: 0 22px 58px rgba(42, 36, 64, .24);
  filter: sepia(.05) contrast(1.02);
  object-fit: cover;
}
.mensajero h2 { margin: 4px 0 24px; }
.mensajero h2 em { color: var(--geranio); font-style: italic; }
.mensajero-body { margin-top: 14px; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.76; }
.signatur { margin-top: 20px; color: var(--ultramar); font-family: var(--kaushan); font-size: clamp(32px, 4vw, 44px); }

/* La Terraza */
.terrassen { padding: clamp(72px, 10vh, 116px) clamp(18px, 5vw, 70px); background: var(--marfil); }
.section-head { max-width: 860px; margin: 0 auto 40px; text-align: center; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 34px); max-width: 1320px; margin: 0 auto; }
.content-card { overflow: hidden; border: 1px solid rgba(42, 36, 64, .09); border-radius: 28px; background: var(--blanco); box-shadow: 0 16px 44px rgba(42, 36, 64, .12); }
.content-card picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.content-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.content-card-copy { padding: 24px 25px 28px; }
.content-card .num { display: block; margin-bottom: 3px; color: var(--violeta); font-family: var(--fraunces); font-size: 15px; font-style: italic; }
.content-card h3 { margin-bottom: 7px; font-family: var(--fraunces); font-size: 25px; font-weight: 650; }
.content-card p { font-size: 14.5px; line-height: 1.65; }
@media (hover: hover) {
  .content-card:hover img { transform: scale(1.035); }
}

/* Palabras con Alma */
.palabras { padding: clamp(72px, 10vh, 112px) clamp(20px, 6vw, 80px) 0; overflow: hidden; background: var(--tinta); color: var(--marfil); text-align: center; }
.palabras .kicker { color: var(--limon); }
.pca-sub { max-width: 54ch; margin: 4px auto 20px; font-size: clamp(15px, 1.55vw, 17px); line-height: 1.75; }
.pca-sub em, .betydning em { color: var(--rosa); font-family: var(--fraunces); font-style: italic; }
.lettering { width: min(78vw, 680px); margin: 2px auto 22px; }
.betydning { max-width: 55ch; margin: 0 auto; font-size: clamp(16px, 1.65vw, 18px); line-height: 1.75; }
.marquee { margin-top: clamp(40px, 6vh, 64px); padding: 21px 0; border-top: 1px solid rgba(251, 246, 236, .16); overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 54px; color: rgba(251, 246, 236, .72); font-family: var(--fraunces); font-size: 22px; font-style: italic; white-space: nowrap; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* El Camino en la home */
.camino-home { padding: clamp(78px, 11vh, 124px) clamp(20px, 6vw, 80px); background: linear-gradient(135deg, #f3e2c8 0%, #f7eee1 52%, #e8ddf2 100%); }
.camino-home-inner { display: grid; grid-template-columns: minmax(220px, 410px) minmax(0, 610px); gap: clamp(44px, 8vw, 112px); align-items: center; justify-content: center; max-width: 1120px; margin: 0 auto; }
.camino-home-visual { perspective: 1200px; }
.camino-home-visual img { width: min(100%, 390px); margin: 0 auto; border-radius: 5px; box-shadow: 0 28px 70px rgba(42, 36, 64, .28); transform: rotate(-2deg); }
.camino-home-copy > p:not(.kicker) { max-width: 55ch; margin-top: 18px; font-size: 17px; line-height: 1.72; }
.compact-list { margin: 24px 0 30px; list-style: none; }
.compact-list li { position: relative; margin: 10px 0; padding-left: 24px; line-height: 1.55; }
.compact-list li::before { content: '·'; position: absolute; left: 5px; top: -.05em; color: var(--geranio); font-size: 24px; font-weight: 700; }

/* Captación */
.bli-med { position: relative; display: flex; align-items: center; justify-content: center; min-height: 92svh; padding: clamp(72px, 10vh, 112px) clamp(18px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.bli-med-bg, .bli-med-bg picture, .bli-med-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bli-med-bg { z-index: -2; }
.bli-med-bg img { object-fit: cover; object-position: center 58%; }
.bli-med::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(42, 36, 64, .12); }
.cta-card { width: min(100%, 545px); padding: clamp(28px, 3.6vw, 44px); text-align: center; }
.cta-title { margin-bottom: 14px; font-size: clamp(36px, 4.6vw, 56px); font-style: italic; }
.cta-card .btn { min-height: 46px; padding: 11px 22px; font-size: 14.5px; }
.cta-card .cta-form input[type="email"] { font-size: 15px; }
.cta-desc { max-width: 44ch; margin: 0 auto 24px; font-size: clamp(15px, 1.55vw, 17px); line-height: 1.72; }
.cta-form { display: flex; gap: 9px; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.cta-form input[type="email"] { flex: 1 1 190px; min-width: 0; min-height: 46px; padding: 11px 18px; font-size: 15px; border: 1px solid rgba(42, 36, 64, .26); border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--tinta); font-size: 16px; }
.cta-form input::placeholder { color: #6c6675; opacity: 1; }
.cta-form.shake { animation: shake .36s ease; }
@keyframes shake { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.form-error { margin-top: 11px; color: #7f1f1b; font-size: 13px; font-weight: 600; }
.micro { margin-top: 14px; font-size: 12.5px; line-height: 1.6; }
.micro a { font-weight: 600; }
.cta-success { padding: 8px 0 3px; }
.success-title { margin-bottom: 6px; color: var(--geranio); font-family: var(--fraunces); font-size: 29px; font-style: italic; font-weight: 650; }
.cta-success p:last-child { font-size: 15px; line-height: 1.65; }

/* Footer y páginas legales */
.footer { display: grid; gap: 14px; justify-items: center; padding: 64px clamp(20px, 6vw, 80px) 54px; background: var(--tinta); color: var(--marfil); text-align: center; }
.fira { background: linear-gradient(100deg, var(--limon), var(--rosa) 45%, var(--turquesa)); background-clip: text; color: transparent; font-family: var(--kaushan); font-size: clamp(27px, 3.4vw, 36px); }
.footer-line { font-size: 13.5px; opacity: .78; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; font-size: 14px; }
.footer-links a { padding-bottom: 1px; border-bottom: 1px solid rgba(251, 246, 236, .32); color: var(--marfil); opacity: .86; text-decoration: none; }
.footer-links a:hover { opacity: 1; }
.footer-mark { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.footer-sello { width: 76px; height: auto; }
.footer-mark .social { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(251, 246, 236, .34); color: var(--marfil); opacity: .8; transition: opacity .2s ease, border-color .2s ease; }
.footer-mark .social:hover { opacity: 1; border-color: var(--limon); }
.legal { min-height: 100vh; padding: 132px 24px 80px; }
.legal-inner { max-width: 740px; margin: 0 auto; }
.legal h1 { margin-bottom: 28px; font-size: clamp(42px, 7vw, 72px); }
.legal h2 { margin: 42px 0 12px; font-size: 29px; }
.legal p, .legal li { font-size: 16px; line-height: 1.78; }
.legal ul { padding-left: 24px; }
.legal a { color: var(--ultramar); }
.back-link { margin-top: 26px; }
.motion-reduced .glasset-stage { height: auto; min-height: 0; padding: 110px 20px 80px; flex-direction: column; gap: 28px; }
.motion-reduced .glasset-copy, .motion-reduced .glasset-chips { position: static; translate: none; }
.motion-reduced .glasset-chips { flex-direction: column; align-items: center; gap: 14px; }
.motion-reduced .glasset-chips .chip { position: static; }
.motion-reduced .glasset-blur { display: none; }

@media (max-width: 980px) {
  .nav-links { gap: 15px; }
  .content-grid { grid-template-columns: 1fr; max-width: 720px; }
  .content-card { display: grid; grid-template-columns: minmax(220px, .9fr) 1fr; align-items: stretch; }
  .content-card picture { aspect-ratio: auto; }
  .mensajero-inner { grid-template-columns: minmax(140px, 190px) 1fr; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 78px; }
  .nav { top: 10px; padding: 8px 8px 8px 14px; }
  .nav-links { display: none; }
  .nav-secondary { display: inline-block; margin-left: auto; margin-right: 12px; font-size: 12.5px; font-weight: 500; text-decoration: none; }
  .nav-brand img { height: 23px; }
  .nav-cta { padding: 8px 16px; font-size: 14.5px; }
  .hero { min-height: 100svh; padding-right: 14px; padding-left: 14px; }
  .hero-card { padding: 27px 23px 29px; }
  .hero-bg img { object-position: center center; }
  .hero-actions { gap: 16px; }
  .btn { min-height: 50px; padding: 12px 23px; }
  .glasset-stage { min-height: 600px; }
  .glasset-copy { top: 90px; }
  .glasset-chips { bottom: 44px; }
  .mensajero-inner, .camino-home-inner { grid-template-columns: 1fr; }
  .portrait-wrap { width: min(46vw, 200px); margin: 0 auto; }
  .mensajero-copy { text-align: center; }
  .content-card { display: block; }
  .content-card picture { aspect-ratio: 4 / 3; }
  .camino-home-visual img { width: min(72vw, 360px); }
  .camino-home-copy { text-align: center; }
  .compact-list { display: inline-block; text-align: left; }
}

@media (max-width: 520px) {
  .nav-secondary { display: none; }
  .hero { padding-bottom: 28px; }
  .hero-card { border-radius: 23px; }
  h1 { font-size: clamp(35px, 11.3vw, 48px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .cta-form { flex-direction: column; }
  .cta-form input[type="email"] { flex-basis: auto; width: 100%; }
  .cta-form .btn { width: 100%; }
  .chip { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
  .m-line .w, .m-line .w.on { color: var(--tinta); }
}
