:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border-soft: #e5e7eb;
  --primary: #0071e3;
  --primary-soft: #4f9cff;
  --text-main: #0f172a;
  --text-muted: #6b7280;

  /* Bordes casi rectos */
  --radius-xl: 20px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;

  /* Sombras muy suaves, estilo Apple */
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.10);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: linear-gradient(180deg, #f9fafb 0, #f3f4f6 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* Tamaño controlado del logo LatinoNexus */
.brand-logo {
  height: 52px;      /* tamaño en computadora */
  width: auto;
  display: block;
}



/* NAV */

/* NAVBAR elegante, cuadrado y moderno */
.nav {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  padding: 16px 26px;
  
  border-radius: 12px; /* cuadrado suave, NO redondo */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(209, 213, 219, 0.75); /* gris elegante */
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10); /* sombra premium */
}



.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 24px;
  height: 24px;
  border-radius: 8px;                /* casi cuadrado */
  background: radial-gradient(circle at 30% 0%, #ffffff 0, var(--primary) 40%, var(--primary-soft) 100%);
  box-shadow: 0 10px 20px rgba(79, 156, 255, 0.45);
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* NUEVO: estilo real para los <a class="nav-link"> */
.nav-link {
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 6px; /* rectangular suave */
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-main);
  transform: translateY(-1px);
}


.nav-cta {
  padding: 10px 20px;
  border: none;
  border-radius: 8px; /* cuadrado suave */
  background: linear-gradient(135deg, #3b82f6, #6366f1); /* azul premium */
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.12s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.45);
}


/* HERO */

.hero {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.gradient {
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* BUSCADOR */

.search-box {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;                /* suave pero no redondísimo */
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.search-icon {
  font-size: 16px;
  opacity: 0.7;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
}

.search-box button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.search-box button:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

/* TAGS */

/* Aplica a .hero-tags y .home-tags */
.hero-tags,
.home-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 6px 12px;
  font-size: 11px;
  background: var(--surface-soft);
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
}

.tag-pill:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* META HERO */

.hero-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badge {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4ff;
  border: 1px solid #e0e7ff;
}

.hero-meta-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* HERO CARD A LA DERECHA */

.hero-card {
  background: var(--surface);
  border-radius: 12px;                /* menos redonda */
  padding: 18px 18px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.hero-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  border-radius: 8px;                 /* casi recto */
  padding: 10px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
}

.hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-stat-value {
  font-size: 15px;
  font-weight: 600;
}

.hero-stat-foot {
  font-size: 10px;
  color: #16a34a;
  margin-top: 2px;
}

/* SECCIONES */

.section {
  margin-top: 44px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.section-link {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}

/* GRID DE CATEGORÍAS */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  position: relative;
  display: block;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

/* pequeño brillo diagonal muy suave */
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 156, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
  border-color: rgba(59, 130, 246, 0.55);
  background: linear-gradient(145deg, #ffffff, #f9fafb);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon {
  font-size: 22px;
  margin-bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.06);
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cat-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* CTA FINAL */

/* CTA Premium elegante */
.cta {
  margin-top: 48px;
  padding: 32px 26px;

  background: linear-gradient(135deg, #0f172a, #1e293b 40%, #111827);
  border-radius: 16px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;

  color: #e2e8f0;

  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);

  transition: all 0.25s ease;
}

/* En hover, MUY sutil */
.cta:hover {
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.55);
}


.cta-main {
  flex: 2;
}

.cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.cta-text {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}


.cta-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-btn-primary {
  border-radius: 999px;
  border: none;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  background: #f9fafb;
  color: #0f172a;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cta-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  background: #ffffff;
}

.cta-note {
  font-size: 11px;
  color: #9ca3af;
}

/* FOOTER */

.footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}


/* Quitar subrayado y estilo de link en las tarjetas de categorías */
a.cat-card,
a.cat-card:link,
a.cat-card:visited,
a.cat-card:hover,
a.cat-card:active {
  text-decoration: none !important;
  color: inherit !important;
}

/* Asegurar que el título nunca se subraye */
a.cat-card .cat-name,
a.cat-card .cat-name:link,
a.cat-card .cat-name:visited,
a.cat-card .cat-name:hover,
a.cat-card .cat-name:active {
  text-decoration: none !important;
}


/* ------------ RESPONSIVE HOME ------------ */
@media (max-width: 900px) {
  /* nav: que pueda hacer wrap */
  .nav {
    padding: 0.7rem 1rem;
  }
  .nav-right {
    gap: 0.5rem;
  }
  .nav-links {
    gap: 0.7rem;
  }
}

@media (max-width: 700px) {
  /* nav: apilar links y botón */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }


@media (max-width: 700px) {
  .brand-logo {
    height: 40px;   /* tamaño más chico en celular (iPhone, etc.) */
  }
}




  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .nav-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* hero en columna (aprovecha que ya es grid con 1 col en 880px) */
  .hero {
    padding: 1.4rem 0;
    gap: 24px;
  }

  /* buscador: en columna */
  .search-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .search-box input,
  .search-box button {
    width: 100%;
  }

  /* márgenes laterales más chicos */
  .page {
    padding: 0 1rem;
  }
  
  @media (max-width: 700px) {
  .hero-card {
    display: none;
  }
}

  
  
  /* logo un poco más chico en móvil */

}




