﻿:root {
  --blue: #0052cc;
  --blue-dark: #003d99;
  --sky: #dcecff;
  --paper: #f4f6f8;
  --white: #ffffff;
  --ink: #10233f;
  --muted: #65758b;
  --line: rgba(16, 35, 63, .14);
  --max: 1240px;
  --header-offset: calc(5rem + env(safe-area-inset-top, 0px));
  --section-gap: clamp(0.5rem, 1.8vh, 1.25rem);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
main {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 124px 0; }
.section-label { margin: 0 0 24px; color: var(--blue); font: 800 10px/1 "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.section-label.light { color: #9dc9ff; }
.section h2, .topics h2, .participate h2, .closing h2 { margin: 0; font: 700 clamp(40px, 4.8vw, 68px)/1.04 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.section h2 span, .topics h2 span, .closing h2 span { color: var(--blue); font-weight: 500; }
.inline-link { display: inline-flex; align-items: center; gap: 15px; margin-top: 28px; padding-bottom: 5px; border-bottom: 2px solid var(--blue); color: var(--blue); font-size: 12px; font-weight: 800; }

.site-header { position: relative; z-index: 20; width: min(var(--max), calc(100% - 48px)); min-height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 66px; height: 52px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.brand span { color: var(--muted); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; }
.brand strong { color: var(--ink); font-size: 10px; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 700; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--blue); transition: right .25s ease; }
.site-nav > a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { display: inline-flex; gap: 14px; padding: 14px 18px; color: var(--white); background: var(--blue); }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; cursor: pointer; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--blue); }
.hero-bg span { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.hero-bg span:nth-child(1) { width: 560px; height: 560px; left: -210px; top: -260px; }
.hero-bg span:nth-child(2) { width: 330px; height: 330px; left: 29%; bottom: -250px; }
.hero-bg span:nth-child(3) { width: 96px; height: 96px; left: 46%; top: 50px; background: rgba(255,255,255,.06); }
.hero-inner { position: relative; width: min(var(--max), calc(100% - 48px)); min-height: 710px; margin: 0 auto; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(40px, 7vw, 90px); align-items: center; padding: 72px 0 84px; }
.hero-label { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
.hero-label span { color: #73b0ff; }
h1 { max-width: 760px; margin: 0; font: 700 clamp(54px, 6.2vw, 88px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
h1 em { color: #9dc9ff; font-style: normal; }
.hero-lead { max-width: 590px; margin: 30px 0 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; border: 1px solid transparent; font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-white { color: var(--blue); background: var(--white); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-motto { margin: 48px 0 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; }
.hero-image { position: relative; margin: 0; height: 580px; overflow: hidden; border-radius: 2px; box-shadow: 22px 24px 0 rgba(0,25,76,.35); }
.hero-image img { height: 100%; object-fit: cover; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,25,70,.7)); }
.hero-image figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.hero-image figcaption strong { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }

.ticker { overflow: hidden; color: var(--blue); background: var(--white); border-bottom: 1px solid var(--line); }
.ticker > div { width: max-content; min-width: 100%; display: flex; align-items: center; justify-content: space-around; gap: 34px; padding: 20px 28px; }
.ticker span { font: 700 11px/1 "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .15em; white-space: nowrap; }
.ticker i { color: #8bbcff; font-style: normal; }

.about { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(60px, 9vw, 130px); align-items: center; }
.about-copy h2 { margin-bottom: 30px; }
.about-lead { margin: 0 0 22px; color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.6; }
.about-copy > p:not(.section-label):not(.about-lead) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-image { position: relative; height: 680px; margin: 0; }
.about-image::before { content: ""; position: absolute; left: -18px; top: 24px; bottom: -18px; width: 48%; z-index: -1; background: var(--sky); }
.about-image img { height: 100%; object-fit: cover; }
.about-image figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 26px; color: #fff; background: linear-gradient(transparent, rgba(0,31,84,.85)); }
.about-image figcaption span { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.about-image figcaption strong { font-size: 15px; }

.what { width: 100%; max-width: none; padding-inline: max(24px, calc((100vw - var(--max)) / 2)); background: #fff; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: 58px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.what-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.what-card { position: relative; min-height: 420px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.what-number { color: var(--blue); font: 800 10px/1 "Space Grotesk", sans-serif; }
.what-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: auto 0 48px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 30px; }
.what-card h3 { margin: 0 0 14px; font: 700 21px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.what-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.feature-card { padding: 0; color: #fff; background: var(--blue); }
.feature-card .what-number { position: absolute; z-index: 2; left: 24px; top: 24px; color: #fff; }
.feature-image { height: 58%; overflow: hidden; }
.feature-image img { height: 100%; object-fit: cover; }
.feature-copy { padding: 25px; }
.feature-card p { color: rgba(255,255,255,.75); }

.topics { position: relative; padding: 120px 24px; color: #fff; background: var(--blue); overflow: hidden; }
.topics::after { content: "PPF"; position: absolute; right: -32px; bottom: -90px; color: rgba(255,255,255,.06); font: 700 310px/1 "Space Grotesk", sans-serif; letter-spacing: -.1em; }
.topics-inner { position: relative; z-index: 1; width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.topics h2 span { color: #9dc9ff; }
.topics-copy > p:last-child { max-width: 580px; margin: 28px 0 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }
.topic-list { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-list span { padding: 15px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 12px; font-weight: 700; }

.content-heading { margin-bottom: 36px; }
.content-filters { display: flex; gap: 8px; margin-bottom: 34px; }
.content-filters button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font: 700 11px/1 "Manrope", sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.content-filters button.is-active { color: #fff; background: var(--blue); border-color: var(--blue); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-card { overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(11,53,110,.1); }
.content-card.is-hidden { display: none; }
.content-visual { position: relative; height: 280px; overflow: hidden; background: var(--sky); }
.content-visual img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.content-card:hover .content-visual img { transform: scale(1.035); }
.content-visual > span { position: absolute; left: 16px; top: 16px; padding: 7px 9px; color: #fff; background: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.content-visual b { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--blue); background: #fff; transform: translate(-50%, -50%); font-size: 18px; }
.document-visual img { filter: saturate(.65); }
.content-card-copy { padding: 26px; }
.content-card-copy > p { margin: 0 0 13px; color: var(--blue); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.content-card-copy h3 { margin: 0 0 13px; font: 700 22px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.035em; }
.content-card-copy > span { display: block; min-height: 66px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.content-card-copy strong { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--blue); font-size: 11px; }
.content-card-copy i { font-style: normal; }
.sample-note { margin: 20px 0 0; color: var(--muted); font-size: 10px; text-align: right; }

.participate { min-height: 660px; display: grid; grid-template-columns: 1fr 1fr; color: #fff; background: var(--blue-dark); }
.participate-image { min-height: 600px; }
.participate-image img { height: 100%; object-fit: cover; }
.participate-copy { align-self: center; max-width: 650px; padding: 70px clamp(40px, 7vw, 110px); }
.participate h2 { font-size: clamp(42px, 5vw, 70px); }
.participate-copy > p:not(.section-label) { margin: 28px 0 34px; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.75; }

.steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(70px, 10vw, 150px); }
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps-list li { display: grid; grid-template-columns: 56px 1fr; gap: 25px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.steps-list li > span { color: var(--blue); font: 800 10px/1.5 "Space Grotesk", sans-serif; }
.steps-list strong { font: 700 20px/1.2 "Space Grotesk", sans-serif; }
.steps-list p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.faq { width: 100%; max-width: none; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 150px); padding-inline: max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: #0b2349; }
.faq h2 span { color: #9dc9ff; }
.light-link { color: #fff; border-color: #76afff; }
.faq-list { border-top: 1px solid rgba(255,255,255,.18); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.18); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; font: 700 17px/1.3 "Space Grotesk", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: #8bbcff; font-size: 25px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: -8px 50px 26px 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.7; }

.closing { position: relative; min-height: 630px; display: grid; place-items: center; padding: 80px 24px; color: #fff; background: var(--blue); text-align: center; overflow: hidden; }
.closing-circles span { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.closing-circles span:first-child { width: 560px; height: 560px; left: -260px; top: -230px; }
.closing-circles span:last-child { width: 470px; height: 470px; right: -190px; bottom: -240px; }
.closing-content { position: relative; z-index: 1; width: min(900px, 100%); }
.closing-content > img { width: 110px; height: 88px; object-fit: cover; margin: 0 auto 28px; border-radius: 6px; mix-blend-mode: screen; }
.closing h2 { font-size: clamp(52px, 7vw, 96px); text-transform: uppercase; }
.closing h2 span { color: #9dc9ff; }
.closing-content > p:not(.section-label) { margin: 24px auto 34px; color: rgba(255,255,255,.75); font-size: 16px; }

/* Footer */
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 50px; padding: 58px max(24px, calc((100vw - var(--max)) / 2)) 28px; background: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 65px; height: 50px; object-fit: cover; mix-blend-mode: multiply; }
.footer-brand span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.footer-brand strong { color: var(--ink); }
.footer-links { display: flex; gap: 26px; color: var(--muted); font-size: 11px; font-weight: 700; }
.footer-links a:hover { color: var(--blue); }
.footer-contact { justify-self: end; display: grid; gap: 5px; text-align: right; }
.footer-contact small { color: var(--muted); font-size: 9px; }
.footer-contact a { color: var(--blue); font-weight: 800; }
.footer > p { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: #97a1af; font-size: 9px; text-align: center; }

/* Crédito DpEstudio (Regla 02) */
.footer-credit {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}
.footer-credit a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color .2s ease;
}
.footer-credit a:hover {
  color: var(--blue);
}

/* Botón WhatsApp Flotante (Regla 07 + MOB-007) */
.whatsapp-float {
  position: fixed;
  z-index: 1500;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}
.whatsapp-float:hover {
  transform: translateZ(0) translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}
.whatsapp-float:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.whatsapp-float-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.whatsapp-float-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.whatsapp-float-text strong {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.whatsapp-float-text small {
  font-size: 8.5px;
  font-weight: 500;
  opacity: 0.9;
}

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

@media (max-width: 900px) {
  .site-header { width: calc(100% - 32px); min-height: 78px; }
  .menu-toggle { display: grid; gap: 6px; }
  .menu-toggle span { width: 25px; height: 2px; background: var(--blue); }
  .site-nav { position: absolute; left: -16px; right: -16px; top: 78px; display: none; align-items: stretch; padding: 22px; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: grid; }
  .hero-inner { width: calc(100% - 32px); grid-template-columns: 1fr; padding: 64px 0 78px; }
  .hero-image { height: min(650px, 78vh); }
  .section { width: calc(100% - 32px); padding: 88px 0; }
  .about, .section-heading, .topics-inner, .steps, .faq { grid-template-columns: 1fr; gap: 42px; }
  .what, .faq { width: 100%; padding-inline: 16px; }
  .about-image { height: 590px; }
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .topics { padding: 90px 16px; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .content-card:last-child { grid-column: 1 / -1; }
  .participate { grid-template-columns: 1fr; }
  .participate-image { min-height: 520px; }
  .participate-copy { padding: 80px 32px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
  .footer-contact { grid-row: 1; grid-column: 2; }
  .footer > p { grid-row: 3; }
}

@media (max-width: 560px) {
  .brand img { width: 55px; height: 44px; }
  .brand span { display: none; }
  h1 { font-size: clamp(47px, 14vw, 66px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-image { height: 510px; box-shadow: 10px 12px 0 rgba(0,25,76,.35); }
  .about-image { height: 510px; }
  .what-grid { grid-template-columns: 1fr; }
  .what-card { min-height: 340px; }
  .feature-card { min-height: 470px; }
  .content-filters { overflow-x: auto; padding-bottom: 5px; }
  .content-filters button { white-space: nowrap; }
  .content-grid { grid-template-columns: 1fr; }
  .content-card:last-child { grid-column: auto; }
  .participate-image { min-height: 450px; }
  .steps-list li { grid-template-columns: 44px 1fr; }
  .closing { min-height: 670px; }
  .footer { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
  .footer-contact { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  .footer > p { grid-row: auto; }
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, calc(18px + env(safe-area-inset-bottom, 0px)));
    padding: 12px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    justify-content: center;
  }
  .whatsapp-float-icon-wrap {
    width: 100%;
    height: 100%;
    background: transparent;
  }
  .whatsapp-float-icon {
    width: 28px;
    height: 28px;
  }
  .whatsapp-float-text { display: none; }
}

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