/* assets/css/style.css */

:root {
  --bg-body: #05060a;
  --bg-header: #060913;
  --bg-card: #101522;
  --bg-card-soft: #141a2b;
  --border-soft: #1f2937;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-lg: 14px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 8px 24px rgba(15, 23, 42, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d283a 0, #020617 35%, #000000 100%);
  color: var(--text-main);
}

/* Layout */

.page-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

@media (min-width: 960px) {
  .page-shell {
    padding: 2.25rem 0 3.5rem;
  }
}

/* Header + Nav */

.site-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(14px);
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  padding: 2px;
  background: radial-gradient(circle at 20% 0%, #646a6b, #2e373b 40%, #0e1831 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* o "cover" si quieres que llene más el marco */
  display: block;
  border-radius: 10px;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.brand-text p {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.header-meta {
  text-align: right;
}

.header-meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;
}

.header-meta .tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35);
}

.header-meta .sub {
  margin: 0.22rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Navegación */

.site-nav {
  margin-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.site-nav a:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.35);
}

.site-nav a.active {
  background: linear-gradient(135deg, #22d3ee, #0ea5e9);
  color: #0b1120;
  border-color: transparent;
  box-shadow: 0 12px 25px rgba(56, 189, 248, 0.6);
  font-weight: 600;
}

/* Main */

main {
  margin-top: 0.75rem;
}

/* Secciones genéricas */

.section {
  background: rgba(3, 7, 18, 0.72);
  border-radius: 18px;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: var(--shadow-subtle);
}

.section + .section {
  margin-top: 1.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1rem;
  margin: 0;
}

.section-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Hero / Inicio */

.hero {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.hero-main {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.09), rgba(15, 23, 42, 0.9));
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.6rem;
  border: 1px solid rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-soft);
}

.hero-kicker {
  font-size: 0.75rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.hero-title {
  margin: 0;
  font-size: 1.35rem;
}

.hero-lead {
  margin: 0.4rem 0 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.chip:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.45);
}

.chip-strong {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.7);
  color: var(--accent-strong);
}

.chip-label {
  font-weight: 600;
  color: var(--text-main);
}

.hero-side {
  display: grid;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.82rem;
}

.hero-card strong {
  color: var(--accent-strong);
}

/* Cards genéricos */

.cards-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .cards-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
}

.card-title {
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}

.card-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.card-meta {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Tablas */

.table-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

thead {
  background: rgba(15, 23, 42, 0.95);
}

th,
td {
  padding: 0.55rem 0.7rem;
  text-align: left;
}

th {
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(31, 41, 55, 1);
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.7);
}

tbody tr:nth-child(odd) {
  background: rgba(3, 7, 18, 0.7);
}

tbody tr:hover {
  background: rgba(37, 99, 235, 0.2);
}

td {
  border-bottom: 1px solid rgba(17, 24, 39, 0.9);
}

/* Enlaces */

a {
  color: var(--accent-strong);
}

a:hover {
  color: var(--accent);
}

/* Botones-enlace pequeños */

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.76rem;
  text-decoration: none;
  transition: all 0.16s ease-out;
}

.link-button:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.4);
}

/* Listas pequeñas */

.muted-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.muted-list li + li {
  margin-top: 0.1rem;
}

/* Footer */

.site-footer {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.95);
}
