:root {
  --purple: #633b94;
  --purple-dark: #432265;
  --pink: #ec4f93;
  --pink-soft: #fff0f7;
  --lime: #b8dc2f;
  --yellow: #ffd85a;
  --turquoise: #11b9c6;
  --turquoise-soft: #e6fbfc;
  --ink: #2b2334;
  --muted: #6c6472;
  --paper: #fffdf8;
  --line: #eadfea;
  --shadow: 0 18px 50px rgba(67, 34, 101, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(234, 223, 234, 0.8);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--purple-dark); font-size: clamp(0.98rem, 2vw, 1.15rem); }
.brand strong { color: var(--pink); }
.brand-mark { position: relative; display: inline-block; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 216, 90, 0.25); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 42px; height: 3px; border-radius: 9px; background: var(--pink); transform: translate(-50%, -50%) rotate(45deg); }
.brand-mark::after { transform: translate(-50%, -50%) rotate(-45deg); }
.brand-mark span { position: absolute; z-index: 1; inset: 8px; border-radius: 50%; background: var(--yellow); }
.header-name, .text-button { border: 0; color: var(--purple); background: transparent; cursor: pointer; font-weight: 750; }
.header-name { padding: 0.5rem 0; font-size: 0.9rem; }
.header-name:hover, .text-button:hover { color: var(--pink); }

main { overflow: hidden; }
.welcome-shell { display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: min(680px, calc(100vh - 68px)); background: var(--lime); }
.welcome-art { position: relative; min-height: 430px; overflow: hidden; background: linear-gradient(155deg, #b9df24 0%, #d5ec37 50%, #93c72a 100%); }
.welcome-art::after { content: ""; position: absolute; inset: 0; opacity: 0.15; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 15px 15px; }
.sun { position: absolute; left: 19%; top: 18%; width: 190px; height: 190px; border: 26px solid var(--yellow); border-radius: 50%; box-shadow: 0 0 0 16px rgba(255, 216, 90, 0.18); }
.sun::before, .sun::after { content: ""; position: absolute; left: 50%; top: 50%; width: 260px; height: 14px; border-radius: 20px; background: var(--yellow); transform: translate(-50%, -50%) rotate(45deg); }
.sun::after { transform: translate(-50%, -50%) rotate(-45deg); }
.wave { position: absolute; left: -15%; width: 135%; height: 180px; border-radius: 50% 50% 0 0; transform: rotate(-7deg); }
.wave-one { bottom: -65px; background: var(--pink); }
.wave-two { bottom: -115px; background: var(--purple); }
.sticker { position: absolute; z-index: 2; display: grid; place-items: center; border: 4px solid var(--purple-dark); color: var(--purple-dark); font-weight: 900; transform: rotate(-8deg); }
.sticker-one { right: 16%; top: 24%; width: 94px; height: 94px; border-radius: 50%; background: var(--pink); font-size: 1.35rem; }
.sticker-two { right: 12%; bottom: 17%; padding: 0.6rem 0.85rem; background: var(--yellow); border-radius: 8px; transform: rotate(8deg); }
.welcome-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 7vw, 6rem); background: var(--pink); color: white; }
.eyebrow { margin: 0 0 0.7rem; color: var(--turquoise); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; }
.welcome-copy .eyebrow { color: var(--purple-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.03em; }
h1 { max-width: 720px; margin-bottom: 1rem; font-size: clamp(2.55rem, 7vw, 5.7rem); line-height: 0.96; }
h2 { margin-bottom: 0.85rem; color: var(--purple-dark); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; }
h3 { color: var(--purple-dark); font-size: 1.2rem; line-height: 1.12; }
.lead, .hero-lead { max-width: 580px; margin-bottom: 2rem; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.55; }
.name-form { max-width: 530px; padding: 1rem; border-radius: 18px; color: var(--ink); background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); }
.name-form label { display: block; margin-bottom: 0.55rem; font-weight: 800; }
.input-row { display: flex; gap: 0.6rem; }
input { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 2px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); background: white; }
input:focus { border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(17, 185, 198, 0.16); }
.name-form small { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.78rem; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.1rem; border: 0; border-radius: 11px; cursor: pointer; font-weight: 850; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.primary-button { color: white; background: var(--purple); box-shadow: 0 8px 16px rgba(67, 34, 101, 0.2); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(67, 34, 101, 0.22); }

#personalizedContent { background: var(--paper); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 610px; padding: clamp(3.5rem, 8vw, 8rem) clamp(1.2rem, 7vw, 7rem); background: linear-gradient(135deg, var(--purple-dark), var(--purple)); color: white; }
.hero h1 { color: white; max-width: 760px; }
.hero .eyebrow { color: var(--yellow); }
.hero-lead { max-width: 640px; color: #f5edf8; }
.hero-button { background: var(--turquoise); color: #073b40; }
.hero-badge { flex: 0 0 min(270px, 30vw); display: flex; flex-direction: column; gap: 0.55rem; padding: 1.6rem; border: 2px solid rgba(255,255,255,0.3); border-radius: 24px; color: white; transform: rotate(5deg); }
.hero-badge strong { font-size: 1.3rem; line-height: 1.1; }
.hero-badge span:last-child { color: #e8d8f1; font-size: 0.9rem; }
.badge-sun, .share-sun { display: block; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 9px rgba(255,216,90,0.18); }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 2rem); }
.section-heading { max-width: 760px; margin-bottom: 2.4rem; }
.section-heading > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.07rem; line-height: 1.65; }
.compact-heading { margin-bottom: 1.8rem; }
.fact-grid, .rights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact-card, .right-card, .calculator-card, .myth-card { border-radius: 20px; box-shadow: var(--shadow); }
.fact-card { position: relative; min-height: 210px; padding: 1.45rem; overflow: hidden; }
.fact-card::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,0.23); }
.fact-pink { background: var(--pink); color: white; }
.fact-yellow { background: var(--yellow); }
.fact-blue { background: var(--turquoise); }
.fact-card h3, .fact-pink h3 { position: relative; z-index: 1; margin-bottom: 0.55rem; color: var(--purple-dark); font-size: 1.5rem; }
.fact-card p { position: relative; z-index: 1; max-width: 250px; margin-bottom: 0; line-height: 1.5; }
.fact-number { display: block; margin-bottom: 1.5rem; color: rgba(67,34,101,0.65); font-weight: 900; }
.colored-section { max-width: none; padding-right: max(1.2rem, calc((100vw - 1180px) / 2)); padding-left: max(1.2rem, calc((100vw - 1180px) / 2)); background: var(--pink-soft); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.timeline-item { display: grid; grid-template-columns: 50px 1fr; gap: 1rem; padding: 1.3rem; border: 1px solid rgba(236,79,147,0.22); border-radius: 18px; background: white; }
.timeline-marker { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--pink); font-size: 1.3rem; font-weight: 900; }
.timeline-item h3 { margin-bottom: 0.55rem; }
.timeline-item p, .right-card p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.period-section { background: #fffdf8; }
.period-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.period-card { padding: 1.5rem; border-radius: 20px; box-shadow: var(--shadow); }
.period-acquire { background: var(--turquoise-soft); }
.period-grant { background: var(--pink-soft); }
.period-tag { display: inline-block; margin-bottom: 1.3rem; padding: 0.35rem 0.6rem; border-radius: 999px; color: var(--purple-dark); background: var(--yellow); font-size: 0.76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.period-card h3 { margin-bottom: 0.6rem; }
.period-card p { color: var(--muted); line-height: 1.55; }
.date-example { margin-bottom: 0; padding-top: 0.75rem; border-top: 1px dashed rgba(67,34,101,0.2); font-size: 0.93rem; }
.absence-box { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.4rem; align-items: center; padding: 1.4rem; border-radius: 20px; color: white; background: var(--purple-dark); }
.absence-box h3 { margin-bottom: 0; color: white; }
.absence-box .eyebrow { color: var(--yellow); }
.absence-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.absence-list span { display: grid; gap: 0.2rem; padding: 0.75rem 0.5rem; border-radius: 12px; color: var(--purple-dark); background: var(--yellow); text-align: center; font-size: 0.78rem; }
.absence-list b { font-size: 1.35rem; }
.small-note { grid-column: 1 / -1; margin-bottom: 0; color: #dbcbe4; font-size: 0.82rem; }
.rights-grid { grid-template-columns: repeat(4, 1fr); }
.right-card { padding: 1.3rem; border: 1px solid var(--line); background: white; }
.right-card h3 { margin: 0.9rem 0 0.55rem; }
.card-icon { position: relative; display: block; width: 44px; height: 44px; border-radius: 14px; background: var(--lime); }
.card-icon::before, .card-icon::after { content: ""; position: absolute; }
.icon-calendar::before { inset: 10px 8px 8px; border: 3px solid var(--purple); border-radius: 4px; }
.icon-calendar::after { left: 11px; right: 11px; top: 17px; border-top: 3px solid var(--purple); }
.icon-money { background: var(--yellow); }
.icon-money::before { inset: 11px 8px; border: 3px solid var(--purple); border-radius: 50%; }
.icon-money::after { content: "1"; left: 18px; top: 12px; color: var(--purple); font-weight: 900; }
.icon-ticket { background: var(--pink); }
.icon-ticket::before { inset: 13px 7px; border: 3px dashed var(--purple); border-radius: 5px; }
.icon-school { background: var(--turquoise); }
.icon-school::before { left: 8px; top: 12px; width: 27px; height: 20px; border: 3px solid var(--purple); transform: skewY(-20deg); }
.icon-school::after { left: 19px; bottom: 7px; width: 3px; height: 10px; background: var(--purple); }
.icon-family { background: var(--turquoise); }
.icon-family::before { left: 10px; top: 10px; width: 10px; height: 10px; border: 3px solid var(--purple); border-radius: 50%; box-shadow: 14px 4px 0 -1px var(--turquoise), 14px 4px 0 2px var(--purple); }
.icon-family::after { left: 8px; bottom: 8px; width: 27px; height: 12px; border: 3px solid var(--purple); border-bottom: 0; border-radius: 16px 16px 0 0; }
.icon-warning { background: var(--yellow); }
.icon-warning::before { left: 10px; top: 9px; width: 0; height: 0; border-right: 12px solid transparent; border-bottom: 23px solid var(--purple); border-left: 12px solid transparent; }
.icon-warning::after { content: "!"; left: 20px; top: 13px; color: var(--yellow); font-weight: 900; }

.calculator-section { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; }
.calculator-card { padding: 1.5rem; background: var(--purple-dark); color: white; }
.calculator-card label { display: block; margin-bottom: 0.5rem; font-weight: 750; }
.money-input { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; color: var(--yellow); font-size: 1.1rem; font-weight: 900; }
.money-input input { color: var(--ink); }
.calculation-line, .calculation-total { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid rgba(255,255,255,0.16); }
.calculation-line span { color: #dfd0e7; }
.calculation-total { margin-top: 0.4rem; color: var(--yellow); font-size: 1.1rem; }
.calculator-card small { display: block; margin-top: 0.9rem; color: #dfd0e7; line-height: 1.4; }
.myth-section { max-width: none; padding-right: max(1.2rem, calc((100vw - 860px) / 2)); padding-left: max(1.2rem, calc((100vw - 860px) / 2)); background: var(--yellow); }
.myth-card { padding: clamp(1.4rem, 4vw, 2.5rem); background: white; text-align: center; }
.myth-counter { color: var(--pink); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.myth-card h3 { max-width: 670px; margin: 1rem auto 1.5rem; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.myth-actions { display: flex; justify-content: center; gap: 0.8rem; }
.choice-button { min-width: 120px; padding: 0.8rem 1.1rem; border: 2px solid var(--purple); border-radius: 10px; color: var(--purple); background: white; cursor: pointer; font-weight: 850; }
.choice-button:hover, .choice-button.selected { color: white; background: var(--purple); }
.myth-feedback { min-height: 1.6em; margin: 1rem 0 0; color: var(--purple); font-weight: 800; }
.text-button { margin-top: 0.9rem; text-decoration: underline; }
.faq-section { max-width: 900px; }
.faq-list { display: grid; gap: 0.7rem; }
details { padding: 1.05rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
summary { cursor: pointer; color: var(--purple-dark); font-weight: 850; }
details p { margin: 0.9rem 0 0; color: var(--muted); line-height: 1.55; }
.share-section { position: relative; display: flex; align-items: center; gap: 1.3rem; max-width: 1180px; margin: 0 auto 4rem; padding: 1.5rem clamp(1.2rem, 5vw, 2rem); border-radius: 22px; color: white; background: var(--turquoise); }
.share-section h2 { margin-bottom: 0.35rem; color: var(--purple-dark); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.share-section p { margin-bottom: 0; color: #174d53; }
.share-sun { flex: 0 0 58px; }
.secondary-button { margin-left: auto; color: var(--purple-dark); background: var(--yellow); white-space: nowrap; }
.share-status { min-width: 120px; font-size: 0.85rem; font-weight: 800; }
.site-footer { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; padding: 3rem max(1.2rem, calc((100vw - 1180px) / 2)); color: #f5eaf9; background: var(--purple-dark); }
.site-footer strong { color: white; }
.site-footer p { color: #dbcbe4; line-height: 1.5; }
.sources { display: grid; align-content: start; gap: 0.45rem; }
.sources p { margin-bottom: 0.1rem; }
.sources a { color: var(--yellow); font-size: 0.9rem; }
.disclaimer, .made-by { grid-column: 1 / -1; margin-bottom: 0; font-size: 0.83rem; }
.made-by { color: var(--turquoise) !important; }

@media (max-width: 860px) {
  .welcome-shell, .calculator-section { grid-template-columns: 1fr; }
  .welcome-art { min-height: 330px; }
  .welcome-copy { padding-top: 3rem; padding-bottom: 3rem; }
  .hero { flex-direction: column; align-items: flex-start; min-height: auto; }
  .hero-badge { align-self: flex-end; flex-basis: auto; max-width: 270px; }
  .fact-grid, .timeline { grid-template-columns: 1fr; }
  .period-grid { grid-template-columns: 1fr; }
  .absence-box { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: repeat(2, 1fr); }
  .share-section { flex-wrap: wrap; }
  .secondary-button { margin-left: 0; }
  .share-status { width: 100%; }
}

@media (max-width: 560px) {
  .site-header { min-height: 60px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark::before, .brand-mark::after { width: 35px; }
  .input-row { flex-direction: column; }
  .name-form .primary-button { width: 100%; }
  .hero { padding-top: 4rem; padding-bottom: 4rem; }
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-badge { align-self: stretch; transform: rotate(0); }
  .rights-grid { grid-template-columns: 1fr; }
  .absence-list { grid-template-columns: repeat(2, 1fr); }
  .myth-actions { flex-direction: column; }
  .choice-button { width: 100%; }
  .share-section { align-items: flex-start; flex-direction: column; }
  .share-sun { flex-basis: auto; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
