:root {
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border: #e0e0e0;
  --surface: #fff;
  --card-radius: 14px;
  --button: #fa6719;
  --button-border: #ffd4b8;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 100px 24px 24px;
  font-family: "Google Sans", "Roboto", Arial, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
}

/* Material Symbols base */
.material-symbols-rounded {
  font-family: "Material Symbols Rounded", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  padding: 12px 0 18px;
  gap: 12px;
  position: relative;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar-shell .page {
  padding: 0 24px;
  box-sizing: border-box;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__logo {
  height: 28px;
  width: auto;
  display: block;
}

.topbar__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.topbar__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 103, 25, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.topbar__link:hover::after {
  opacity: 1;
}

.topbar__link:hover {
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.topbar__link--active {
  color: var(--button);
  background: rgba(250, 103, 25, 0.12);
}

.topbar__link--active::after {
  opacity: 0.45;
}

.topbar__cta {
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid var(--button);
  background: var(--button);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topbar__cta:hover {
  box-shadow: 0 4px 12px rgba(250, 103, 25, 0.25);
  transform: translateY(-1px);
}

.topbar__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.topbar__menu-toggle:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.topbar__menu-icon,
.topbar__menu-icon::before,
.topbar__menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar__menu-icon::before,
.topbar__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.topbar__menu-icon::before {
  top: -6px;
}

.topbar__menu-icon::after {
  top: 6px;
}

.topbar--menu-open .topbar__menu-icon {
  background: transparent;
}

.topbar--menu-open .topbar__menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.topbar--menu-open .topbar__menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.bottom-nav__item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 18px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, flex 0.2s ease;
  flex: 1 1 0;
}

.bottom-nav__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bottom-nav__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bottom-nav__icon .material-symbols-rounded {
  font-family: "Material Symbols Rounded", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
}

.bottom-nav__label {
  max-width: 160px;
  opacity: 0.9;
  overflow: hidden;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
  color: var(--text-secondary);
}

.bottom-nav__item:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.bottom-nav__item--active {
  color: var(--button);
  background: rgba(250, 103, 25, 0.1);
  box-shadow: 0 6px 18px rgba(250, 103, 25, 0.12);
}

.bottom-nav__item--active .bottom-nav__icon {
  background: rgba(250, 103, 25, 0.18);
  box-shadow: 0 4px 10px rgba(250, 103, 25, 0.18);
  transform: scale(1.05);
}

.bottom-nav__item--active .bottom-nav__label {
  opacity: 1;
  color: var(--button);
}

.hero {
  text-align: center;
  margin: 28px auto 40px;
}

.hero__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__title {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: 30px;
  color: var(--text-primary);
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.section-head__meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.filters label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filters select {
  font: inherit;
  padding: 8px 28px 8px 12px;
  min-height: 34px;
  line-height: 1.2;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235f6368' d='M6 8 0 0h12z'/%3E%3C/svg%3E")
    right 10px center / 12px 8px no-repeat;
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.card__visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card__badge {
  position: relative;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
}

.card__badge--glass {
  background: rgba(255, 255, 255, 0.92);
}

.card__badge--text {
  position: static;
  padding: 0;
  background: none;
}

.card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.card__description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.card__action {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--button-border);
  background: var(--surface);
  color: var(--button);
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card__action:hover {
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
  transform: translateY(-1px);
}

/* Variantes visuales */
.card__badge-row {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.card__badge--tag {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  padding-inline: 10px;
}

.card--gemini .card__visual {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gemini-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

.gemini-star {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 140deg, #1e88e5, #6dd5ed, #f7e359, #f25f5c, #b084f1, #1e88e5);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.card--share .card__visual {
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.share-graphic {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, #e8f0fe, #f5f7fb 35%),
    radial-gradient(circle at 80% 30%, #ffe0b2, #f5f7fb 40%),
    radial-gradient(circle at 50% 80%, #e6f4ea, #f5f7fb 45%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.share-graphic::before,
.share-graphic::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #e6f4ea;
  width: 60px;
  height: 60px;
  bottom: 14px;
  right: 14px;
  opacity: 0.7;
}

.share-graphic::after {
  background: #e8f0fe;
  width: 48px;
  height: 48px;
  top: 18px;
  left: 16px;
  opacity: 0.6;
}

.share-avatar {
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  place-items: center;
  font-size: 52px;
  color: #1a73e8;
  font-weight: 600;
  letter-spacing: -1px;
}

.card--flow .card__visual {
  background: linear-gradient(120deg, #1a7fd1, #2ac3eb 40%, #1a7fd1 80%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.flow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}

.flow-tunnel {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 45%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.3) 70%);
  mix-blend-mode: screen;
}

.flow-title {
  position: relative;
  margin: 0 0 26px 24px;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  body {
    padding: 0 16px 48px;
  }

  .hero {
    margin: 48px auto 42px;
  }

  .cards {
    gap: 14px;
  }

  .card {
    min-height: 0;
  }

  body {
    padding: 110px 16px 120px;
  }

  .topbar-shell .page {
    padding: 0 16px;
  }

  .topbar {
    padding: 10px 0 14px;
    justify-content: space-between;
  }

  .topbar__menu-toggle {
    display: none;
  }

  .topbar__nav {
    display: none !important;
  }

  .topbar__link {
    justify-content: flex-start;
  }

  .topbar--menu-open .topbar__nav {
    display: flex;
  }

  .bottom-nav {
    display: flex;
  }
}

.footer {
  margin-top: 16px;
  padding: 12px 0 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer__text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Loader pantalla completa */
.page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 9999;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__logo img {
  display: block;
  max-width: 200px;
  width: 96px;
  height: auto;
  animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
