/* Home / landing con video y catálogo de módulos */
.cl-hero {
  position: relative;
  margin: -15px -15px 28px;
  min-height: 420px;
  max-height: 62vh;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: #0a3d44;
  animation: cl-rise .5s var(--cl-ease) both;
}
.cl-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cl-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 45, 52, 0.88) 0%, rgba(10, 45, 52, 0.55) 48%, rgba(10, 45, 52, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 45, 52, 0.2) 0%, rgba(10, 45, 52, 0.75) 100%);
}
.cl-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 36px 40px;
  max-width: 640px;
  color: #fff;
}
.cl-hero-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fd4cf;
  margin-bottom: 10px;
}
.cl-hero-content h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.cl-hero-content p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  max-width: 34em;
}
.cl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cl-section-title {
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--cl-ink);
  letter-spacing: -0.02em;
}
.cl-section-sub {
  margin: 0 0 18px;
  color: var(--cl-muted);
  font-size: 14px;
}
.cl-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.cl-feature {
  display: block;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  overflow: hidden;
  box-shadow: var(--cl-shadow);
  transition: transform .25s var(--cl-ease), box-shadow .25s var(--cl-ease);
  color: inherit;
  height: 100%;
}
.cl-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(26, 43, 52, 0.14);
}
.cl-feature.is-locked {
  opacity: .72;
  cursor: default;
}
.cl-feature.is-locked:hover { transform: none; }
.cl-feature-media {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #123940;
}
.cl-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(1.05);
  transition: transform .45s var(--cl-ease);
}
.cl-feature:hover .cl-feature-media img { transform: scale(1.04); }
.cl-feature-media .cl-feature-icon {
  position: absolute;
  left: 14px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--cl-teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.cl-feature-body {
  padding: 14px 16px 16px;
}
.cl-feature-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--cl-ink);
}
.cl-feature-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cl-muted);
}
.cl-feature-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cl-teal);
}

/* Landing pública (sin sesión) */
.cl-landing {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(15,122,134,.12), transparent 60%),
    var(--cl-canvas);
}
.cl-landing .cl-hero {
  margin: 0;
  border-radius: 0;
  min-height: 72vh;
  max-height: none;
}
.cl-landing-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.cl-login-card {
  background: #fff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
  padding: 22px 22px 18px;
  max-width: 420px;
  margin: 0 auto 36px;
}
.cl-login-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--cl-ink);
}
.cl-login-card .cl-muted { margin-bottom: 14px; display: block; }

@media (max-width: 767px) {
  .cl-hero-content { padding: 36px 20px 28px; }
  .cl-hero-content h1 { font-size: 28px; }
  .cl-hero { min-height: 360px; }
  .cl-landing .cl-hero { min-height: 56vh; }
}
