/* Portada editorial: aire, contraste y color suave, inspirada en sitios de producto modernos. */
:root {
  --ink: #18231f;
  --muted: #66736c;
  --paper: #fbfaf7;
  --line: #e9e7df;
  --teal: #087e78;
  --gold: #ffe17c;
}

body {
  background:
    radial-gradient(ellipse at 5% 22%, #e6f3ee 0, transparent 34rem),
    radial-gradient(ellipse at 94% 60%, #f4eee2 0, transparent 32rem),
    var(--paper);
  color: var(--ink);
}

.shell {
  width: min(1240px, calc(100% - 48px));
}

.topbar {
  background: #fbfaf7eF;
  border-color: #e8e6de;
}

.topinner {
  min-height: 76px;
}

.brand {
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f8d969;
  box-shadow: none;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.045em;
}

.brand small {
  color: #778078;
  font-size: 10px;
  font-weight: 600;
}

.nav {
  gap: 5px;
}

.nav a {
  color: #4c5751;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.nav a:hover {
  background: #edeee8;
  color: #18231f;
}

.nav .nav-cta {
  padding-inline: 16px;
  background: #18231f;
  color: #fff;
  box-shadow: none;
}

.nav .nav-cta:hover {
  background: #32453b;
}

.hero {
  margin-top: 26px;
  padding: clamp(28px, 5.3vw, 70px);
  border: 1px solid #ece9e0;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 6% 100%, #ebf4ed 0, transparent 48%),
    #fff;
  box-shadow: 0 18px 55px #2637280b;
  color: var(--ink);
}

.hero:before,
.hero:after {
  display: none;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
  gap: clamp(30px, 5vw, 72px);
}

.hero-content {
  max-width: 650px;
}

.eyebrow {
  color: #437268;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.eyebrow i {
  background: #e5ae3e;
  box-shadow: 0 0 0 5px #e5ae3e20;
}

.hero h1 {
  max-width: 640px;
  margin-top: 21px;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  color: #17231e;
}

.hero h1 em {
  color: #148875;
}

.hero p {
  max-width: 540px;
  color: #5d6961;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.actions {
  gap: 10px;
  margin-top: 27px;
}

.btn {
  border-radius: 10px;
  font-size: 12px;
}

.btn-main {
  background: #18231f;
  box-shadow: 0 3px 0 #0c1511;
  color: #fff;
}

.btn-main:hover {
  background: #34483d;
  color: #fff;
}

.btn-ghost {
  border-color: #d9ded7;
  background: #fff;
  color: #34423a;
}

.pwa-install-button {
  border-radius: 10px;
}

.hero-note {
  max-width: 460px;
  margin-top: 23px;
  padding-top: 17px;
  border-color: #e6e9e2;
  color: #778078;
  font-size: 11px;
}

.hero-panel {
  min-height: 400px;
  padding: 23px;
  border: 1px solid #ffffffa8;
  border-radius: 22px;
  /* Foto de aula de Yustinus Tjiuwanda, disponible bajo la licencia Unsplash. */
  background:
    linear-gradient(180deg, #19291a24 0%, #17251b8c 100%),
    url("https://images.unsplash.com/photo-1557989048-03456d01a26e?auto=format&fit=crop&w=1400&q=82") center 42% / cover,
    linear-gradient(135deg, #719c82, #345f56 60%, #214d52);
  box-shadow: 0 20px 48px #26372820;
  transform: none;
  isolation: isolate;
}

.hero-panel:after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #12251a22, #12251a94);
  content: "";
}

.hero-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px #26372826;
}

.hero-panel-title {
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero-panel-title:before {
  background: #ffdf76;
  box-shadow: 0 0 0 4px #ffdf7630;
}

.platform-illustration {
  right: 50%;
  bottom: 100px;
  width: min(72%, 250px);
  max-height: 215px;
  opacity: 0.96;
  transform: translateX(50%);
  filter: drop-shadow(0 12px 16px #1023194f);
}

.hero-shortcuts {
  gap: 7px;
  margin-top: 168px;
}

.hero-shortcuts a {
  padding: 10px 12px;
  border: 1px solid #ffffff35;
  border-radius: 10px;
  background: #14271f6b;
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(9px);
}

.hero-shortcuts a:hover {
  transform: translateY(-1px);
  background: #14271f9c;
}

.hero-shortcuts a span {
  color: #ffe17c;
}

.section {
  padding-top: clamp(56px, 7vw, 88px);
}

.section-head {
  align-items: end;
  margin-bottom: 24px;
}

.section-kicker {
  color: #438476;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.section h2 {
  color: #1b2821;
  font-size: clamp(27px, 3.8vw, 42px);
  letter-spacing: -0.045em;
}

.section-head > p {
  max-width: 360px;
  color: #68746d;
  font-size: 13px;
}

.campaign.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #e9e7df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px #26372808;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign.card:before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, white));
  content: "";
}

.campaign.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px #26372814;
}

.campaign .campaign-card-art {
  height: 140px;
  padding: 16px 24px 12px;
  background:
    radial-gradient(circle at 85% 10%, #ffffffd9 0 3px, transparent 4px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--wash, #eaf4ec), #fff 90%);
  transition: transform 0.35s ease;
}

.campaign.card:hover .campaign-card-art {
  transform: scale(1.035);
}

.campaign .card-body {
  padding: 19px 20px 21px;
}

.campaign .campaign-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: var(--wash);
  color: var(--accent);
  font-size: 12px;
}

.campaign .campaign-label {
  font-size: 9px;
  letter-spacing: 0.09em;
}

.campaign .card-title {
  margin-top: 15px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.campaign .card-text {
  color: #68746d;
  font-size: 12px;
  line-height: 1.6;
}

.campaign .activity-count {
  padding-top: 5px;
}

.campaign .activity-count {
  color: #7a857e;
  font-size: 10px;
}

.campaign .campaign-link {
  border-top-color: #eeede7;
  font-size: 11px;
}

.campaign .campaign-link:not(.campaign-secondary) {
  margin-top: auto;
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--wash);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.campaign .campaign-link:not(.campaign-secondary):hover {
  background: color-mix(in srgb, var(--wash) 65%, white);
  text-decoration: none;
  transform: translateX(2px);
}

.callout.alert {
  border: 1px solid #f0e5bc;
  border-radius: 14px;
  background: #fff9e7;
  color: #605332;
  font-size: 12px;
}

.games {
  position: relative;
}

.game-group {
  border: 1px solid #e9e7df;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0, #ffffffa8, transparent 50%),
    #f4f5ef;
  box-shadow: none;
}

.game-group.substances {
  --game-wash: #e6f3ed;
}

.game-group.family {
  --game-wash: #fbede7;
}

.game-group.safety {
  --game-wash: #f0edfb;
}

.game.card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px #1c342b0b;
}

.game:hover {
  box-shadow: 0 10px 22px #1c342b13;
}

.school-card.card,
.shared-card.card,
.care-card.card {
  border-color: #e9e7df;
  border-radius: 18px;
  box-shadow: 0 8px 24px #26372808;
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #26372810;
}

.shared-card:after {
  opacity: 0.16;
}

.footer {
  width: 100vw;
  margin: 76px 0 0 calc(50% - 50vw);
  padding: 42px max(24px, calc((100vw - 1240px) / 2)) 18px;
  border: 0;
  background: #18231f;
  color: #d1d9d2;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 1.2fr) minmax(150px, 0.7fr) minmax(250px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: 30px;
}

.footer-brand p,
.footer-note p {
  max-width: 360px;
  margin: 14px 0 0;
  color: #b8c5bb;
  font-size: 11px;
  line-height: 1.7;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.footer-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  background: #f8d969;
  color: #18231f;
  font-weight: 900;
}

.footer-logo strong,
.footer-logo small {
  display: block;
}

.footer-logo strong {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-logo small {
  margin-top: 3px;
  color: #afbeb2;
  font-size: 9px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-links strong,
.footer-note strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 11px;
}

.footer-links a,
.footer-bottom a {
  color: #c4d0c6;
  font-size: 11px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #ffe17c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  border-top: 1px solid #ffffff24;
  color: #aebbb1;
  font-size: 10px;
}

.click-counter-button {
  box-shadow: 0 9px 28px #a30d2c45, 0 2px 7px #18231f21;
}

@media (max-width: 850px) {
  .shell {
    width: min(calc(100% - 32px), 700px);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
    gap: 26px;
  }

  .hero-panel {
    min-height: 355px;
    padding: 19px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }

  .hero-shortcuts {
    margin-top: 150px;
  }

  .platform-illustration {
    bottom: 94px;
    width: 76%;
  }
}

@media (max-width: 620px) {
  .shell {
    width: calc(100% - 26px);
  }

  .topinner {
    min-height: 64px;
  }

  .hero {
    margin-top: 14px;
    padding: 26px 21px 20px;
    border-radius: 21px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero h1 {
    font-size: clamp(41px, 12vw, 58px);
  }

  .hero-panel {
    min-height: 330px;
  }

  .hero-shortcuts {
    margin-top: 132px;
  }

  .platform-illustration {
    bottom: 86px;
    width: 65%;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .campaign .campaign-card-art {
    height: 125px;
  }

  .footer {
    margin-top: 55px;
    padding-top: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 24px;
  }

  .footer-note {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .campaign.card,
  .school-card {
    transition: none;
  }
}

/* Hero visual inspired by the shared sketch: a curious face peeks over a message card. */
.hero-panel {
  min-height: 420px;
  padding: 0 20px 20px;
  border: 1px solid #d9ddd8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px #26372812;
  color: #18231f;
}
.hero-panel:after { display: none; }
.hero-panel-title { display: none; }
.platform-illustration {
  top: 5px;
  right: 50%;
  bottom: auto;
  width: min(100%, 430px);
  max-height: 310px;
  opacity: 1;
  transform: translateX(50%);
  filter: none;
}
.hero-shortcuts {
  position: relative;
  gap: 7px;
  margin: 255px 0 0;
}
.hero-shortcuts a {
  padding: 10px 12px;
  border: 1px solid #e1e5df;
  border-radius: 9px;
  background: #fbfcfa;
  color: #34423a;
  font-size: 11px;
  backdrop-filter: none;
}
.hero-shortcuts a:hover { background: #f1f6f1; }
.hero-shortcuts a span { color: #148875; }
@media (max-width: 900px) {
  .hero-panel { min-height: 395px; }
  .hero-shortcuts { margin-top: 238px; }
}
@media (max-width: 620px) {
  .hero-panel { min-height: 360px; padding: 0 14px 15px; }
  .platform-illustration { top: 0; width: min(100%, 405px); }
  .hero-shortcuts { margin-top: 218px; }
  .hero-shortcuts a { padding: 8px 10px; }
}
@keyframes platform-float-centered {
  0%, 100% { transform: translate(50%, 0); }
  50% { transform: translate(50%, -7px); }
}
.platform-illustration { animation: platform-float-centered 5s ease-in-out infinite; }
