:root {
  --bg: #0c1424;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --primary: #2cf1d5;
  --primary-strong: #1ac0a8;
  --text: #e8edf5;
  --muted: #9fb1d1;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(44, 241, 213, 0.06), transparent 28%),
              radial-gradient(circle at 80% 10%, rgba(44, 241, 213, 0.08), transparent 24%),
              var(--bg);
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 18px 64px;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin: 0;
  color: #f5f8ff;
}

h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(26px, 3vw, 34px);
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  padding: 24px 0 32px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tag {
  color: var(--muted);
  font-size: 13px;
}

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

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #0e1a2b;
  box-shadow: 0 12px 30px rgba(44, 241, 213, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(44, 241, 213, 0.3);
}

.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.button-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  margin-top: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.lede,
.section-lede {
  font-size: 17px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hero-metadata div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.meta-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.meta-value {
  font-weight: 600;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(44, 241, 213, 0.12);
  color: var(--primary);
  border: 1px solid rgba(44, 241, 213, 0.3);
  font-size: 12px;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pill-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.pill-list strong {
  color: #cce6ff;
}

.note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px dashed var(--border);
}

.section {
  margin-top: 56px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 760px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: rgba(44, 241, 213, 0.3);
  color: var(--text);
}

.filter-btn.active {
  background: rgba(44, 241, 213, 0.12);
  color: var(--primary);
  border-color: rgba(44, 241, 213, 0.4);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 241, 213, 0.3);
  box-shadow: var(--shadow);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(44, 241, 213, 0.15);
}

.details {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: var(--shadow);
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.pill {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.logo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 241, 213, 0.3);
  box-shadow: var(--shadow);
}

.logo-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 241, 213, 0.3);
  box-shadow: var(--shadow);
}

.section.compact {
  margin-top: 38px;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-info {
  list-style: none;
  padding: 10px 0 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.contact-label {
  font-weight: 700;
  color: var(--text);
  min-width: 86px;
}

/* ── Tablet (≤ 900px) ───────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile (≤ 768px) ───────────────────────────── */
@media (max-width: 768px) {
  .page {
    padding: 20px 16px 48px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  /* truncar email largo en nav */
  .nav-actions .ghost {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }

  .hero-metadata {
    grid-template-columns: repeat(3, 1fr);
  }

  .pill-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .section {
    margin-top: 40px;
  }

  .section-head {
    max-width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* email largo en linea propia */
  .contact-info li {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .contact-info li a,
  .contact-info li span:last-child {
    word-break: break-all;
  }
}

/* ── Mobile pequeño (≤ 480px) ───────────────────── */
@media (max-width: 480px) {
  .page {
    padding: 14px 12px 40px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-tag {
    font-size: 11px;
  }

  /* ocultar email en nav (visible en sección contacto) */
  .nav-actions .ghost {
    display: none;
  }

  .hero-metadata {
    grid-template-columns: 1fr 1fr;
  }

  .hero-metadata div:last-child {
    grid-column: 1 / -1;
  }

  h3 {
    font-size: 17px;
  }

  h4 {
    font-size: 16px;
  }

  .lede,
  .section-lede {
    font-size: 15px;
  }

  .section.alt {
    padding: 20px 14px;
  }

  .pill-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .category-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .logo-card {
    gap: 10px;
  }

  .logo-image {
    width: 48px;
    height: 48px;
  }
}
