/* =========================================================================
   NovaLearn - Hoja de Estilos Portada Pública (Diseño Formal Blanco & Azul)
   ========================================================================= */

:root {
  --nl-bg-white: #ffffff;
  --nl-bg-soft: #f8fafc;
  --nl-bg-card: #ffffff;
  --nl-text-heading: #0f172a;
  --nl-text-body: #334155;
  --nl-text-muted: #64748b;
  --nl-border-light: #e2e8f0;
  --nl-border-subtle: #f1f5f9;
  --nl-primary: #0f172a;
  --nl-accent-blue: #2563eb;
  --nl-accent-hover: #1d4ed8;
  --nl-accent-light: #eff6ff;
  --nl-max: 1200px;
  --nl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.landing {
  background-color: var(--nl-bg-white);
  color: var(--nl-text-body);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.landing ::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--nl-accent-blue);
}

.nl-shell {
  width: min(100% - 3rem, var(--nl-max));
  margin-inline: auto;
}

/* ===================== NAVEGACIÓN BLANCA ===================== */
.nl-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nl-border-light);
  transition: all 0.3s var(--nl-ease);
}

.nl-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nl-brand img.full-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nl-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.2rem);
}

.nl-nav__links a {
  color: var(--nl-text-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nl-nav__links a:hover {
  color: var(--nl-accent-blue);
}

.nl-nav__cta {
  background: var(--nl-primary);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.nl-nav__cta:hover {
  background: var(--nl-accent-blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

.nl-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--nl-border-light);
  border-radius: 8px;
  padding: 0.45rem;
  color: var(--nl-text-heading);
  cursor: pointer;
}

.nl-nav.is-stuck {
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
  padding-block: 0.85rem;
}

@media (max-width: 860px) {
  .nl-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--nl-border-light);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  }
  .nl-nav__links.is-open {
    display: flex;
  }
  .nl-nav__toggle {
    display: block;
  }
}

/* Skeleton Loading Animation */
.nl-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===================== HERO SECTION ===================== */
.nl-hero {
  position: relative;
  padding-top: clamp(8rem, 14vw, 10.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.04) 0%, rgba(255, 255, 255, 0) 70%), #ffffff;
  overflow: hidden;
}

.nl-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 960px) {
  .nl-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.nl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--nl-accent-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nl-accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1.25rem;
}

.nl-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nl-accent-blue);
}

.nl-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--nl-text-heading);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
}

.nl-gradient-text {
  background: linear-gradient(135deg, var(--nl-text-heading) 0%, var(--nl-accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nl-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--nl-text-body);
  margin: 0 0 2rem;
  max-width: 540px;
}

.nl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nl-btn--primary {
  background: var(--nl-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  border: none;
}
.nl-btn--primary:hover {
  background: var(--nl-accent-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

.nl-btn--ghost {
  background: #ffffff;
  color: var(--nl-text-heading);
  border: 1px solid var(--nl-border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.nl-btn--ghost:hover {
  background: var(--nl-bg-soft);
  border-color: #cbd5e1;
  color: var(--nl-accent-blue);
}

.nl-hero__meta {
  display: flex;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--nl-border-light);
}

.nl-metric strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nl-text-heading);
  line-height: 1.1;
}
.nl-metric span {
  font-size: 0.82rem;
  color: var(--nl-text-muted);
  font-weight: 500;
}

/* Hero Mockup Panel */
.nl-hero__panel {
  background: #ffffff;
  border: 1px solid var(--nl-border-light);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
}

.nl-panel__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--nl-border-light);
}
.nl-panel__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-block;
}

.nl-panel__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--nl-bg-soft);
  border: 1px solid var(--nl-border-light);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.nl-panel__row h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nl-text-heading);
  margin: 0 0 2px;
}
.nl-panel__row p {
  font-size: 0.76rem;
  color: var(--nl-text-muted);
  margin: 0;
}

.nl-panel__badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #2563eb;
  white-space: nowrap;
}

.nl-panel__progress {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nl-border-light);
}
.nl-panel__progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--nl-text-heading);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.nl-panel__track {
  height: 7px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.nl-panel__fill {
  height: 100%;
  background: var(--nl-accent-blue);
  border-radius: 9999px;
}

/* ===================== SECCIONES ===================== */
.nl-section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.nl-section--white {
  background-color: #ffffff;
}

.nl-section--soft {
  background-color: var(--nl-bg-soft);
  border-top: 1px solid var(--nl-border-light);
  border-bottom: 1px solid var(--nl-border-light);
}

.nl-section__head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.nl-section__head--center {
  text-align: center;
  margin-inline: auto;
}

.nl-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nl-accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.nl-section__head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--nl-text-heading);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.nl-section__head p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--nl-text-body);
  margin: 0;
}

/* Features Grid */
.nl-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.nl-feature {
  background: #ffffff;
  border: 1px solid var(--nl-border-light);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nl-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.07);
}

.nl-feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--nl-text-heading);
  margin: 0 0 0.5rem;
}
.nl-feature p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--nl-text-muted);
  margin: 0;
}

/* Courses Grid */
.nl-courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.nl-course {
  background: #ffffff;
  border: 1px solid var(--nl-border-light);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nl-course:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

.nl-course__cover {
  height: 130px;
}

.nl-course__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nl-course__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.nl-course h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nl-text-heading);
  margin: 0 0 0.5rem;
}

.nl-course p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--nl-text-muted);
  margin: 0 0 1.25rem;
  flex: 1;
}

.nl-course__foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--nl-text-muted);
}

/* NovaAI Section */
.nl-ai {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 960px) {
  .nl-ai {
    grid-template-columns: 1fr;
  }
}

.nl-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nl-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--nl-text-body);
  line-height: 1.5;
}
.nl-list svg {
  color: var(--nl-accent-blue);
  flex-shrink: 0;
  margin-top: 3px;
}

.nl-ai__card {
  background: #ffffff;
  border: 1px solid var(--nl-border-light);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.07);
}

.nl-chat {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nl-chat__msg {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 85%;
}
.nl-chat__msg--user {
  align-self: flex-end;
  background: var(--nl-primary);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}
.nl-chat__msg--ai {
  align-self: flex-start;
  background: var(--nl-bg-soft);
  color: var(--nl-text-heading);
  border: 1px solid var(--nl-border-light);
  border-bottom-left-radius: 3px;
}
.nl-chat__typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}
.nl-chat__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nl-accent-blue);
  animation: typing 1.4s infinite ease-in-out both;
}
.nl-chat__typing i:nth-child(1) { animation-delay: -0.32s; }
.nl-chat__typing i:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Reviews */
.nl-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.nl-review {
  background: #ffffff;
  border: 1px solid var(--nl-border-light);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.nl-review p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--nl-text-body);
  margin: 0.85rem 0 1.25rem;
}
.nl-review__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nl-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nl-review__author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--nl-text-heading);
}
.nl-review__author span {
  font-size: 0.78rem;
  color: var(--nl-text-muted);
}

/* Contact */
.nl-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .nl-contact {
    grid-template-columns: 1fr;
  }
}

.nl-contact__info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nl-contact__info li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nl-contact__info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--nl-text-heading);
}
.nl-contact__info span {
  font-size: 0.82rem;
  color: var(--nl-text-muted);
}

.nl-form {
  background: #ffffff;
  border: 1px solid var(--nl-border-light);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

.nl-field--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .nl-field--split {
    grid-template-columns: 1fr;
  }
}

.nl-field {
  margin-bottom: 1.2rem;
}
.nl-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.45rem;
}
.nl-field input,
.nl-field textarea {
  width: 100%;
  background: var(--nl-bg-soft);
  border: 1px solid var(--nl-border-light);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--nl-text-heading);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.nl-field input:focus,
.nl-field textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--nl-accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.nl-field textarea {
  height: 110px;
  resize: vertical;
}

.nl-submit {
  width: 100%;
  background: var(--nl-primary);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.85rem 1.5rem;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.nl-submit:hover {
  background: var(--nl-accent-blue);
}

.nl-form__note {
  font-size: 0.78rem;
  color: var(--nl-text-muted);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.5;
}

.nl-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
}
.nl-alert.is-visible {
  display: flex;
}
.nl-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.nl-alert--ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Footer */
.nl-footer {
  background: #ffffff;
  border-top: 1px solid var(--nl-border-light);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.nl-footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .nl-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .nl-footer__grid {
    grid-template-columns: 1fr;
  }
}

.nl-footer h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--nl-text-heading);
  margin: 0 0 1rem;
}
.nl-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.nl-footer ul a {
  font-size: 0.88rem;
  color: var(--nl-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nl-footer ul a:hover {
  color: var(--nl-accent-blue);
}

.nl-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--nl-border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--nl-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}
