/* CogniLab — landing profesional (2026) */

:root {
  --bg: #000000;
  --bg-2: #050505;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.80);
  --muted-2: rgba(255, 255, 255, 0.60);

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --border-2: rgba(255, 255, 255, 0.08);

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;

  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container: 1120px;
  --pad: 24px;
  --header-h: 84px;
  --t: 200ms;
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
    --header-h: 72px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px circle at 12% 12%, rgba(59, 130, 246, 0.06), transparent 66%),
    radial-gradient(900px circle at 88% 16%, rgba(236, 72, 153, 0.045), transparent 66%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.main-content {
  padding-top: var(--header-h);
}

/* -------------------------
   Header / navegación
-------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(0, 0, 0, 0.70);
  border-bottom: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--t), color var(--t), transform var(--t);
}

.nav-link-auth {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  padding: 10px 14px;
  text-decoration: none;
}

.nav-link-primary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(139, 92, 246, 0.9));
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.2);
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.mobile-links .nav-link-auth {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.mobile-links .nav-link-primary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(139, 92, 246, 0.9));
  color: #fff;
  font-weight: 700;
}

.nav-links .nav-link-primary:hover,
.nav-links .nav-link-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.25);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-actions .nav-link-auth,
  .nav-actions .nav-link-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -110%;
  width: min(360px, 92vw);
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  border-left: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  transition: right 260ms ease;
  z-index: 60;
}

.mobile-menu.active {
  right: 0;
}

.mobile-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border-2);
}

.mobile-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav {
  padding: 18px var(--pad);
}

.mobile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mobile-links a {
  display: flex;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-links a:hover,
.mobile-links a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 55;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* -------------------------
   Tipografía / componentes
-------------------------- */
.section {
  padding: 72px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
}

.section-header {
  margin-bottom: 28px;
  text-align: center;
}

.section-title {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.15;
}

.how {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.how .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.7), rgba(59, 130, 246, 0.7));
  border-radius: 999px;
}

.plans {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.plans .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.7), rgba(59, 130, 246, 0.7));
  border-radius: 999px;
}


.section-subtitle {
  margin: 10px auto 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.03);
  transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
  font-size: 0.95rem;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 14px 18px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(139, 92, 246, 0.92));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
}

.btn-primary:hover {
  box-shadow:
    0 14px 34px rgba(59, 130, 246, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.btn-cta {
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(139, 92, 246, 0.90));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.16);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.98), rgba(139, 92, 246, 0.94));
  box-shadow:
    0 18px 44px rgba(59, 130, 246, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}

/* -------------------------
   Hero (simple)
-------------------------- */
.hero {
  padding: 100px 0 60px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}


.hero-title {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.4rem);
  line-height: 1.05;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
}

/* -------------------------
   Esferas / carrusel (landing)
-------------------------- */
.spheres {
  padding-top: 0;
  padding-bottom: 40px;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel-infinito-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: transparent;
  padding: 26px 0;
  min-height: 240px;
  display: block;
  isolation: isolate;
  contain: layout paint;
}

.carousel-infinito-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-infinito-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  align-items: center;
  min-height: 220px;
  width: max-content;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition: none;
}

.carousel-infinito-slide {
  flex: 0 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  min-width: 150px;
  height: 180px;
  contain: content;
}

.carousel-infinito-slide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.carousel-infinito-slide img {
  height: 170px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  position: relative;
  transition: transform 200ms ease-out,
    filter 200ms ease-out,
    box-shadow 200ms ease-out;
  max-width: 100%;
  display: block;
  transform-origin: center center;
  filter: brightness(1);
}

/* Hover sutil para esferas */
.carousel-infinito-slide:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Asegurar que el contenedor del slide también tenga cursor pointer si es interactivo */
.carousel-infinito-slide-link {
  cursor: pointer;
  transition: transform 200ms ease-out;
}

@media (max-width: 768px) {
  .carousel-infinito-wrapper {
    padding: 22px 0;
    min-height: 200px;
  }

  .carousel-infinito-slide {
    min-width: 130px;
    height: 150px;
  }

  .carousel-infinito-slide img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .carousel-infinito-wrapper {
    padding: 18px 0;
    min-height: 180px;
  }

  .carousel-infinito-slide {
    min-width: 110px;
    height: 130px;
  }

  .carousel-infinito-slide img {
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .carousel-infinito-track,
  .carousel-infinito-slide img,
  .carousel-infinito-slide::before {
    transition-duration: 0ms !important;
  }
}

/* -------------------------
   Proceso
-------------------------- */
.how-description {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.progress {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}

.progress::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  min-width: 0;
}

.progress-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.26), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.10);
  z-index: 1;
}

.progress-label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 720px) {
  .progress {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 520px;
  }

  .progress::before {
    display: none;
  }

  .progress-item {
    flex-direction: row;
    align-items: center;
  }

  .progress-label {
    text-align: left;
  }
}

.section-actions {
  margin-top: 22px;
  text-align: center;
}

/* Giro */
.giro {
  padding: 44px 0;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.giro-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.giro-logo {
  height: 34px;
  width: auto;
  opacity: 0.9;
}

/* ─── Catalog section (multi-card DB-powered) ─────── */
.catalog-section {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-section .section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.7), rgba(59, 130, 246, 0.7));
  border-radius: 999px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

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

.catalog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.15) inset;
}

.catalog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  display: block;
}

.catalog-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.10));
}

.catalog-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.catalog-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.catalog-card-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.catalog-card-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.read-more-btn {
  background: none;
  border: none;
  padding: 0;
  margin: -10px 0 16px;
  color: #818cf8;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.read-more-btn:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.catalog-card-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Discount badge */
.badge-dcto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(220, 38, 38, 0.16));
  color: #fca5a5;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.3);
  letter-spacing: 0.4px;
  animation: pulse-badge 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

/* Price display */
.catalog-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.catalog-price-original {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
  line-height: 1;
}

.catalog-price-final {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #a0f0bf;
  line-height: 1;
}

.catalog-price-normal {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.catalog-plan-meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* Servicio a medida card — same width in catalog grid */
.catalog-card.catalog-custom {
  border-color: rgba(236, 72, 153, 0.34);
  background:
    radial-gradient(550px circle at 25% 22%, rgba(236, 72, 153, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(236, 72, 153, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.catalog-custom:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(236, 72, 153, 0.15) inset;
}

/* Old plans-related styles */
.plan-meta {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

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

.plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.plan-curso {
  border-color: rgba(59, 130, 246, 0.32);
  background:
    radial-gradient(500px circle at 30% 20%, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.plan-personalizado {
  border-color: rgba(236, 72, 153, 0.34);
  background:
    radial-gradient(550px circle at 25% 22%, rgba(236, 72, 153, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.plan-title {
  margin: 0;
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
  line-height: 1.15;
}

.plan-subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.65;
  font-size: 0.98rem;
  word-break: normal;
  overflow-wrap: normal;
}

.nowrap {
  white-space: nowrap;
}

.plan-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  gap: 14px;
}

.plan-price-block {
  display: grid;
  gap: 6px;
}

.plan-footer {
  display: flex;
}

.plan-price {
  margin: 0;
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 2rem;
  line-height: 1;
  color: #FFFFFF;
}

.plan-currency {
  font-size: 1rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 6px;
}

.plan-meta {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* -------------------------
   Footer (compacto, más columnas)
-------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 36px 0 24px;
  background: #000;
}

.footer-grid {
  display: grid;
  /* Dar más ancho a "Contacto" para evitar salto de línea en el correo */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.footer-section {
  min-width: 0;
  /* permite que el contenido se ajuste sin invadir otras columnas */
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.footer-section h4 {
  margin: 0 0 10px;
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.94);
}

.footer-links a .ti,
.footer-links a i {
  flex: 0 0 auto;
}

.footer-links a span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Ajuste fino del correo para que quede más a la izquierda */
.footer-email-link {
  gap: 6px;
  /* menos espacio para ganar ancho útil */
}

.footer-email-link i,
.footer-email-link .ti {
  font-size: 1.05rem;
}

.footer-email-link span {
  transform: none;
  white-space: nowrap;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

/* En pantallas muy pequeñas, permitir salto de línea para evitar overflow */
@media (max-width: 380px) {
  .footer-email-link span {
    white-space: normal;
  }
}

.footer-links--columns {
  columns: 2;
  column-gap: 18px;
}

.footer-links--columns li {
  break-inside: avoid;
}

@media (max-width: 920px) {
  .footer-links--columns {
    columns: 1;
  }
}

.footer-muted {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-legal-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.60);
  font-size: 0.88rem;
}

/* Redes */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 12px;
  align-items: center;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  transition: transform var(--t), background var(--t), border-color var(--t);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.20);
}

.social-link .ti {
  font-size: 1.25rem;
  line-height: 1;
}

/* Colores por red (ícono) */
.social-link.discord {
  color: #5865F2;
}

.social-link.twitter {
  color: #1DA1F2;
}

.social-link.instagram {
  color: #E4405F;
}

.social-link.facebook {
  color: #1877F2;
}

.social-link.youtube {
  color: #FF0000;
}

.social-link.tiktok {
  color: #25F4EE;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.newsletter-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.newsletter-link:hover {
  color: rgba(255, 255, 255, 0.96);
}

.newsletter-logos {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.newsletter-logo {
  display: block;
  height: auto;
}

.newsletter-logo-substack {
  width: 48px;
}

.newsletter-logo-cognilab {
  height: 28px;
  width: auto;
  opacity: 0.9;
}