:root {
  color-scheme: only light;
  --ink: #081826;
  --navy: #0b2447;
  --navy-2: #102f5e;
  --aqua: #00b8d9;
  --mint: #7fffd4;
  --sand: #f6f3ef;
  --line: rgba(8, 24, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: url("/fondo.png") center / cover no-repeat fixed;
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 48px 8vw 24px;
  display: grid;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--navy);
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--aqua) 100%);
  display: grid;
  place-items: center;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.headline {
  max-width: 620px;
}

.headline-logo {
  width: clamp(160px, 22vw, 240px);
  height: auto;
  margin: 0 0 18px;
  display: block;
}

.headline h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.6rem);
  margin: 0 0 12px;
  color: white;
}

.headline p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel {
  background: white;
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 60px rgba(12, 36, 68, 0.1);
  border: 1px solid rgba(11, 36, 71, 0.08);
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--navy);
}

.panel p {
  margin: 0 0 20px;
  color: rgba(8, 24, 38, 0.7);
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.code-input {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-size: 1.3rem;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  background: #f8fbfd;
  color: var(--navy);
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.headline-tagline {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: white;
}

.code-input:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(0, 184, 217, 0.15);
  transform: translateY(-2px);
}

.primary-button {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: #544eeb;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(11, 36, 71, 0.2);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.status {
  font-size: 0.95rem;
  margin-top: 12px;
}

.status.error {
  color: #c0392b;
}

.status.success {
  color: #107d5d;
}

.video-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(11, 36, 71, 0.12);
  background: #071a2b;
}

.video-card video {
  width: 100%;
  display: block;
  background: #071a2b;
}

.footer {
  padding: 24px 8vw 40px;
  font-size: 0.85rem;
  color: rgba(8, 24, 38, 0.6);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
