@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,650;9..144,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6B4FA3;
  --primary-dark: #3E2B69;
  --primary-soft: #EEE7F7;
  --rose: #C25A74;
  --rose-soft: #F8DCE5;
  --gold: #D9845A;
  --cream: #FFF8EF;
  --paper: #FFFFFF;
  --lilac: #F7F2FB;
  --ink: #20172E;
  --muted: #665B78;
  --border: #E6D9F0;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --container: 1120px;
  --nav-height: 78px;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(62, 43, 105, .13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(107,79,163,.06) 1px, transparent 1px),
    linear-gradient(rgba(107,79,163,.06) 1px, transparent 1px),
    var(--cream);
  background-size: 38px 38px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--ink); color: white; padding: .6rem 1rem; z-index: 10000; }
.skip-link:focus { left: 1rem; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,248,239,.88); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(107,79,163,.16); }
.nav-inner { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; display: block; object-fit: contain; background: white; padding: 4px; box-shadow: 7px 7px 0 var(--rose-soft); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .2rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a { display: inline-flex; padding: .55rem .85rem; color: var(--muted); font-size: .94rem; font-weight: 700; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-links .nav-cta { margin-left: .35rem; background: var(--ink); color: white; }
.nav-links .nav-cta:hover { background: var(--primary); color: white; }
.navbar-toggle { display: none; background: transparent; border: 0; flex-direction: column; gap: 5px; padding: .55rem; }
.navbar-toggle span { width: 24px; height: 2px; background: var(--primary-dark); display: block; transition: .2s ease; }
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { display: none; padding: .75rem 20px 1.2rem; background: var(--cream); border-bottom: 1px solid var(--border); }
.mobile-panel.open { display: grid; }
.mobile-panel a { padding: .75rem 0; color: var(--primary-dark); font-weight: 700; border-bottom: 1px solid rgba(107,79,163,.12); }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 4rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 34rem; height: 34rem; right: -12rem; top: -8rem; background: radial-gradient(circle, rgba(194,90,116,.22), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) 480px; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.kicker, .section-label { color: var(--rose); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin-bottom: .9rem; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; }
h1 { font-family: var(--display); font-size: clamp(3.3rem, 8vw, 6.8rem); max-width: 780px; }
.lead { margin-top: 1.4rem; font-size: clamp(1.12rem, 2.1vw, 1.35rem); color: var(--muted); max-width: 690px; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .85rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .85rem 1.25rem; border-radius: 999px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 10px 24px rgba(107,79,163,.22); }
.button-primary:hover { background: var(--primary-dark); }
.button-quiet { background: var(--paper); color: var(--primary-dark); border: 1px solid var(--border); }

.hero-card { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: 36px; padding: 2rem; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-card::after { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(107,79,163,.28); border-radius: 26px; pointer-events: none; }
.math-animation { height: 260px; border-radius: 26px; background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.96), transparent 30%), radial-gradient(circle at 76% 72%, rgba(194,90,116,.18), transparent 34%), linear-gradient(135deg, var(--primary-soft), #fff 42%, rgba(217,132,90,.22)); position: relative; overflow: hidden; margin-bottom: 1.5rem; isolation: isolate; }
.math-animation::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(107,79,163,.08) 1px, transparent 1px), linear-gradient(rgba(107,79,163,.08) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at center, black 45%, transparent 82%); opacity: .62; pointer-events: none; }
.math-animation::after { content: ""; position: absolute; inset: auto 1.2rem 1rem 1.2rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(107,79,163,.28), transparent); pointer-events: none; }
.math-animation canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.math-label { position: absolute; z-index: 2; font-family: var(--display); color: var(--primary-dark); pointer-events: none; text-shadow: 0 2px 16px rgba(255,255,255,.88); }
.math-label-curve { font-size: 2.8rem; left: 1.35rem; top: .75rem; }
.math-label-sum { font-size: 2.7rem; opacity: .16; right: 1.25rem; bottom: .75rem; }
.math-label-point { font-size: 2.25rem; color: var(--gold); right: 2.2rem; top: 1.35rem; opacity: .9; }
.hero-card h2 { font-family: var(--display); font-size: 2.25rem; }
.hero-card p { color: var(--muted); margin: .65rem 0 1.3rem; }
.quick-facts { display: grid; gap: .7rem; }
.quick-facts div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.quick-facts dt { color: var(--muted); font-size: .88rem; }
.quick-facts dd { font-weight: 800; color: var(--primary-dark); }

.intro-band { background: var(--primary-dark); color: white; padding: clamp(1.7rem, 4vw, 2.6rem) 0; }
.intro-highlights { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.intro-band-copy { max-width: 360px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.8vw, 1.18rem); line-height: 1.5; font-weight: 700; }
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.facts-row div { min-height: 150px; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.06); }
.facts-row strong { display: block; font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 2rem); margin: .25rem 0 .45rem; line-height: 1.08; }
.facts-row span { display: block; color: rgba(255,255,255,.75); font-size: .92rem; line-height: 1.45; }
.facts-row .fact-label { color: #F2B7C8; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.soft { background: rgba(247,242,251,.78); border-block: 1px solid rgba(107,79,163,.13); }
.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.section h2 { font-family: var(--display); font-size: clamp(2.1rem, 4.5vw, 4rem); }
.prose { font-size: 1.05rem; color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.note { color: var(--ink) !important; background: var(--rose-soft); border-left: 5px solid var(--rose); padding: 1rem 1.1rem; border-radius: 0 18px 18px 0; font-weight: 700; }
.centered { text-align: center; max-width: 760px; margin-inline: auto; }
.section-heading { margin-bottom: 2.2rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 12px 30px rgba(62,43,105,.07); }
.step-card span { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 900; margin-bottom: 1rem; box-shadow: 6px 6px 0 var(--primary-soft); }
.step-card h3 { font-size: 1.15rem; margin-bottom: .55rem; }
.step-card p { color: var(--muted); font-size: .95rem; }
.notice { margin: 2rem auto 0; max-width: 760px; padding: 1rem 1.2rem; background: var(--cream); border: 1px solid var(--border); border-radius: 18px; color: var(--muted); }
.notice a { color: var(--primary-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.panel { border-radius: 32px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--border); }
.purple-panel { background: var(--primary-dark); color: white; border: 0; }
.purple-panel .section-label { color: #F2B7C8; }
.purple-panel h2, .light-panel h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
.light-panel { background: var(--paper); }
.light-panel p { color: var(--muted); font-size: 1.05rem; }
.check-list { display: grid; gap: .85rem; }
.check-list li { padding-left: 1.8rem; position: relative; font-size: 1.05rem; }
.check-list li::before { content: "✦"; position: absolute; left: 0; color: #F2B7C8; }
.supporters { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.supporters .section-heading { margin-bottom: 1.4rem; }
.supporters .section-heading p:last-child { color: var(--muted); max-width: 670px; }
.supporters-content .button { width: fit-content; }
.supporter-logo-card { min-height: 190px; display: grid; place-items: center; border-radius: 28px; border: 1px solid var(--border); background: rgba(255,255,255,.76); box-shadow: 0 14px 34px rgba(62,43,105,.08); padding: clamp(1.5rem, 4vw, 2.2rem); }
.supporter-logo-card img { display: block; width: min(100%, 230px); height: auto; }

.closing-cta { background: var(--primary-dark); color: white; padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; }
.closing-cta .kicker { color: #F2B7C8; }
.closing-inner { max-width: 680px; margin-inline: auto; }
.closing-inner h2 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.8rem); color: white; margin-bottom: .9rem; }
.closing-inner > p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 2.2rem; font-size: 1.08rem; }
.footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 3rem 0 1.4rem; }
.footer .brand-mark { box-shadow: 7px 7px 0 rgba(255,255,255,.1); }
.footer .brand-copy strong { color: white; }
.footer .brand-copy small { color: rgba(255,255,255,.46); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-inner p { margin-top: 1rem; max-width: 440px; }
.footer-links { display: grid; gap: .55rem; text-align: right; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); margin-top: 2.3rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: rgba(255,255,255,.42); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .navbar-toggle { display: flex; }
  .hero-grid, .two-col, .split-feature { grid-template-columns: 1fr; display: grid; }
  .hero-card { transform: none; max-width: 560px; }
  .intro-highlights, .facts-row, .steps-grid, .logos-line, .supporters { grid-template-columns: 1fr; }
  .intro-band-copy { max-width: 640px; }
  .supporter-logo-card { min-height: 150px; max-width: 420px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-copy small { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(2.75rem, 17vw, 4rem); }
  .hero-actions, .button { width: 100%; }
  .hero-card { padding: 1.2rem; border-radius: 26px; }
  .math-animation { height: 210px; }
  .math-label-curve { font-size: 2.15rem; left: 1rem; }
  .math-label-sum { font-size: 2.1rem; }
  .math-label-point { font-size: 1.95rem; right: 1.55rem; }
  .quick-facts div { display: grid; gap: .2rem; }
  .footer-inner, .footer-bottom { display: grid; text-align: left; }
  .footer-links { text-align: left; }
}

/* ── INTERIOR PAGES ──────────────────────────────────────── */

.page-banner { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.8rem, 4vw, 3rem); }
.page-banner h1 { font-family: var(--display); font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: .9rem; }
.page-banner > .container > p { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 680px; }

/* Activity blocks */
.activity-block { border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); margin-bottom: 1.2rem; }
.activity-head { margin-bottom: 1.2rem; }
.activity-category { color: var(--rose); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; margin-bottom: .5rem; }
.activity-block h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; }
.activity-body p + p { margin-top: .9rem; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.feat-item { background: var(--lilac); border-radius: 16px; padding: 1rem 1.2rem; }
.feat-item strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.feat-item span { color: var(--muted); font-size: .9rem; }
.placeholder { margin-top: 1.2rem; background: var(--cream); border: 1px dashed rgba(107,79,163,.28); border-radius: 16px; padding: 1rem 1.2rem; color: var(--muted); font-size: .92rem; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.event-card { background: var(--lilac); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.event-card-label { color: var(--rose); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; margin-bottom: .45rem; }
.event-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.event-card p { color: var(--muted); font-size: .9rem; }

/* Resources */
.resource-section-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.4rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); letter-spacing: -.025em; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.resource-grid-4 { grid-template-columns: repeat(4, 1fr); }
.resource-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; }
.resource-card-title { font-weight: 800; font-size: 1rem; margin-bottom: .6rem; }
.resource-card > p { color: var(--muted); font-size: .9rem; flex: 1; }
.resource-link { display: inline-block; margin-top: .9rem; color: var(--primary); font-weight: 800; font-size: .9rem; }
.resource-link:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.download-block { display: flex; align-items: flex-start; gap: 1.5rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.download-icon { font-size: 2.5rem; line-height: 1; flex-shrink: 0; padding-top: .25rem; }
.download-title { font-family: var(--display); font-size: 1.65rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.download-desc { color: var(--muted); font-size: .97rem; margin-bottom: 1.2rem; }

/* Madriñas */
.madrinas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.madrina-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.madrina-avatar { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: white; margin-bottom: 1rem; flex-shrink: 0; }
.madrina-card:nth-child(3n+1) .madrina-avatar { background: var(--primary); }
.madrina-card:nth-child(3n+2) .madrina-avatar { background: var(--rose); }
.madrina-card:nth-child(3n+3) .madrina-avatar { background: #3D8B82; }
.madrina-name { font-weight: 800; font-size: 1.05rem; margin-bottom: .2rem; }
.madrina-degree { color: var(--rose); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .7rem; }
.madrina-bio { color: var(--muted); font-size: .92rem; line-height: 1.55; flex: 1; }
.madrina-quote { margin-top: 1rem; padding: .7rem 1rem; background: var(--lilac); border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; color: var(--ink); font-size: .88rem; font-style: italic; }
#madrinas-empty { display: none; text-align: center; color: var(--muted); padding: 3rem 0; }

/* Team stats (quen-somos) */
.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 720px; }
.team-stat { text-align: center; padding: 1.5rem; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.team-stat-num { font-family: var(--display); font-size: 2.6rem; color: var(--primary); display: block; line-height: 1.1; }
.team-stat-label { color: var(--muted); font-size: .9rem; margin-top: .3rem; display: block; }

/* Join banner */
.join-banner { background: var(--primary-dark); color: white; border-radius: 34px; padding: clamp(2rem, 5vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.join-banner h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.03em; }
.join-banner p { color: rgba(255,255,255,.78); max-width: 520px; margin-top: .8rem; }
.button-white { background: white; color: var(--primary-dark); flex-shrink: 0; }
.button-white:hover { background: var(--cream) !important; }

/* Organizations */
.orgs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.org-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.org-card-title { font-family: var(--display); font-size: 1.5rem; margin-bottom: .9rem; letter-spacing: -.02em; }
.org-card > p { color: var(--muted); font-size: .97rem; line-height: 1.6; }
.org-card a { display: inline-block; margin-top: .9rem; color: var(--primary); font-weight: 800; font-size: .9rem; }
.org-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 920px) {
  .feat-grid, .event-grid, .resource-grid, .resource-grid-4, .madrinas-grid, .team-stats, .orgs-grid { grid-template-columns: 1fr 1fr; }
  .join-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .feat-grid, .event-grid, .resource-grid, .resource-grid-4, .madrinas-grid, .team-stats, .orgs-grid { grid-template-columns: 1fr; }
  .download-block { flex-direction: column; }
}

.math-animation {
  width: 100%;
  height: 320px;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(237, 231, 246, 1), transparent 45%),
    linear-gradient(135deg, #FDFBFF, #EDE7F6);
}

.math-animation canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.math-label {
  display: none;
}

.form-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dark-background-link {
  color: rgb(248 220 229);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
