:root {
  --color-primario: #2563eb;
  --color-secundario: #1e293b;
  --color-fondo: #020617;
  --color-texto: #e5e7eb;
  --color-acent: #22c55e;
  --radius-base: 12px;
  --shadow-suave: 0 18px 45px rgba(15, 23, 42, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--color-texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

/* NAV */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.4),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: #cbd5f5;
  opacity: 0.8;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #22c55e, #38bdf8);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin-bottom: 0.7rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}

.hero-logo-large {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.hero-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 650;
  margin-bottom: 0.2rem;
  background: linear-gradient(to right, #22c55e, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-claim {
  font-size: 0.98rem;
  color: #cbd5f5;
  max-width: 22rem;
}

.hero-subtitle {
  color: #9ca3af;
  font-size: 0.98rem;
  max-width: 32rem;
  margin: 1.2rem 0 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border-color 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  color: inherit;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #22c55e, #16a34a 45%, #22c55e);
  color: white;
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(34, 197, 94, 0.9);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: #e5e7eb;
}

.btn-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.hero-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 1.1rem;
}

/* Panel derecho hero */

.hero-panel {
  border-radius: 24px;
  padding: 1.7rem 1.6rem;
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(244, 114, 182, 0.18), transparent 65%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-suave);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 1px 1px,
      rgba(148, 163, 184, 0.38) 0,
      transparent 0
    );
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at top, black, transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: #bbf7d0;
  white-space: nowrap;
}

.hero-panel-main {
  position: relative;
  z-index: 1;
  margin-bottom: 1.4rem;
}

.hero-panel-tagline {
  font-size: 0.8rem;
  color: #e5e7eb;
  opacity: 0.9;
  margin-bottom: 0.4rem;
}

.hero-panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-panel-desc {
  font-size: 0.86rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.hero-panel-highlight {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
}

.hero-panel-highlight div {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.2);
}

.hero-mascot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.4);
  overflow: hidden;
  background: #020617;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
  z-index: 2;
}

.hero-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-mascot-caption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #cbd5f5;
  opacity: 0.9;
}

.hero-panel-footer {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: #cbd5f5;
}

.hero-panel-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-panel-stat span:first-child {
  font-size: 0.78rem;
  opacity: 0.8;
}

.hero-panel-stat span:last-child {
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-panel-pill {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* SECCIONES GENERALES */

section {
  padding: 2.5rem 0;
  scroll-margin-top: 4.5rem;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 32rem;
}

/* PROYECTO / OBJETIVOS */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-base);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.8);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.card p {
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.list {
  list-style: none;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.list li::before {
  content: "•";
  font-size: 1rem;
  line-height: 1.2;
  color: #22c55e;
  margin-top: 0.05rem;
}

/* DIFERENCIALES */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-base);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.86rem;
}

.feature-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ----- Pantallas del juego (galería con modal) ----- */

.screens-section {
  margin-top: 2.3rem;
}

.screens-layout {
  margin-top: 1.5rem;
}

.screen-thumbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.screen-thumb {
  width: 110px;
  padding: 0.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #020617;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.screen-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.screen-thumb:hover {
  transform: translateY(-2px);
  border-color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.screen-thumb.is-active {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

/* Modal flotante */

.screen-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.screen-modal.is-open {
  display: flex;
}

.screen-modal-inner {
  position: relative;
  max-width: 420px;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.modal-phone-frame {
  border-radius: 24px;
  padding: 0.6rem;
  background: radial-gradient(
    circle at 20% 0,
    rgba(34, 197, 94, 0.25),
    rgba(15, 23, 42, 1) 70%
  );
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  width: 100%;
}

.modal-phone-inner {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  display: flex;
}

.modal-phone-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* siempre se ve completa la pantalla */
  background: #000;
}

.screen-caption {
  font-size: 0.86rem;
  color: #e5e7eb;
  text-align: center;
}

.screen-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.screen-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #e5e7eb;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.screen-arrow:hover {
  transform: translateY(-1px);
  border-color: #22c55e;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
}

.screen-dots {
  display: flex;
  gap: 0.35rem;
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.screen-dot.is-active {
  background: #22c55e;
  opacity: 1;
  transform: scale(1.2);
}

.screen-modal-close {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  transform: translate(50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive miniaturas */

@media (max-width: 720px) {
  .screen-thumb {
    width: 90px;
  }
}

@media (max-width: 520px) {
  .screen-thumb {
    width: 80px;
  }
}

/* EQUIPO */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.member {
  padding: 1rem;
  border-radius: var(--radius-base);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  font-size: 0.86rem;
  text-align: center;
}

.member-photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.7);
  overflow: hidden;
  background: #020617;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.member-role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.member-contact {
  font-size: 0.8rem;
  color: #a5b4fc;
  margin-top: 0.2rem;
}

/* CRONOGRAMA */

.timeline {
  display: grid;
  gap: 0.9rem;
  position: relative;
  padding-left: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #22c55e, transparent);
  opacity: 0.7;
}

.milestone {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
}

.milestone::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0.25rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.milestone-title {
  font-weight: 600;
}

.milestone-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.15rem;
}

/* CONTACTO */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-info p {
  font-size: 0.88rem;
  color: #e5e7eb;
  opacity: 0.92;
  margin-bottom: 0.7rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.contact-list span {
  font-weight: 500;
  color: #cbd5f5;
}

.social-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
  color: #e5e7eb;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-icon:hover {
  transform: translateY(-1px);
  border-color: #22c55e;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
  background: radial-gradient(circle at 20% 0, #22c55e22, #020617 60%);
}

.social-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* FOOTER */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 0 1.8rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-logos {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.footer-logos img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.3rem;
  }

  .hero-panel {
    margin-top: 0.5rem;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .features-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .features-grid,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    gap: 0.5rem;
  }
}
