:root {
  --navy: #1e3a5f;
  --navy-deep: #0f2138;
  --sky: #3a6ea5;
  --mist: #e8eef5;
  --green: #1b5e3f;
  --orange: #e87d0d;
  --ink: #15202b;
  --muted: #5a6573;
  --paper: #f5f7fa;
  --white: #ffffff;
  --padre: #b71c1c;
  --profesor: #b45309;
  --prefecto: #e65100;
  --control: #1e3a5f;
  --alumno: #6a1b9a;
  --font: "Poppins", system-ui, sans-serif;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding: 1rem 0;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(232, 125, 13, 0.32);
}

.btn-primary:hover {
  background: #d16f0a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-wa {
  background: #25d366;
  color: var(--white);
}

.btn-wa:hover {
  background: #1ebe57;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-deep);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(88svh, 680px);
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  animation: heroDrift 18s var(--ease) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      100deg,
      rgba(15, 33, 56, 0.94) 0%,
      rgba(15, 33, 56, 0.82) 38%,
      rgba(15, 33, 56, 0.55) 68%,
      rgba(15, 33, 56, 0.35) 100%
    ),
    linear-gradient(180deg, rgba(15, 33, 56, 0.25) 0%, rgba(15, 33, 56, 0.5) 100%);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 6.25rem 0 3rem;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 260px);
    gap: 2.5rem;
    padding: 7rem 0 3.5rem;
  }
}

.hero-content {
  max-width: 36rem;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fc0e4;
  animation: riseIn 0.7s var(--ease) both;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: riseIn 0.75s 0.04s var(--ease) both;
}

.hero-mark {
  width: 64px;
  height: 64px;
  margin: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero .tagline {
  margin: 0.85rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #d4e4f7;
  animation: riseIn 0.8s 0.1s var(--ease) both;
}

.hero .lead {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 30rem;
  animation: riseIn 0.8s 0.16s var(--ease) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
  animation: riseIn 0.8s 0.22s var(--ease) both;
}

.hero-ctas .btn-primary {
  padding: 0.9rem 1.55rem;
  font-size: 1rem;
}

.hero-phone {
  display: none;
  justify-self: end;
  width: min(100%, 240px);
  animation: riseIn 0.9s 0.2s var(--ease) both;
}

.hero-phone img {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@media (min-width: 900px) {
  .hero-phone {
    display: block;
  }
}

/* ——— Sections ——— */
section {
  padding: 3.75rem 0;
}

.section-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

.section-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-text {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ——— About ——— */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 1.75rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.about-points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.about-points li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.7rem;
  align-items: start;
  font-weight: 500;
  font-size: 0.98rem;
}

.about-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.about-visual {
  justify-self: center;
  width: min(100%, 420px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 33, 56, 0.14);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.about-visual.is-in {
  opacity: 1;
  transform: none;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.phone-frame {
  justify-self: center;
  width: min(100%, 220px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.phone-frame.is-in {
  opacity: 1;
  transform: none;
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(15, 33, 56, 0.28);
}

/* ——— Highlights ——— */
.highlights {
  background: var(--mist);
  padding: 2.5rem 0;
}

.highlight-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 980px) {
  .highlight-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  padding: 0.85rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 33, 56, 0.06);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.highlight.is-in {
  opacity: 1;
  transform: none;
}

.highlight img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
}

.highlight h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 700;
}

.highlight p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 520px) {
  .highlight {
    grid-template-columns: 1fr;
  }

  .highlight img {
    width: 100%;
    height: 140px;
  }
}

/* ——— Roles ——— */
.roles {
  background: var(--white);
}

.roles-intro {
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.role-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .role-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-grid .role:nth-child(4),
  .role-grid .role:nth-child(5) {
    grid-column: span 1;
  }
}

.role {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 14px;
  background: var(--paper);
  border-left: 4px solid var(--navy);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.role.is-in {
  opacity: 1;
  transform: none;
}

.role[data-role="padre"] {
  border-left-color: var(--padre);
}
.role[data-role="profesor"] {
  border-left-color: var(--profesor);
}
.role[data-role="prefecto"] {
  border-left-color: var(--prefecto);
}
.role[data-role="control"] {
  border-left-color: var(--control);
}
.role[data-role="alumno"] {
  border-left-color: var(--alumno);
}

.role h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.role[data-role="padre"] h3 {
  color: var(--padre);
}
.role[data-role="profesor"] h3 {
  color: var(--profesor);
}
.role[data-role="prefecto"] h3 {
  color: var(--prefecto);
}
.role[data-role="control"] h3 {
  color: var(--control);
}
.role[data-role="alumno"] h3 {
  color: var(--alumno);
}

.role .role-sub {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.role ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.role li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}

.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

/* ——— CTA ——— */
.cta-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 125, 13, 0.22), transparent 40%),
    linear-gradient(135deg, var(--navy-deep), var(--sky));
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0.65rem auto 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

.cta-band .hero-ctas {
  justify-content: center;
  margin-top: 1.35rem;
  animation: none;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 1.4rem 0;
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--white);
}

/* ——— Valores agregados ——— */
.valores {
  background: var(--white);
}

.valores .section-text {
  margin-bottom: 1.75rem;
}

.valores-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .valores-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .valores-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.valor {
  padding: 1.25rem 1.1rem;
  background: var(--paper);
  border-radius: 14px;
  border-top: 3px solid var(--orange);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.valor.is-in {
  opacity: 1;
  transform: none;
}

.valor h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.valor p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ——— Features ——— */
.features {
  background: var(--paper);
}

.features-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.2rem 1.15rem;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.feature.is-in {
  opacity: 1;
  transform: none;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 700;
}

.feature p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ——— Story bands ——— */
.story {
  background: var(--white);
}

.story:nth-of-type(even) {
  background: var(--mist);
}

.story-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .story-row {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
  }

  .story-row.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .story-row.reverse .story-media {
    order: -1;
  }
}

.story-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 33, 56, 0.12);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  max-height: 280px;
}

.story-media.is-in {
  opacity: 1;
  transform: none;
}

.story-media img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.story-copy .section-text {
  max-width: 34rem;
}

.story-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.story-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* ——— Benefits strip ——— */
.benefits {
  background: var(--navy-deep);
  color: var(--white);
  padding: 3rem 0;
}

.benefits .section-kicker {
  color: #9bb8d9;
}

.benefits .section-title {
  color: var(--white);
}

.benefits .section-text {
  color: rgba(255, 255, 255, 0.78);
}

.benefit-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit {
  padding: 1rem 0.9rem;
  border-top: 2px solid rgba(232, 125, 13, 0.85);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.benefit.is-in {
  opacity: 1;
  transform: none;
}

.benefit strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.benefit span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* ——— Platforms ——— */
.platforms {
  background: var(--white);
}

.platform-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .platform-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform {
  padding: 1.25rem 1.15rem;
  background: var(--paper);
  border-radius: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.platform.is-in {
  opacity: 1;
  transform: none;
}

.platform h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.platform-qr {
  display: block;
  width: 140px;
  margin: 0.9rem auto 0;
  padding: 0.55rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 33, 56, 0.1);
  transition: transform 0.25s var(--ease);
}

.platform-qr:hover {
  transform: translateY(-2px);
}

.platform-qr img {
  width: 100%;
  height: auto;
  display: block;
}

.platform p {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— Nav secondary ——— */
.site-nav .nav-link {
  display: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
}

@media (min-width: 820px) {
  .site-nav .nav-link {
    display: inline;
    margin-right: 0.35rem;
  }
}

/* ——— Motion ——— */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
