:root {
  --bg: #050505;
  --panel: rgba(255,255,255,0.06);
  --panel-border: rgba(255,255,255,0.12);
  --text: #f6f6f6;
  --muted: #b5b5b5;
  --accent: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 40, 40, 0.22), transparent 22%),
    radial-gradient(circle at 85% 16%, rgba(255, 230, 0, 0.18), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(0, 255, 120, 0.16), transparent 26%),
    linear-gradient(135deg, #0a0a0a 0%, #101010 38%, #050505 100%);
}

/* =========================
    INTRO
========================= */

.intro {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,0,0,0.2), transparent);
  top: -100px;
  left: -100px;
}

.intro::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,255,100,0.15), transparent);
  bottom: -100px;
  right: -100px;
}

.intro-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 1;
}

.intro-slide.active {
  opacity: 1;
}

.intro-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.intro-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff, #ffe600);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.intro-flash.flash-on {
  animation: flashAnim 0.12s ease-out;
}

@keyframes flashAnim {
  0% { opacity: 0; }
  35% { opacity: 0.28; }
  100% { opacity: 0; }
}

.intro-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #ffe600;
}

.intro-content h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 7vw, 82px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  max-width: none;
  width: 100%;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
  background: linear-gradient(90deg, #ff2d2d, #ffe600, #00ff88);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.intro-content p {
  margin: 0 0 24px;
  font-size: clamp(14px, 2vw, 22px);
  color: rgba(255,255,255,0.9);
  text-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.intro-content button {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  backdrop-filter: blur(8px);
  transition: 0.2s ease;
  background: linear-gradient(135deg, #ff2d2d, #ffe600);
  color: #000;
  font-weight: bold;
}

.intro-content button:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.intro.hide {
  animation: introFadeOut 0.7s ease forwards;
}

@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* =========================
    EFECTOS FONDO SITIO
========================= */

.flash {
  position: fixed;
  inset: 0;
  background: white;
  pointer-events: none;
  opacity: 0;
  animation: shutterFlash 1.05s ease-out 1;
  z-index: 5;
}

@keyframes shutterFlash {
  0% { opacity: 0; }
  8% { opacity: 0.95; }
  18% { opacity: 0.35; }
  100% { opacity: 0; }
}

.noise,
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.07), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.06), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255,255,255,0.05), transparent 38%);
  z-index: 0;
}

.noise {
  opacity: 0.03;
  background-image:
    linear-gradient(transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  background-size: 220px 220px, 180px 180px;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* =========================
    HOME
========================= */

.shell {
  width: 100%;
  max-width: 1180px;
  position: relative;
  z-index: 1;
  display: grid;
  /* CAMBIO: Ocupan 50% cada uno en pantalla grande */
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.hero,
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
}

.hero {
  padding: 42px;
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(255, 50, 50, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 230, 0, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(0, 255, 120, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  top: -140px;
  right: -120px;
  z-index: 0;
}

.brand,
.headline,
.bottom,
.card > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  font-size: 20px;
}

.kicker {
  color: #ffe66d;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 28px 0 14px;
}

.logo-img {
  width: 260px;
  max-width: 80%;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

.logo-mini {
  width: 120px;
}

.headline p {
  margin: 24px 0 0;
  max-width: 570px;
  font-size: 19px;
  line-height: 1.55;
  color: #f0f0f0;
}

.accent-line {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 23px;
  color: #e2772f;
  margin-top: 28px;
}

.stats {
  display: grid;
  /* CAMBIO: Los dos elementos ocupan 40% cada uno */
  grid-template-columns: 40% 40%;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
}

.stat strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.stat span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.stat:nth-child(1) {
  box-shadow: inset 0 0 0 1px rgba(255, 70, 70, 0.18);
}

.stat:nth-child(2) {
  box-shadow: inset 0 0 0 1px rgba(255, 230, 0, 0.16);
}

.stat:nth-child(3) {
  box-shadow: inset 0 0 0 1px rgba(0, 255, 120, 0.14);
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
}

.bottom-note {
  color: var(--muted);
  font-size: 14px;
  max-width: 460px;
  line-height: 1.5;
}

.card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
  background:
    radial-gradient(circle at top right, rgba(255, 230, 0, 0.10), transparent 20%),
    radial-gradient(circle at bottom left, rgba(255, 40, 40, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}

.mini-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f1f1f1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.card p {
  margin: 0;
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.6;
}

form {
  margin-top: 30px;
}

.input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.input-wrap input {
  width: 100%;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 18px;
  padding: 0 18px 0 56px;
  outline: none;
  transition: 0.25s ease;
}

.input-wrap input:focus {
  border-color: rgba(255, 230, 0, 0.45);
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.input-wrap span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.78;
  font-size: 18px;
}

.cta {
  width: 100%;
  height: 62px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, #ff3b3b 0%, #ffe600 55%, #00e676 100%);
  color: #050505;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 16px 30px rgba(255,255,255,0.10);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(255,255,255,0.14);
  filter: brightness(1.04);
}

.sub-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: #ededed;
  font-size: 13px;
}

.demo {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.demo-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  margin: 0 8px 8px 0;
}

.footnote {
  margin-top: 18px;
  font-size: 13px;
  color: #ababab;
  line-height: 1.5;
}

.copyright {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  width: 100%;
}

/* =========================
    RESPONSIVE
========================= */

@media (max-width: 980px) {
  .shell {
    /* CAMBIO: Los dos contenedores grandes uno arriba del otro */
    grid-template-columns: 1fr;
  }

  .stats {
    /* CAMBIO: Los elementos internos uno abajo del otro */
    grid-template-columns: 1fr;
  }

  .hero,
  .card {
    min-height: auto;
  }

  .hero {
    padding: 30px;
  }

  .card {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  body {
    padding: 16px;
  }

  .hero,
  .card {
    border-radius: 20px;
  }

  .bottom {
    align-items: flex-start;
  }

  h1 {
    max-width: none;
  }
}

input[type="password"] {
  letter-spacing: 3px;
}