:root {
  --bg: #090b12;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f8fb;
  --muted: #aeb6c6;
  --accent: #ef233c;
  --accent-2: #ff4d6d;
  --blue: #60a5fa;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239, 35, 60, 0.28), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.20), transparent 32rem),
    linear-gradient(135deg, #080a10 0%, #101827 100%);
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.club-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff10;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mantiene proporción */
  display: block;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -0.06em; }
.header-copy { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.5; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.calculator-card,
.result-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.calculator-card { padding: 28px; }
.result-card { padding: 32px; display: flex; flex-direction: column; justify-content: center; min-height: 360px; }
.info-card { margin-top: 24px; padding: 22px 26px; }
.info-card p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.card-title { display: flex; gap: 14px; margin-bottom: 24px; }
.card-title h2 { margin-bottom: 6px; font-size: 1.4rem; letter-spacing: -0.03em; }
.card-title p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }

.step-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--card-strong);
  color: var(--accent-2);
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { display: grid; gap: 8px; }
.field span { color: #dce3ef; font-weight: 700; font-size: 0.92rem; }

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(8, 10, 16, 0.72);
  color: var(--text);
  font: inherit;
  outline: none;
}

select:focus,
input:focus {
  border-color: rgba(239, 35, 60, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 35, 60, 0.14);
}

.primary-button {
  width: 100%;
  margin-top: 20px;
  border: 0;
  border-radius: 20px;
  padding: 16px 18px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(239, 35, 60, 0.28);
  transition: transform .18s ease, filter .18s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); }

.result-topline {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.ftp-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 8px;
  font-size: clamp(8rem, 12vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}
.ftp-value small { font-size: 1.8rem; color: var(--accent-2); letter-spacing: -0.02em; }
.result-detail { color: #e6ecf7; font-weight: 700; }
.note { margin: 18px 0 0; color: var(--muted); line-height: 1.5; }

.zone-preview {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin-top: 28px;
}
.zone-preview span { height: 12px; border-radius: 999px; }
.zone-preview span:nth-child(1) { background: #9ca3af; }
.zone-preview span:nth-child(2) { background: #3b82f6; }
.zone-preview span:nth-child(3) { background: #22c55e; }
.zone-preview span:nth-child(4) { background: #f59e0b; }
.zone-preview span:nth-child(5) { background: #fb7185; }
.zone-preview span:nth-child(6) { background: #ef4444; }
.zone-preview span:nth-child(7) { background: #8b5cf6; }

@media (max-width: 820px) {
  .club-header, .hero-grid { grid-template-columns: 1fr; }
  .club-header { align-items: flex-start; flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; }
  .result-card { min-height: 280px; }
}
