:root {
  --navy: #0a2b5f;
  --navy-deep: #061c40;
  --grey: #747474;
  --ink: #16213a;
  --muted: #5a6475;
  --line: #dde3ec;
  --soft: #f1f4f9;
  --white: #ffffff;
  --accent: #9fb4d6;
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--navy); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
.nav .cta { background: var(--navy); color: var(--white); padding: 9px 18px; border-radius: 999px; }
.nav .cta:hover { background: var(--navy-deep); color: var(--white); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='138.56' viewBox='0 0 80 138.56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='1.2'%3E%3Cpath d='M40 2 L76 22.8 L76 64.4 L40 85.2 L4 64.4 L4 22.8 Z'/%3E%3Cpath d='M0 71.3 L36 92.1 L36 133.7 M44 133.7 L44 92.1 L80 71.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 138.56px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.5) 35%, transparent 65%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.5) 35%, transparent 65%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; margin: 0 0 22px; font-weight: 700; letter-spacing: -0.01em; }
.hero p.lead { font-size: 20px; color: #d5deec; margin: 0 0 34px; max-width: 34em; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 14px 26px; font-size: 16px; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #e8eef8; }
.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,0.45); margin-left: 10px; }
.btn-ghost:hover { border-color: var(--white); }
.pillars { list-style: none; margin: 0; padding: 0 0 0 36px; border-left: 1px solid rgba(255,255,255,0.35); display: grid; gap: 26px; }
.pillars li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.pillars svg { width: 40px; height: 40px; }
.pillars strong { display: block; font-size: 22px; line-height: 1.2; }
.pillars span { color: #c3cfe3; font-size: 16px; }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; margin: 0 0 14px; color: var(--navy); letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; font-size: 18px; color: var(--ink); position: relative; }
.quote::before { content: "“"; position: absolute; top: 6px; left: 16px; font-size: 54px; line-height: 1; color: #c9d4e6; font-family: Georgia, serif; }
.quote p { margin: 0; padding-left: 26px; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--white); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.card p { margin: 0 0 14px; color: var(--muted); }
.card .result { margin: 0; font-weight: 600; color: var(--ink); font-size: 16px; }
.card .result::before { content: "→ "; color: var(--navy); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.dont { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.dont h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); color: var(--navy); line-height: 1.2; }
.dont ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dont li { padding-left: 34px; position: relative; font-size: 18px; }
.dont li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--grey); }
.dont li::after { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 2px; background: var(--grey); transform: rotate(-45deg); }

.start { background: linear-gradient(100deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.start h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.start p { margin: 0; color: #d5deec; font-size: 18px; }
.start .actions { text-align: right; }
.start .mail { display: block; margin-top: 14px; color: #c3cfe3; font-size: 15px; }

/* Cofinanciación */
.cofin { padding: 48px 0; border-top: 1px solid var(--line); }
.cofin .wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.cofin .logos { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.cofin .logos img { height: 52px; width: auto; }
.cofin p { margin: 0; font-size: 14px; color: var(--muted); }
.cofin strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3cfe3; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.site-footer img { height: 34px; width: auto; }
.site-footer a { color: #e2e9f4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { color: var(--navy); font-size: 36px; margin: 0 0 8px; }
.legal h2 { color: var(--navy); font-size: 21px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 72px; }
  .pillars { padding-left: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dont { grid-template-columns: 1fr; gap: 24px; }
  .start { grid-template-columns: 1fr; padding: 40px 28px; }
  .start .actions { text-align: left; }
  .cofin .wrap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav a:not(.cta):not(.lang) { display: none; }
  .nav { gap: 12px; }
  .brand img { height: 32px; }
  section { padding: 64px 0; }
  .quotes, .services, .steps { grid-template-columns: 1fr; }
  .hero p.lead { font-size: 18px; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .cofin .logos img { height: 40px; }
}
