:root {
  --bg-main: #060203;
  --bg-surface: #130509;
  --bg-card: rgba(24, 7, 12, 0.78);
  --wine-deep: #3b0610;
  --wine-primary: #8a1126;
  --wine-bright: #ca1d3b;
  --wine-neon: #ff3357;
  --wine-glow: rgba(202, 29, 59, 0.38);
  --text-main: #fcf4f6;
  --text-muted: #c29fa7;
  --border: rgba(202, 29, 59, 0.26);
  --border-highlight: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, .brand {
  font-family: "Outfit", sans-serif;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* Barra superior de lectura */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--wine-primary), var(--wine-neon));
  box-shadow: 0 0 14px var(--wine-neon);
  z-index: 100;
}

/* Fondos ambientales */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(202, 29, 59, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 29, 59, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  pointer-events: none;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 12%, rgba(138, 17, 38, 0.36), transparent 44%),
    radial-gradient(circle at 86% 80%, rgba(84, 9, 22, 0.35), transparent 48%);
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 2, 3, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
}

.brand .accent {
  color: var(--wine-neon);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine-neon);
  box-shadow: 0 0 12px var(--wine-neon);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links .nav-cta {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: rgba(202, 29, 59, 0.16);
  border: 1px solid var(--border);
  color: #ffc2cd;
}

.nav-links .nav-cta:hover {
  background: var(--wine-primary);
  color: #fff;
}

/* Botón Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 11px;
  background: rgba(202, 29, 59, 0.14);
  border: 1px solid var(--border);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 4% 1.2rem;
  background: rgba(12, 3, 6, 0.97);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer.open {
  display: flex;
}

.drawer-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Reveal al scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.hero {
  padding: 2.6rem 0 2rem;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.6rem;
  background: linear-gradient(145deg, rgba(34, 8, 16, 0.88), rgba(13, 3, 6, 0.92));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-highlight), 0 24px 60px rgba(0, 0, 0, 0.65);
  border-radius: 26px;
  backdrop-filter: blur(14px);
  animation: fadeUp 0.5s ease both;
}

.avatar-box {
  position: relative;
  flex-shrink: 0;
  width: 164px;
  height: 164px;
  padding: 4px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 36px rgba(202, 29, 59, 0.3);
}

.avatar-ring {
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent 15%, var(--wine-neon) 50%, transparent 85%);
  animation: spin 4.2s linear infinite;
}

.avatar-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--wine-deep);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-size: 3.6rem;
  font-weight: 800;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.status-pill,
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill {
  color: #ffb0be;
  background: rgba(202, 29, 59, 0.16);
  border: 1px solid var(--border);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine-neon);
  box-shadow: 0 0 10px var(--wine-neon);
  animation: pulse 1.8s infinite;
}

.role-chip {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-info h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 0.4rem;
}

.typewriter-line {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  font-weight: 600;
  color: var(--wine-neon);
  min-height: 2rem;
  margin-bottom: 0.75rem;
}

.cursor {
  animation: blink 0.9s infinite;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 1.55rem;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Botones + Shimmer */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.84rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wine-primary), var(--wine-bright));
  color: #fff;
  box-shadow: 0 8px 26px var(--wine-glow);
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s infinite;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(202, 29, 59, 0.16);
}

.btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow: 0 0 8px #5865f2;
}

/* Marquee */
.marquee-wrapper {
  margin-top: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(19, 5, 9, 0.72);
  padding: 0.72rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee-item strong {
  color: #ffb0be;
}

/* Contadores */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-highlight);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 2.15rem;
  color: var(--wine-neon);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-box span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Especialidades Bento Grid */
.skills {
  padding: 2.8rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine-neon);
  margin-bottom: 0.25rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-highlight);
  border-radius: var(--radius);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color var(--transition), transform var(--transition);
}

.bento-card:hover {
  border-color: var(--wine-neon);
  transform: translateY(-3px);
}

.bento-wide {
  grid-column: span 2;
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffb0be;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-badge svg {
  width: 16px;
  height: 16px;
  color: var(--wine-neon);
}

.bento-top strong {
  font-family: "Outfit", sans-serif;
  color: var(--wine-neon);
  font-size: 1.05rem;
}

.bento-card h3 {
  font-size: 1.16rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.skill-bar {
  margin-top: auto;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wine-primary), var(--wine-neon));
  box-shadow: 0 0 12px var(--wine-glow);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Experiencia & Controles */
.experience {
  padding: 2.8rem 0;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.62rem 1rem 0.62rem 2.4rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  min-width: 240px;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--wine-neon);
}

.view-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.view-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.view-btn.active {
  background: var(--wine-primary);
  color: #fff;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.65rem;
}

.filter-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.05rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--wine-primary);
  color: #fff;
  border-color: var(--wine-bright);
  box-shadow: 0 4px 16px var(--wine-glow);
}

/* Tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.2rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-highlight);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.35s ease both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 51, 87, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--wine-neon);
  box-shadow: 0 14px 34px rgba(138, 17, 38, 0.28);
}

.card:active {
  transform: scale(0.985);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(138, 17, 38, 0.22);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffb0be;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.12rem;
}

.card-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.card-more {
  color: #ffb0be;
  font-weight: 600;
}

/* Vista Timeline */
.cards-grid.timeline-view {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.85rem;
}

.cards-grid.timeline-view::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--wine-neon), var(--wine-deep));
}

.cards-grid.timeline-view .card {
  overflow: visible;
}

.cards-grid.timeline-view .card::after {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 1.8rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wine-neon);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 12px var(--wine-neon);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
}

.badge-active {
  background: rgba(46, 204, 113, 0.14);
  color: #6ee7a0;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.badge-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.badge-past {
  background: rgba(202, 29, 59, 0.18);
  color: #ffb0be;
  border: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
}

/* Contacto y Footer */
.contact {
  padding: 2rem 0 4rem;
}

.contact-card {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(145deg, rgba(59, 6, 16, 0.64), rgba(19, 5, 9, 0.94));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-highlight);
  border-radius: 26px;
}

.contact-card h2 {
  font-size: clamp(1.65rem, 3.8vw, 2.2rem);
  margin: 0.4rem 0 0.6rem;
  line-height: 1.2;
}

.contact-card p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 1.6rem;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 1, 2, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: min(480px, 100%);
  max-height: 86dvh;
  overflow-y: auto;
  background: #140509;
  border: 1px solid var(--wine-bright);
  border-radius: 22px;
  padding: 1.85rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78);
  animation: fadeUp 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-right: 2.2rem;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--wine-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-role {
  color: var(--wine-neon);
  font-weight: 600;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  background: rgba(202, 29, 59, 0.15);
  border: 1px solid var(--border);
  color: #ffc2cd;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wine-primary);
  color: #fff;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  border: 1px solid var(--wine-neon);
  font-weight: 600;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 80;
}

.toast svg {
  width: 18px;
  height: 18px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes shine {
  0%, 70% { left: -120%; }
  100% { left: 160%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

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

/* Responsive Móvil */
@media (max-width: 840px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 1.5rem 0 1.4rem;
  }

  .hero-card {
    flex-direction: column;
    text-align: center;
    gap: 1.4rem;
    padding: 1.6rem 1.2rem;
  }

  .avatar-box {
    width: 130px;
    height: 130px;
  }

  .pill-row,
  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

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

  .bento-wide {
    grid-column: span 1;
  }

  .controls-bar {
    width: 100%;
  }

  .search-wrap,
  .search-input,
  .view-toggle {
    width: 100%;
  }

  .view-btn {
    flex: 1;
    text-align: center;
  }

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

  .toast {
    left: 50%;
    right: auto;
    transform: translate(-50%, 14px);
    width: max-content;
    max-width: 90%;
  }

  .toast.show {
    transform: translate(-50%, 0);
  }
}