﻿:root {
  --bg: #070c14;
  --bg-soft: #0e1522;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.2);
  --text: #eef2f8;
  --muted: #b8c3d7;
  --accent: #f58220;
  --accent-2: #ff6b35;
  --tone-x-top: rgba(245, 130, 32, 0.045);
  --tone-x-bottom: rgba(8, 12, 20, 0.14);
  --tone-y-top: rgba(74, 124, 226, 0.055);
  --tone-y-bottom: rgba(9, 13, 22, 0.14);
  --shadow: 0 22px 55px rgba(2, 6, 14, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.cppa-v2 {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 130, 32, 0.15), transparent 36%),
    radial-gradient(circle at 84% 8%, rgba(45, 107, 238, 0.18), transparent 34%),
    linear-gradient(180deg, #050912 0%, #0a1020 58%, #070d18 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

#mobile-menu {
  display: none;
  background: rgba(8, 14, 25, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#mobile-menu.show {
  display: block;
}

.nav-link {
  color: #dde6f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent);
}

.site-main {
  padding: 30px 16px 80px;
}

.site-main.home-open {
  padding-top: 0;
}

.section-intro {
  padding: clamp(32px, 7vw, 72px) 0;
}

.section-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: clamp(22px, 4vw, 44px);
}

.home-open .section-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.home-open > #soluciones,
.home-open > #metodo,
.home-open > #contacto,
.home-open > #portal-profesor {
  background: linear-gradient(180deg, var(--tone-x-top) 0%, var(--tone-x-bottom) 100%);
}

.home-open > #alma,
.home-open > #quienes-somos,
.home-open > #experiencia-alumno,
.home-open > #alma-beneficios {
  background: linear-gradient(180deg, var(--tone-y-top) 0%, var(--tone-y-bottom) 100%);
}

.hero-clean {
  position: relative;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  padding: clamp(76px, 12vw, 136px) 0 clamp(56px, 9vw, 108px);
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.58) 0%, rgba(8, 12, 20, 0.2) 55%, rgba(8, 12, 20, 0) 100%);
}

.hero-clean::before,
.hero-clean::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-clean::before {
  top: -180px;
  left: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.16), transparent 72%);
}

.hero-clean::after {
  top: -180px;
  right: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(45, 107, 238, 0.11), transparent 72%);
}

.hero-clean > .max-w-7xl {
  position: relative;
  z-index: 1;
}

.hero-clean__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.hero-clean__layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-clean__content {
  max-width: 780px;
}

.hero-clean__lead {
  max-width: 700px;
}

.hero-clean__visual img {
  width: clamp(180px, 24vw, 360px);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.34));
}

.hero-clean .kpi-row {
  margin: 24px 0 30px;
  gap: 12px;
}

.hero-clean .kpi-chip {
  border-color: rgba(220, 231, 248, 0.34);
  background: transparent;
  color: #dde6f5;
  font-weight: 500;
}

.hero-clean .btn-ghost {
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}

.hero-home {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-note {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 14, 22, 0.48);
  padding: 22px;
}

.hero-points {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.hero-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics article {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.hero-metric-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f2f6fd;
}

.hero-metric-label {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 24px;
}

.kpi-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #d9e2f3;
  font-size: 0.92rem;
}

.hero-media {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 14, 22, 0.58);
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.section-head {
  text-align: center;
  margin-bottom: 22px;
}

.section-head p {
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.feature-card p {
  color: var(--muted);
}

.feature-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: #241205;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  text-align: center;
}

.value-icon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.alma-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}

.alma-shot {
  margin: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.alma-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.alma-shot--phone {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.alma-shot--phone img {
  aspect-ratio: 632 / 760;
  object-fit: cover;
  background: transparent;
}

.alma-shot--main img {
  aspect-ratio: 16 / 9;
}

.alma-shot figcaption {
  margin-top: 8px;
  color: #e7edf9;
  font-weight: 600;
  font-size: 0.92rem;
}

.alma-portal {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

.alma-portal__head {
  margin-bottom: 0;
}

.alma-shot--portal-wide {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.alma-shot--portal-wide img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(7, 12, 22, 0.72);
}

.alma-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(240px, 0.92fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.alma-intro__copy h2 {
  margin: 0;
}

.alma-intro__lead {
  margin: 18px 0 26px;
  max-width: 760px;
  font-size: clamp(1.1rem, 1.9vw, 1.26rem);
  color: var(--muted);
}

.alma-intro__items {
  display: grid;
  gap: 20px;
}

.alma-intro__item h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.alma-intro__item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.45vw, 1.16rem);
}

.alma-intro__visual {
  margin: 0;
  justify-self: end;
  text-align: center;
}

.alma-intro__visual img {
  width: min(100%, 440px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.32));
}

.alma-intro__visual figcaption {
  margin-top: 14px;
  color: #eff3fb;
  font-weight: 700;
  font-size: clamp(1.22rem, 2vw, 2rem);
  letter-spacing: -0.012em;
}

.hero-media.team-photo {
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-media.team-photo img {
  aspect-ratio: auto;
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 520px;
}

.section-cta {
  margin-top: 26px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #230f05;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 214, 181, 0.5);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2f8;
  text-decoration: none;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.cppa-v2 h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

body.cppa-v2 h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.015em;
}

body.cppa-v2 h3 {
  margin: 0;
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
}

body.cppa-v2 p {
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 10, 18, 0.76);
  color: #f1f5fd;
  padding: 12px 13px;
  font: inherit;
}

.contact-form label {
  color: #dce4f3;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 700px);
  gap: clamp(24px, 4.5vw, 64px);
  align-items: start;
}

.contact-visual {
  margin: 0;
  padding-top: 34px;
  display: flex;
  justify-content: center;
}

.contact-visual img {
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.3));
}

.contact-panel {
  width: 100%;
  max-width: 700px;
  justify-self: end;
}

.contact-head {
  text-align: left;
}

.contact-head p {
  margin-left: 0;
  margin-right: 0;
}

.contact-direct {
  text-align: left;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 10, 17, 0.86);
}

.site-footer a {
  color: #d6def0;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  display: none;
  z-index: 200;
  background: rgba(10, 15, 25, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-banner.show {
  display: block;
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  display: none;
  z-index: 220;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 14, 24, 0.95);
  color: #fff;
  padding: 14px 18px;
}

.toast.show {
  display: block;
}

.page-hero {
  text-align: center;
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.detail-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.text-blocks {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-block {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.alma-beneficios-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.alma-beneficio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.alma-beneficio-icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.alma-beneficio-copy h3 {
  margin: 0 0 8px;
}

.alma-beneficio-copy p {
  margin: 0;
  max-width: 32ch;
  line-height: 1.55;
}

.alma-beneficios-cta {
  margin-top: 30px;
  padding: 36px 24px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.alma-beneficios-cta h3 {
  margin: 0;
}

.alma-beneficios-cta .btn-primary {
  min-width: 252px;
}

.page-cta {
  margin-top: 26px;
  text-align: center;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

:focus-visible {
  outline: 2px solid #ffb980;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-panel {
    max-width: 100%;
    justify-self: stretch;
  }

  .contact-visual {
    justify-content: flex-start;
    padding-top: 0;
  }

  .contact-visual img {
    width: min(42vw, 180px);
  }

  .contact-head,
  .contact-direct {
    text-align: center;
  }

  .contact-head p {
    margin-left: auto;
    margin-right: auto;
  }

  .alma-intro__layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .alma-intro__visual {
    justify-self: center;
  }

  .alma-intro__visual img {
    width: min(84vw, 340px);
  }

  .hero-clean__layout {
    grid-template-columns: 1fr;
  }

  .hero-clean__visual {
    justify-self: start;
  }

  .hero-clean__visual img {
    width: clamp(150px, 34vw, 260px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .step-grid,
  .values-grid,
  .detail-grid,
  .text-blocks {
    grid-template-columns: 1fr 1fr;
  }

  .alma-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .alma-shot--main {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-main {
    padding: 24px 12px 66px;
  }

  .site-main.home-open {
    padding-top: 0;
  }

  .site-header .h-20 {
    height: 64px;
  }

  .site-header img {
    height: 48px;
    width: auto;
  }

  .hero-clean {
    padding: 68px 0 48px;
  }

  .hero-clean h1 {
    font-size: clamp(2rem, 11vw, 2.85rem);
    line-height: 1.06;
  }

  .hero-clean__content {
    text-align: center;
  }

  .hero-clean__lead {
    max-width: 100%;
  }

  .hero-clean .kpi-row {
    justify-content: center;
  }

  .kpi-chip {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .hero-clean__visual {
    display: none;
  }

  .contact-visual {
    justify-content: center;
  }

  .contact-visual img {
    width: min(46vw, 150px);
  }

  .alma-intro__item h3 {
    font-size: 1.4rem;
  }

  .alma-intro__item p {
    font-size: 1.03rem;
  }

  .alma-shot--phone {
    max-width: 320px;
  }

  .alma-shot--portal-wide {
    max-width: 100%;
  }

  .alma-beneficio-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 18px;
  }

  .alma-beneficio-icon {
    width: 72px;
    height: 72px;
  }

  .alma-beneficio-copy p {
    max-width: none;
  }

  .alma-beneficios-cta {
    padding: 26px 18px;
    gap: 12px;
  }

  .alma-beneficios-cta .btn-primary {
    min-width: 0;
  }

  .hero-media.team-photo {
    max-width: 360px;
  }

  .section-shell {
    border-radius: 18px;
    padding: 18px;
  }

  .feature-grid,
  .step-grid,
  .values-grid,
  .alma-gallery,
  .detail-grid,
  .text-blocks,
  .alma-beneficios-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn-primary,
  .actions .btn-ghost {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .section-intro {
    padding: 28px 0;
  }

  .section-head {
    text-align: left;
  }

  .section-head p {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-head {
    text-align: left;
  }

  .contact-direct {
    text-align: left;
  }
}
