/* ==========================================================================
   EduKando — Estilos base
   Portada oficial · v1
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fuentes autoalojadas (OFL)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Baloo 2";
  src: url("../assets/fonts/baloo-2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Variables
   -------------------------------------------------------------------------- */
:root {
  --font-display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ink: #20305a;
  --ink-soft: #4d5b7d;
  --ink-muted: #6a7590;

  --cream: #fff7e7;
  --cream-deep: #ffefd2;
  --white: #ffffff;
  --sky: #ddf5ff;

  --green: #58c22f;
  --green-deep: #358f25;
  --green-soft: #eaf8e2;
  --orange: #e85d04;
  --orange-deep: #c74e00;
  --orange-text: #d95800;
  --yellow: #ffd23f;
  --blue: #1f7cff;
  --pink: #f23d9b;
  --purple: #8b4dff;

  --shadow-soft: 0 24px 60px -30px rgba(32, 48, 90, 0.35);
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px #1f7cff;

  --max-width: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* --------------------------------------------------------------------------
   3. Reset y base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background:
    radial-gradient(900px 700px at 78% 16%, rgba(255, 246, 205, 0.9) 0%, rgba(255, 246, 205, 0) 62%),
    linear-gradient(180deg, #ddf5ff 0%, #eefbff 30%, #fff9ed 60%, #fff2d7 100%);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

main:focus {
  outline: none;
}

h1,
h2,
h3,
p,
figure,
figcaption,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  color: var(--ink);
  background: #ffe27a;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4. Utilidades
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--blue);
}

/* --------------------------------------------------------------------------
   5. Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - (var(--gutter) * 2)), 1280px);
  margin-inline: auto;
  padding-block: clamp(16px, 2.2vw, 26px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 14px;
}

.brand__logo {
  width: auto;
  height: clamp(46px, 4.8vw, 66px);
  filter: drop-shadow(0 8px 14px rgba(32, 48, 90, 0.16));
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 38px);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
}

.site-nav__link--button {
  text-align: left;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(32, 48, 90, 0.08);
  box-shadow: 0 8px 18px -12px rgba(32, 48, 90, 0.5);
}

.menu-toggle__box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle__box span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   6. Escenario de fondo
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  min-height: 0;
  padding-block: clamp(8px, 2vw, 24px) clamp(56px, 5.8vw, 88px);
  overflow: hidden;
  overflow: clip;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scene__sun {
  position: absolute;
  top: 3%;
  right: 7%;
  width: clamp(190px, 25vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff5b8 0%,
    #ffe98a 34%,
    rgba(255, 233, 138, 0.42) 58%,
    rgba(255, 233, 138, 0) 72%
  );
  filter: blur(1px);
  opacity: 0.9;
}

.scene__glow {
  position: absolute;
  top: 2%;
  right: -6%;
  width: 62%;
  height: 82%;
  background: radial-gradient(ellipse at center, rgba(255, 242, 186, 0.36) 0%, rgba(255, 242, 186, 0) 66%);
}

.scene__hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(230px, 46vh, 460px);
  background-image: url("../assets/images/backgrounds/pradera-hero.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}

.cloud {
  position: absolute;
  width: 150px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.78;
  filter: drop-shadow(0 18px 22px rgba(92, 160, 200, 0.1));
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
}

.cloud::before {
  width: 74px;
  height: 74px;
  left: 20px;
  bottom: 14px;
}

.cloud::after {
  width: 52px;
  height: 52px;
  right: 22px;
  bottom: 12px;
}

.cloud--one {
  top: 11%;
  left: 3%;
  transform: scale(0.9);
  opacity: 0.55;
}

.cloud--two {
  top: 5%;
  right: 11%;
  transform: scale(0.66);
  opacity: 0.62;
}

.cloud--three {
  top: 43%;
  left: 44%;
  transform: scale(0.46);
  opacity: 0.42;
}

/* --------------------------------------------------------------------------
   7. Portada — composición
   -------------------------------------------------------------------------- */
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 54px);
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 8px;
  border-radius: 999px;
  color: #3e4e76;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 26px -20px rgba(32, 48, 90, 0.55);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.015em;
  backdrop-filter: blur(6px);
}

.eyebrow__icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--green-soft);
}

.eyebrow__icon svg {
  width: 18px;
  height: 18px;
}

.hero__title {
  margin-top: clamp(18px, 2.2vw, 28px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.85rem, 4.15vw, 4.15rem);
  line-height: 0.99;
  letter-spacing: -0.026em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--orange-text);
  z-index: 0;
}

.hero__title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1.5%;
  right: -4%;
  bottom: 0.04em;
  height: 0.17em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.4deg);
}

.hero__lead {
  max-width: 490px;
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(1.02rem, 1.15vw, 1.16rem);
  font-weight: 600;
  line-height: 1.64;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 2.8vw, 34px);
}

/* --------------------------------------------------------------------------
   8. Botones
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 clamp(20px, 2vw, 27px);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.3vw, 1.25rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  color: #ffffff;
  background: var(--orange);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    0 5px 0 var(--orange-deep),
    0 18px 28px -14px rgba(199, 78, 0, 0.62);
}

.btn--primary:hover {
  background: #f26b0f;
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.26),
    0 7px 0 var(--orange-deep),
    0 24px 34px -14px rgba(199, 78, 0, 0.58);
}

.btn--primary:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.2),
    0 2px 0 var(--orange-deep),
    0 10px 18px -12px rgba(199, 78, 0, 0.65);
}

.btn--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(32, 48, 90, 0.07);
  box-shadow:
    0 5px 0 #e7d8ba,
    0 18px 26px -20px rgba(32, 48, 90, 0.45);
}

.btn--secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #e7d8ba,
    0 24px 30px -20px rgba(32, 48, 90, 0.42);
}

.btn--secondary:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #e7d8ba,
    0 10px 16px -14px rgba(32, 48, 90, 0.45);
}

.btn__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.btn__icon svg {
  width: 17px;
  height: 17px;
}

.btn__icon--soft {
  width: 30px;
  height: 30px;
  color: var(--green-deep);
  background: var(--green-soft);
}

.btn__icon--soft svg {
  width: 18px;
  height: 18px;
}

.btn--small {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 1.2rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.hero__note-icon {
  color: #e8a200;
}

.hero__note-icon svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   9. Escaparate: dispositivo + Kando
   -------------------------------------------------------------------------- */
.hero__showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  min-height: clamp(500px, 46vw, 640px);
  margin-inline: auto;
}

.showcase__sun {
  position: absolute;
  top: 0;
  right: -4%;
  width: min(72%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 155, 0.95) 0%,
    rgba(255, 227, 122, 0.72) 42%,
    rgba(255, 227, 122, 0) 70%
  );
  filter: blur(2px);
  z-index: 0;
}

.showcase__ground {
  position: absolute;
  z-index: 1;
  left: -5%;
  right: -5%;
  bottom: -12px;
  height: 190px;
  background: radial-gradient(ellipse at 50% 58%, #d5ebc0 0%, #e8f3d9 46%, rgba(232, 243, 217, 0) 72%);
  filter: blur(1px);
}

.showcase__device {
  position: relative;
  z-index: 3;
  width: 94%;
  margin: 24px 0 0 auto;
}

.device {
  position: relative;
  width: 100%;
  padding: clamp(10px, 1.1vw, 14px);
  border-radius: clamp(23px, 2.6vw, 34px);
  background:
    linear-gradient(145deg, #566181 0%, #2a344d 26%, #151d30 64%, #0a0f1c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(8, 13, 25, 0.9),
    0 28px 56px -20px rgba(23, 39, 76, 0.6),
    0 64px 90px -40px rgba(23, 39, 76, 0.5);
  rotate: -2.4deg;
  scale: 1;
  transition: rotate 0.5s cubic-bezier(0.22, 1, 0.36, 1), scale 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .showcase__device:hover .device {
    rotate: -0.9deg;
    scale: 1.012;
  }
}

.device::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(clamp(23px, 2.6vw, 34px) + 3px);
  border: 1.5px solid rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.device::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(clamp(23px, 2.6vw, 34px) - 2px);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 34%);
  opacity: 0.6;
  pointer-events: none;
}

.device__screen {
  position: relative;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border-radius: clamp(15px, 1.8vw, 22px);
  background: #07101d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 3px 12px rgba(0, 0, 0, 0.7);
}

.device__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    116deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 17%,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0) 76%,
    rgba(255, 255, 255, 0.05) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.device__camera {
  position: absolute;
  top: 50%;
  left: clamp(3px, 0.45vw, 6px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #060b15;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 3px rgba(64, 132, 255, 0.7);
  transform: translateY(-50%);
}

.device__home {
  position: absolute;
  left: 50%;
  bottom: clamp(4px, 0.5vw, 6px);
  width: 20%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.device__side-button {
  position: absolute;
  top: -4px;
  left: 20%;
  width: 16%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6b7390, #2b3349);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.showcase__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 14px 4px 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #43506f;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 20px -16px rgba(32, 48, 90, 0.5);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}

.showcase__caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 194, 47, 0.16);
}

.showcase__badge {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border-radius: 16px 16px 16px 6px;
  background: #ffffff;
  border: 1.5px solid rgba(32, 48, 90, 0.06);
  box-shadow: 0 14px 24px -16px rgba(32, 48, 90, 0.5);
  transform: rotate(2.6deg);
}

.showcase__badge-pin {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 11px;
  background: #fff1dd;
  box-shadow:
    inset 0 0 0 1px rgba(32, 48, 90, 0.08),
    0 3px 8px -4px rgba(32, 48, 90, 0.35);
}

.showcase__badge-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.showcase__badge-text strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.showcase__badge-text small {
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.kando {
  position: absolute;
  z-index: 5;
  bottom: 2px;
  left: -1%;
  width: clamp(170px, 20vw, 260px);
  pointer-events: none;
}

.kando__img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 14px rgba(34, 70, 27, 0.2));
}

.kando__shadow {
  position: absolute;
  z-index: -1;
  left: 13%;
  right: 7%;
  bottom: -3px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 72, 27, 0.42) 0%, rgba(34, 72, 27, 0) 70%);
  filter: blur(5px);
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 22px;
  aspect-ratio: 1;
  background: var(--yellow);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 3px 5px rgba(199, 78, 0, 0.12));
}

.sparkle--one {
  top: 22%;
  left: 1%;
}

.sparkle--two {
  top: 11%;
  right: 0;
  width: 15px;
  background: #ff9cc8;
}

.sparkle--three {
  right: -1%;
  bottom: 30%;
  width: 18px;
  background: #8ed9ff;
}

/* --------------------------------------------------------------------------
   10. Descubre el mundo de EduKando
   -------------------------------------------------------------------------- */
.world {
  position: relative;
  isolation: isolate;
  padding-block: 0 clamp(76px, 9vw, 118px);
  background:
    radial-gradient(820px 460px at 84% 2%, rgba(255, 240, 170, 0.3) 0%, rgba(255, 240, 170, 0) 68%),
    linear-gradient(180deg, #fff7e7 0%, #fcfaf1 34%, #fff7e7 100%);
  scroll-margin-top: 24px;
}

.world__divider {
  position: relative;
  z-index: 2;
  height: clamp(64px, 7vw, 96px);
  margin-top: clamp(-44px, -3.2vw, -28px);
  pointer-events: none;
}

.world__divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.world__inner {
  padding-top: clamp(18px, 2.4vw, 30px);
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.world__header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.world__title {
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}

.world__title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--orange-text);
}

.world__title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1.5%;
  right: -4%;
  bottom: 0.04em;
  height: 0.17em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.4deg);
}

.world__lead {
  max-width: 690px;
  margin: clamp(14px, 1.8vw, 20px) auto 0;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
}

.world__stage {
  position: relative;
  margin-top: clamp(34px, 4.6vw, 56px);
}

.world__frame {
  position: relative;
  margin: 0;
  padding: clamp(6px, 0.7vw, 9px);
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 34px);
  background: #ffffff;
  border: 1px solid rgba(32, 48, 90, 0.06);
  box-shadow:
    0 34px 74px -38px rgba(32, 48, 90, 0.48),
    0 16px 34px -26px rgba(32, 48, 90, 0.32);
}

.world__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(18px, 2.3vw, 26px);
  transform-origin: center;
  will-change: transform;
}

.world__badge {
  position: absolute;
  z-index: 3;
  top: clamp(15px, 2.1vw, 24px);
  left: clamp(15px, 2.1vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #43506f;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 22px -18px rgba(32, 48, 90, 0.55);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

.world__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 194, 47, 0.16);
}

.world__map {
  position: absolute;
  z-index: 4;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  width: clamp(258px, 30%, 360px);
  margin: 0;
  padding: clamp(6px, 0.7vw, 8px) clamp(6px, 0.7vw, 8px) 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fffdf7;
  border: 1px solid rgba(32, 48, 90, 0.09);
  box-shadow:
    0 24px 44px -24px rgba(20, 40, 70, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  rotate: 2.4deg;
  transform-origin: 72% 82%;
  transition:
    rotate 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.world__map-image {
  width: 100%;
  aspect-ratio: 1170 / 1024;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(32, 48, 90, 0.08);
  transition: scale 0.35s ease;
}

.world__map-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px 10px;
}

.world__map-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.world__map-places {
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-wrap: balance;
}

@media (hover: hover) {
  .world__map:hover {
    rotate: 1deg;
    transform: translateY(-4px);
    box-shadow:
      0 30px 54px -24px rgba(20, 40, 70, 0.6),
      inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  }

  .world__map:hover .world__map-image {
    scale: 1.025;
  }
}

.world__journey {
  margin-top: clamp(52px, 6.4vw, 78px);
}

.world__journey-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.7vw, 1.62rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.world__journey-title::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
}

.journey__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(32, 48, 90, 0.07);
  box-shadow:
    0 20px 38px -30px rgba(32, 48, 90, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.journey__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 2.4vw, 28px);
  width: 44px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--journey-accent, var(--green));
}

.journey__card--arrival {
  --journey-accent: #358f25;
  --journey-soft: #eaf8e2;
}

.journey__card--pond {
  --journey-accent: #b77900;
  --journey-soft: #fff3c9;
}

.journey__card--explore {
  --journey-accent: #1b5fad;
  --journey-soft: #e4f2ff;
}

@media (hover: hover) {
  .journey__card:hover {
    transform: translateY(-4px);
    border-color: rgba(32, 48, 90, 0.11);
    box-shadow:
      0 26px 44px -28px rgba(32, 48, 90, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .journey__card:hover .journey__icon {
    scale: 1.06;
    rotate: -3deg;
  }
}

.journey__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--journey-accent, var(--green-deep));
  background: var(--journey-soft, var(--green-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: scale 0.25s ease, rotate 0.25s ease;
}

.journey__icon svg {
  width: 26px;
  height: 26px;
}

.journey__number {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.journey__card-title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.journey__text {
  margin-top: 8px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Orden de aparición al hacer scroll */
.world__header [data-reveal]:nth-child(1) {
  --reveal-delay: 0.04s;
}

.world__header [data-reveal]:nth-child(2) {
  --reveal-delay: 0.1s;
}

.world__header [data-reveal]:nth-child(3) {
  --reveal-delay: 0.18s;
}

.world__frame {
  --reveal-delay: 0.06s;
}

.world__map {
  --reveal-delay: 0.18s;
}

.world__journey-title {
  --reveal-delay: 0.04s;
}

.journey__card:nth-child(1) {
  --reveal-delay: 0.08s;
}

.journey__card:nth-child(2) {
  --reveal-delay: 0.16s;
}

.journey__card:nth-child(3) {
  --reveal-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   11. Conoce a nuestros amigos
   -------------------------------------------------------------------------- */
.friends {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 8.5vw, 112px) clamp(84px, 9.5vw, 124px);
  background:
    radial-gradient(900px 520px at 8% 4%, rgba(223, 245, 214, 0.72) 0%, rgba(223, 245, 214, 0) 66%),
    radial-gradient(760px 480px at 92% 8%, rgba(255, 240, 170, 0.3) 0%, rgba(255, 240, 170, 0) 68%),
    linear-gradient(180deg, #fff7e7 0%, #fdfbf3 46%, #fff7e7 100%);
  scroll-margin-top: 24px;
}

.friends__inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.friends__header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.friends__title {
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}

.friends__title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--orange-text);
}

.friends__title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1.5%;
  right: -4%;
  bottom: 0.04em;
  height: 0.17em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.4deg);
}

.friends__lead {
  max-width: 700px;
  margin: clamp(14px, 1.8vw, 20px) auto 0;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Panel protagonista de Kando */
.friends__feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(34px, 4.6vw, 56px);
  padding: clamp(18px, 2.8vw, 32px) clamp(18px, 3.4vw, 44px);
  overflow: hidden;
  border-radius: clamp(26px, 3vw, 36px);
  background:
    radial-gradient(520px 340px at 18% 18%, rgba(255, 246, 205, 0.9) 0%, rgba(255, 246, 205, 0) 72%),
    linear-gradient(135deg, #fffdf7 0%, #f1fbe9 55%, #e7f5d7 100%);
  border: 1px solid rgba(32, 48, 90, 0.07);
  box-shadow:
    0 30px 70px -36px rgba(32, 48, 90, 0.45),
    0 14px 30px -24px rgba(32, 48, 90, 0.28);
}

.friends__kando-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(300px, 34vw, 430px);
  padding-top: 36px;
}

.friends__sun {
  position: absolute;
  top: 4%;
  right: 4%;
  width: min(46%, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 155, 0.92) 0%,
    rgba(255, 227, 122, 0.55) 42%,
    rgba(255, 227, 122, 0) 70%
  );
  filter: blur(1px);
}

.friends__arch {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: min(72%, 320px);
  height: 82%;
  transform: translateX(-50%);
  border-radius: 50% 50% 24px 24px / 42% 42% 8px 8px;
  background: linear-gradient(180deg, #eaf8e2 0%, #c9e9a9 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.friends__kando-shadow {
  position: absolute;
  z-index: 1;
  bottom: 3%;
  left: 50%;
  width: min(54%, 240px);
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 72, 27, 0.36) 0%, rgba(34, 72, 27, 0) 70%);
  filter: blur(5px);
  transform: translateX(-50%);
}

.friends__kando-img {
  position: relative;
  z-index: 2;
  width: clamp(220px, 28vw, 360px);
  height: auto;
  filter: drop-shadow(0 16px 14px rgba(34, 70, 27, 0.18));
}

.friends__bubble {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: 2%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 5px;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid rgba(32, 48, 90, 0.08);
  box-shadow: 0 14px 24px -18px rgba(32, 48, 90, 0.55);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 700;
  line-height: 1.1;
  rotate: -2deg;
}

.friends__bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1.5px solid rgba(32, 48, 90, 0.08);
  border-bottom: 1.5px solid rgba(32, 48, 90, 0.08);
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
}

.friends__kando-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.friends__eyebrow {
  color: #a84600;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.friends__kando-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.friends__kando-subtitle {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #a84600;
}

.friends__kando-bio {
  margin-top: 14px;
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
}

.friends__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.friends__chips li {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.friends__chips li:nth-child(1) {
  color: #2f7d1f;
  background: #e9f8df;
}

.friends__chips li:nth-child(2) {
  color: #8a5a00;
  background: #fff3c9;
}

.friends__chips li:nth-child(3) {
  color: #1b5fad;
  background: #e4f2ff;
}

/* Tarjetas de los amigos */
.friends__roster {
  margin-top: clamp(54px, 6.5vw, 80px);
}

.friends__roster-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.7vw, 1.62rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.friends__roster-title::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.friends__grid {
  --friends-gap: clamp(16px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--friends-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.friends__card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  padding: clamp(10px, 0.9vw, 12px);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--friend-soft, #eef8e3) 0%, #fffdf7 64%);
  border: 1px solid rgba(32, 48, 90, 0.07);
  box-shadow:
    0 22px 42px -32px rgba(32, 48, 90, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  rotate: -1deg;
  transition:
    rotate 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.friends__card:nth-child(even) {
  rotate: 1deg;
}

.friends__card:nth-child(4) {
  grid-column: 2 / span 2;
}

.friends__card:nth-child(5) {
  grid-column: 4 / span 2;
}

.friends__card--lola {
  --friend-soft: #e4f2ff;
  --friend-accent: #1b5fad;
}

.friends__card--ovejita {
  --friend-soft: #f3e9ff;
  --friend-accent: #6f35d0;
}

.friends__card--cerdito {
  --friend-soft: #ffe8f1;
  --friend-accent: #b32463;
}

.friends__card--gallo {
  --friend-soft: #fff3c9;
  --friend-accent: #8a5a00;
}

.friends__card--poni {
  --friend-soft: #eaf8e2;
  --friend-accent: #2f7d1f;
}

.friends__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(32, 48, 90, 0.06),
    0 10px 20px -18px rgba(32, 48, 90, 0.35);
}

.friends__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  transition: scale 0.3s ease;
}

/* Sombra de apoyo para los recortes transparentes */
.friends__card--lola .friends__portrait::after,
.friends__card--cerdito .friends__portrait::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 20%;
  right: 20%;
  bottom: 9%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 72, 27, 0.28) 0%, rgba(34, 72, 27, 0) 70%);
  filter: blur(4px);
}

.friends__info {
  padding: 14px 10px 12px;
}

.friends__species {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--friend-accent, var(--ink-muted));
}

.friends__name {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.friends__bio {
  margin-top: 6px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (hover: hover) {
  .friends__card:hover {
    rotate: 0deg;
    transform: translateY(-4px);
    box-shadow:
      0 28px 48px -30px rgba(32, 48, 90, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .friends__card:hover .friends__img {
    scale: 1.03;
  }
}

/* Orden de aparición al hacer scroll */
.friends__header [data-reveal]:nth-child(1) {
  --reveal-delay: 0.04s;
}

.friends__header [data-reveal]:nth-child(2) {
  --reveal-delay: 0.1s;
}

.friends__header [data-reveal]:nth-child(3) {
  --reveal-delay: 0.18s;
}

.friends__feature {
  --reveal-delay: 0.08s;
}

.friends__roster-title {
  --reveal-delay: 0.04s;
}

.friends__card:nth-child(1) {
  --reveal-delay: 0.06s;
}

.friends__card:nth-child(2) {
  --reveal-delay: 0.12s;
}

.friends__card:nth-child(3) {
  --reveal-delay: 0.18s;
}

.friends__card:nth-child(4) {
  --reveal-delay: 0.24s;
}

.friends__card:nth-child(5) {
  --reveal-delay: 0.3s;
}

/* --------------------------------------------------------------------------
   12. Aprender jugando
   -------------------------------------------------------------------------- */
.learn {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 8.5vw, 112px) clamp(84px, 9.5vw, 124px);
  background:
    radial-gradient(760px 500px at 8% 2%, rgba(223, 245, 214, 0.55) 0%, rgba(223, 245, 214, 0) 68%),
    radial-gradient(680px 440px at 92% 8%, rgba(255, 240, 170, 0.24) 0%, rgba(255, 240, 170, 0) 68%),
    linear-gradient(180deg, #fff7e7 0%, #fdfbf3 48%, #fff7e7 100%);
  scroll-margin-top: 24px;
}

.learn__inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.learn__header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
}

.learn__title {
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: balance;
}

.learn__title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--orange-text);
}

.learn__title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1.5%;
  right: -4%;
  bottom: 0.04em;
  height: 0.17em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.4deg);
}

.learn__lead {
  max-width: 470px;
  margin: 0 0 6px auto;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
}

.learn__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(20px, 2.6vw, 32px);
  margin-top: clamp(36px, 4.8vw, 58px);
}

.learn__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  padding: clamp(10px, 1vw, 14px);
  overflow: hidden;
  border-radius: clamp(24px, 2.8vw, 30px);
  background: linear-gradient(180deg, var(--learn-soft, #eef8e3) 0%, #fffdf7 64%);
  border: 1px solid rgba(32, 48, 90, 0.07);
  box-shadow:
    0 24px 46px -34px rgba(32, 48, 90, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  rotate: -1deg;
  transition:
    rotate 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.learn__card:nth-child(even) {
  rotate: 1deg;
}

.learn__card:nth-child(even) .learn__visual {
  order: 2;
}

.learn__card:nth-child(even) .learn__content {
  order: 1;
}

.learn__card--count {
  --learn-soft: #e4f2ff;
  --learn-accent: #1b5fad;
}

.learn__card--look {
  --learn-soft: #ffe8f1;
  --learn-accent: #b32463;
}

.learn__card--listen {
  --learn-soft: #fff0d8;
  --learn-accent: #a84600;
}

.learn__card--name {
  --learn-soft: #eaf8e2;
  --learn-accent: #2f7d1f;
}

.learn__visual {
  position: relative;
  width: 100%;
  align-self: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(32, 48, 90, 0.06),
    0 10px 20px -18px rgba(32, 48, 90, 0.35);
}

.learn__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: scale 0.3s ease;
}

.learn__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2vw, 26px);
}

.learn__verb {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--learn-accent, var(--ink-muted));
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.learn__card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.learn__text {
  margin-top: 7px;
  max-width: 100%;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Identificador visual de cada actividad */
.learn__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.learn__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--learn-accent);
  background: var(--learn-soft);
  border: 1px solid rgba(32, 48, 90, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.learn__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 100%;
  max-height: 100%;
  flex: none;
}

.learn__icon--count {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.learn__icon--look {
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
  place-content: center;
}

.learn__icon--look span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.learn__icon--look span:nth-child(1) {
  background: #58c22f;
}

.learn__icon--look span:nth-child(2) {
  background: #1f7cff;
}

.learn__icon--look span:nth-child(3) {
  background: #f23d9b;
}

.learn__icon--look span:nth-child(4) {
  background: #ffd23f;
}

.learn__icon--name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (hover: hover) {
  .learn__card:hover {
    rotate: 0deg;
    transform: translateY(-4px);
    box-shadow:
      0 30px 54px -34px rgba(32, 48, 90, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .learn__card:hover .learn__img {
    scale: 1.03;
  }
}

/* Orden de aparición al hacer scroll */
.learn__heading [data-reveal]:nth-child(1) {
  --reveal-delay: 0.04s;
}

.learn__heading [data-reveal]:nth-child(2) {
  --reveal-delay: 0.1s;
}

.learn__lead {
  --reveal-delay: 0.18s;
}

.learn__card:nth-child(1) {
  --reveal-delay: 0.06s;
}

.learn__card:nth-child(2) {
  --reveal-delay: 0.14s;
}

.learn__card:nth-child(3) {
  --reveal-delay: 0.22s;
}

.learn__card:nth-child(4) {
  --reveal-delay: 0.3s;
}

/* --------------------------------------------------------------------------
   13. Ventanas modales
   -------------------------------------------------------------------------- */
.modal {
  width: min(680px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(20, 34, 60, 0.56);
  backdrop-filter: blur(7px);
}

.modal__panel {
  position: relative;
  max-height: calc(100svh - 32px);
  padding: clamp(24px, 4vw, 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(255, 235, 161, 0.36) 0%, rgba(255, 235, 161, 0) 70%),
    #fffbf2;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow:
    0 0 0 1px rgba(32, 48, 90, 0.07),
    0 40px 90px -30px rgba(8, 20, 45, 0.65);
}

.modal__panel--narrow {
  max-width: 540px;
  margin-inline: auto;
}

.modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #ece0c8;
  box-shadow: 0 8px 18px -12px rgba(32, 48, 90, 0.5);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
  background: #fff6e5;
  transform: rotate(4deg);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__content {
  padding-top: 8px;
}

.modal__content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
  text-align: center;
}

.modal__eyebrow {
  margin-bottom: 6px;
  color: var(--orange-text);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal__title {
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.modal__content--centered .modal__title {
  padding-right: 0;
}

.modal__text {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
}

.modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.modal__chips li {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.modal__chips li:nth-child(1) {
  color: #2f7d1f;
  background: #e9f8df;
}

.modal__chips li:nth-child(2) {
  color: #1b5fad;
  background: #e4f2ff;
}

.modal__chips li:nth-child(3) {
  color: #8a5a00;
  background: #fff3c9;
}

.modal__figure {
  margin-top: 22px;
}

.modal__figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 4px solid #ffffff;
  box-shadow:
    0 0 0 1px rgba(32, 48, 90, 0.08),
    0 18px 34px -22px rgba(32, 48, 90, 0.5);
}

.modal__figure figcaption {
  margin-top: 9px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.modal__note {
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.modal__content > .btn {
  margin-top: 20px;
}

.modal__badge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff0d8;
  box-shadow: 0 12px 24px -16px rgba(199, 78, 0, 0.55);
}

.modal__badge svg {
  width: 38px;
  height: 38px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-block: clamp(22px, 3vw, 32px) clamp(34px, 4.5vw, 52px);
  background: linear-gradient(180deg, #fff7e7 0%, #fff2d7 100%);
  border-top: 1px solid rgba(32, 48, 90, 0.08);
}

.site-footer__inner {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
  display: flex;
  justify-content: center;
}

.site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px -30px rgba(32, 48, 90, 0.55);
  backdrop-filter: blur(8px);
}

.site-footer__list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--social-accent, var(--ink));
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(32, 48, 90, 0.06);
  box-shadow: 0 7px 14px -10px rgba(32, 48, 90, 0.45);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.site-footer__link svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.site-footer__label {
  display: inline-block;
}

.site-footer__link--facebook {
  --social-accent: #1b5fad;
}

.site-footer__link--instagram {
  --social-accent: #b32463;
}

.site-footer__link--tiktok {
  --social-accent: #20305a;
}

@media (hover: hover) {
  .site-footer__link:hover {
    color: #ffffff;
    background: var(--social-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -12px rgba(32, 48, 90, 0.55);
  }
}
