:root {
  --bg: #0d0f1a;
  --text: #f2f3f8;
  --muted: #9aa0b8;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-hover: rgba(255, 255, 255, 0.1);
  --blob1: #7c3aed;
  --blob2: #06b6d4;
  --blob3: #f43f5e;
  --fitness: #22c55e;
  --media: #a855f7;
  --lifeos: #f59e0b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

:root[data-theme="light"] {
  --bg: #f4f5fb;
  --text: #151826;
  --muted: #5b6178;
  --card: rgba(255, 255, 255, 0.65);
  --card-border: rgba(20, 24, 40, 0.08);
  --card-hover: rgba(255, 255, 255, 0.9);
  --blob1: #c4b5fd;
  --blob2: #a5f3fc;
  --blob3: #fecdd3;
  --fitness: #16a34a;
  --media: #9333ea;
  --lifeos: #d97706;
  --shadow: 0 20px 50px rgba(30, 35, 60, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* Fondo animado */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite alternate;
}
.b1 { background: var(--blob1); top: -15vmax; left: -10vmax; }
.b2 { background: var(--blob2); bottom: -20vmax; right: -10vmax; animation-delay: -6s; }
.b3 { background: var(--blob3); top: 40%; left: 45%; width: 30vmax; height: 30vmax; animation-delay: -12s; }

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(5vmax, 4vmax) scale(1.1); }
  100% { transform: translate(-4vmax, -3vmax) scale(0.95); }
}

/* Botón de tema */
.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
  z-index: 10;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); }
.theme-toggle svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

/* Layout */
.container {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 16px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.hero { text-align: center; animation: rise 0.7s ease both; }
.date {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.subtitle { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

/* Tarjetas */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile .card { flex: 1; }

/* Enlace discreto al panel del hosting */
.host {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  animation: rise 0.7s ease 0.2s both;
}
.host svg { width: 14px; height: 14px; }
.host strong { font-weight: 600; color: var(--text); }
.host:hover, .host:focus-visible {
  color: var(--text);
  background: var(--card-hover);
  border-color: var(--muted);
  outline: none;
}

.card {
  --accent: var(--fitness);
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s, border-color 0.25s;
  animation: rise 0.7s ease both;
}
.card--media { --accent: var(--media); animation-delay: 0.1s; }
.card--fitness { animation-delay: 0.05s; }
.card--lifeos { --accent: var(--lifeos); animation-delay: 0.15s; }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card:hover, .card:focus-visible {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  outline: none;
}

.card__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.card__icon svg { width: 30px; height: 30px; }

.card__body { flex: 1; min-width: 0; }
.card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.85;
}

.card__arrow {
  font-size: 1.5rem;
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}
.card:hover .card__arrow { transform: translateX(6px); color: var(--accent); }

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .container { padding-top: 72px; gap: 36px; }
  .card { padding: 20px 18px; gap: 14px; }
  .card__icon { width: 50px; height: 50px; }
  .card__icon svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
