:root {
  --purple: #7810c7;
  --purple-dark: #4d087f;
  --purple-soft: #f5ecfc;
  --gold: #ffdf00;
  --ink: #242424;
  --muted: #66606b;
  --line: #e9e1ef;
  --paper: #ffffff;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(64, 15, 96, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Source Sans 3", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--purple-dark);
  border-radius: .5rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255,255,255,.97);
}

.brand-row {
  min-height: 155px;
  display: grid;
  place-items: center;
  padding: 24px 20px;
}

.brand-row img { width: 239px; }

.nav-shell {
  background: linear-gradient(100deg, #6910a9, var(--purple));
  box-shadow: 0 8px 25px rgba(75,0,123,.14);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 72px;
  padding: .7rem 1.15rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--gold);
  background: rgba(255,255,255,.08);
  border-color: var(--gold);
  outline: 0;
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  font-size: .72rem;
  letter-spacing: -.03em;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-lines, .menu-lines::before, .menu-lines::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
  transition: transform .2s ease;
}
.menu-lines::before { transform: translateY(-7px); }
.menu-lines::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(0) rotate(45deg); background: #fff; }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-2px) rotate(-45deg); background: #fff; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #fff url("../images/fondo-geometrico.png") center / cover no-repeat;
}

.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: 64px;
}

.hero-visual { position: relative; align-self: end; }
.hero-visual img { width: min(100%, 610px); margin-inline: auto; }

.soy-badge {
  position: absolute;
  top: 5%;
  left: 0;
  width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #7013b1, #b30bf0);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(113,16,178,.2);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  transform: rotate(-6deg);
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--purple);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.14; margin-top: 0; }
.hero h1 { max-width: 650px; margin-bottom: 1.5rem; font-size: clamp(2.15rem, 4.2vw, 3.8rem); letter-spacing: -.045em; }

.feature-list { display: grid; gap: .35rem; }
.feature-link {
  display: grid;
  grid-template-columns: 62px 1fr 24px;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem .2rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: transform .2s ease, color .2s ease;
}
.feature-link:hover, .feature-link:focus-visible { color: var(--purple); transform: translateX(5px); outline: 0; }
.feature-number { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: var(--purple); border-radius: 50%; font-weight: 800; }
.feature-link strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.feature-link small { color: var(--muted); }
.feature-arrow { color: var(--purple); font-size: 1.5rem; }

.section { padding-block: clamp(64px, 8vw, 108px); }
.section-soft { background: linear-gradient(135deg, #fbf8fd, #f4eafb); }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: .85rem; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(50,10,70,.06);
}
.card-number { display: inline-flex; margin-bottom: 1rem; color: var(--purple); font-weight: 900; }
.card h3 { margin-bottom: .55rem; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }

.cta {
  color: #fff;
  background: linear-gradient(110deg, rgba(67,5,108,.98), rgba(126,16,199,.94)), url("../images/fondo-oferta.png") center / cover;
}
.cta-inner { min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { max-width: 680px; margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.cta p { margin: 0; color: rgba(255,255,255,.8); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .85rem 1.25rem;
  color: #1d1430;
  background: var(--gold);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.25); outline: 3px solid rgba(255,255,255,.45); }

.page-hero { padding-block: clamp(70px, 9vw, 120px); color: #fff; background: linear-gradient(115deg, #4c087c, #8618ce); }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: 3rem; }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2.45rem, 5vw, 4.8rem); letter-spacing: -.045em; }
.page-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.15rem; }
.page-hero figure { margin: 0; }
.page-hero figure img { max-height: 420px; margin-inline: auto; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(28,0,45,.22)); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; font-size: .9rem; }
.breadcrumb a { color: var(--gold); }

.prose { max-width: 850px; margin-inline: auto; }
.prose > p { color: #4e4853; font-size: 1.08rem; }
.lead { font-size: 1.28rem !important; color: var(--ink) !important; }
.callout { margin: 2rem 0; padding: 1.4rem 1.5rem; background: var(--purple-soft); border-left: 5px solid var(--purple); border-radius: 0 14px 14px 0; }

.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 2.5rem; }
.phase { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.phase strong { display: block; margin-bottom: .4rem; color: var(--purple); font-size: 1.15rem; }

.content-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sticky-aside { position: sticky; top: 24px; }
.sticky-aside img { border-radius: 20px; box-shadow: var(--shadow); }
.aside-note { margin-top: 1rem; padding: 1rem; color: var(--muted); background: var(--purple-soft); border-radius: 12px; font-size: .92rem; }

.accordion { display: grid; gap: .9rem; }
.accordion-item { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  color: var(--ink);
  background: #fff;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.accordion-trigger:hover, .accordion-trigger:focus-visible { color: var(--purple); background: #fcf9fe; outline: 0; }
.accordion-trigger::after { content: "+"; flex: 0 0 auto; color: var(--purple); font-size: 1.6rem; font-weight: 400; }
.accordion-trigger[aria-expanded="true"]::after { content: "−"; }
.accordion-panel { padding: 0 1.3rem 1.3rem; }
.accordion-panel[hidden] { display: none; }
.accordion-panel h3 { margin: 1.3rem 0 .4rem; font-size: 1.08rem; }
.accordion-panel p { margin: .25rem 0 .9rem; color: var(--muted); }
.accordion-panel ul { padding-left: 1.25rem; }

.evaluation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.evaluation-layout img { border-radius: 24px; box-shadow: var(--shadow); }
.steps { margin-top: 2rem; display: grid; gap: .75rem; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; align-items: start; }
.step span { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--purple); border-radius: 50%; font-weight: 800; }
.step strong { display: block; margin-top: .45rem; }

.site-footer { padding: 46px 0; color: rgba(255,255,255,.75); background: #24132f; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-inner img { width: 180px; padding: .65rem; background: #fff; border-radius: 10px; }
.footer-inner p { margin: 0; text-align: right; }
.footer-inner a { color: var(--gold); }

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

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

@media (max-width: 900px) {
  .brand-row { min-height: 125px; }
  .nav-inner { min-height: 62px; justify-content: flex-end; }
  .menu-toggle { display: block; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    background: #59108d;
    box-shadow: 0 18px 30px rgba(34,0,54,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list a { min-height: 58px; padding-inline: max(20px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(255,255,255,.13); }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px 0; }
  .hero-copy { grid-row: 1; }
  .hero-visual { grid-row: 2; max-width: 600px; margin-inline: auto; }
  .soy-badge { width: 130px; font-size: 1.5rem; }
  .cards, .phase-grid { grid-template-columns: 1fr; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero figure img { max-height: 330px; }
  .content-grid { grid-template-columns: 1fr; }
  .sticky-aside { position: static; max-width: 620px; margin-inline: auto; }
  .evaluation-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand-row { min-height: 112px; padding: 18px; }
  .brand-row img { width: 205px; }
  .hero-grid { gap: 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .feature-link { grid-template-columns: 50px 1fr 18px; gap: .75rem; }
  .feature-number { width: 48px; height: 48px; }
  .soy-badge { width: 108px; font-size: 1.25rem; }
  .cta-inner { min-height: 340px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .page-hero { padding-block: 58px; }
  .page-hero h1 { font-size: 2.6rem; }
  .section { padding-block: 58px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner p { text-align: left; }
}
