:root {
  --bg: #f2f7f7;
  --ink: #0f1f22;
  --muted: #5b6d70;
  --line: rgba(11, 93, 107, .14);
  --petrol: #0b5d6b;
  --petrol-deep: #073c47;
  --petrol-bright: #12a7b5;
  --mint: #b9ece6;
  --lime: #c8f26a;
  --card: #ffffff;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70vmax 50vmax at 100% 0%, rgba(18, 167, 181, .16), transparent 60%),
    radial-gradient(50vmax 50vmax at 0% 100%, rgba(200, 242, 106, .22), transparent 60%),
    var(--bg);
}

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

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- cabecera ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(242, 247, 247, .8);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.stuck { border-color: var(--line); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.brand .mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--petrol-bright), var(--petrol));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(11, 93, 107, .6);
}
.brand .mark svg { width: 15px; height: 15px; }
.brand span { color: var(--muted); font-weight: 500; }

.search {
  position: relative;
  flex: 0 1 280px;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px 9px 36px;
  font: inherit;
  font-size: .88rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus {
  border-color: var(--petrol-bright);
  box-shadow: 0 0 0 4px rgba(18, 167, 181, .18);
}
.search svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: var(--petrol);
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin: 20px 0 8px;
  padding: clamp(34px, 6vw, 60px) clamp(22px, 5vw, 56px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(18, 167, 181, .55), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(200, 242, 106, .28), transparent 60%),
    linear-gradient(135deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  box-shadow: 0 30px 60px -30px rgba(7, 60, 71, .6);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  right: -120px; top: -180px;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 260px; height: 260px;
  right: 40px; bottom: -150px;
  border-color: rgba(200, 242, 106, .35);
  animation: drift 24s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-30px, 24px); }
}

.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}
.hero .kicker i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 242, 106, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  to { box-shadow: 0 0 0 9px rgba(200, 242, 106, 0); }
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint);
}
.hero p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- filtros ---------- */
.filters {
  display: flex;
  gap: 8px;
  margin: 26px 0 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.chip:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.chip.on {
  background: var(--lime);
  color: var(--petrol-deep);
  border-color: var(--lime);
}

/* ---------- secciones ---------- */
.section { padding: 26px 0 4px; }
.section.hidden { display: none; }

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -.02em;
}
.section-head .n {
  font-size: .7rem;
  font-weight: 700;
  color: var(--petrol);
  background: rgba(18, 167, 181, .14);
  padding: 3px 9px;
  border-radius: 999px;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
}

/* ---------- tarjetas ---------- */
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px 12px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(11, 93, 107, .04), 0 10px 24px -18px rgba(11, 93, 107, .3);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
}
.card.in { opacity: 1; transform: translateY(0); }
.card.hidden { display: none; }

/* franja lateral */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--petrol-bright), var(--petrol));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}

a.card:hover, a.card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(18, 167, 181, .5);
  box-shadow: 0 2px 4px rgba(11, 93, 107, .05), 0 18px 34px -18px rgba(11, 93, 107, .5);
  outline: none;
}
a.card:hover::before { transform: scaleY(1); }

.logo {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 13px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.logo.contain {
  object-fit: contain;
  background: #050b16;
  padding: 4px;
}
a.card:hover .logo { transform: scale(1.06) rotate(-3deg); }

.info { flex: 1; min-width: 0; }
.card h3 {
  margin: 0 0 2px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}
.card p + p {
  margin-top: 2px;
  color: var(--petrol);
  font-weight: 600;
}

.arrow {
  width: 32px; height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 167, 181, .12);
  color: var(--petrol);
  transition: background .25s, color .25s, transform .4s var(--ease);
}
.arrow svg { width: 15px; height: 15px; }
a.card:hover .arrow {
  background: var(--petrol);
  color: #fff;
  transform: translate(2px, -2px);
}

.tag {
  flex: none;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--petrol-deep);
  background: var(--lime);
  padding: 4px 8px;
  border-radius: 999px;
}
.card.soon .logo { filter: grayscale(.5); }
.card.soon h3, .card.soon p { opacity: .65; }

.ext {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--petrol-bright);
}
.ext svg { width: 11px; height: 11px; }

.empty {
  display: none;
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.empty.show { display: block; }

/* ---------- pie ---------- */
footer {
  margin-top: 56px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 640px) {
  .wrap { width: min(1120px, 100% - 24px); }
  .search { flex-basis: 150px; }
  .brand span { display: none; }
  .hero { margin-top: 12px; border-radius: 20px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card { opacity: 1; transform: none; }
}

/* ---------- marcador cuando falta el archivo del logo ---------- */
.logo.ph {
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--petrol);
  background: rgba(18, 167, 181, .12);
}
