/* Vitality Sportswear — Formulario de Leads
   Hoja de estilos principal */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f4;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #262626;
  --accent: #0a0a0a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Diagonal stripe pattern como textura deportiva sutil */
.stripes-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.015) 40px,
    rgba(0,0,0,0.015) 41px
  );
  pointer-events: none;
  z-index: 0;
}

/* Speed-lines decorativas (esquinas) — sensación de movimiento */
.speed-lines {
  position: fixed;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}
.speed-lines.top-right { top: 32px; right: 32px; }
.speed-lines.bottom-left { bottom: 32px; left: 32px; transform: rotate(180deg); }

.speed-lines span {
  position: absolute;
  right: 0;
  height: 2px;
  background: var(--black);
  transform-origin: right;
  animation: speedDash 2.8s ease-in-out infinite;
}
.speed-lines span:nth-child(1) { top: 20%;  width: 70%; animation-delay: 0s; }
.speed-lines span:nth-child(2) { top: 40%;  width: 100%; animation-delay: 0.25s; }
.speed-lines span:nth-child(3) { top: 60%;  width: 55%; animation-delay: 0.5s; }
.speed-lines span:nth-child(4) { top: 80%;  width: 85%; animation-delay: 0.75s; }

@keyframes speedDash {
  0%, 100% { transform: scaleX(0.6); opacity: 0.3; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

/* Marcas deportivas en esquinas del contenedor */
.container::before,
.container::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  opacity: 0.35;
  pointer-events: none;
}
.container::before {
  top: 24px; left: 4px;
  border-right: none;
  border-bottom: none;
}
.container::after {
  bottom: 40px; right: 4px;
  border-left: none;
  border-top: none;
}

/* HEADER */
.header {
  border-bottom: 2px solid var(--black);
  padding-bottom: 32px;
  margin-bottom: 48px;
  position: relative;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Línea de velocidad en el header */
.header::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 80px;
  height: 2px;
  background: var(--black);
  transform: translateY(2px);
  animation: drawLine 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes drawLine {
  from { transform: translateY(2px) scaleX(0); transform-origin: left; }
  to   { transform: translateY(2px) scaleX(1); transform-origin: left; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.brand-logo {
  height: 100px;
  opacity: 0.9;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.brand-logo:hover {
  opacity: 1;
  transform: scale(1.04) rotate(-1deg);
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
}

.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--black);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--black);
  border-radius: 50%;
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title .accent {
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 0;
  height: 10px;
  background: var(--black);
  z-index: -1;
  opacity: 0.12;
  animation: highlightGrow 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

@keyframes highlightGrow {
  from { width: 0; }
  to   { width: 100%; }
}

.hero-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.6;
}

/* PROGRESS BAR */
.progress-wrap {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.progress-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #000 0%, #333 50%, #000 100%);
  background-size: 200% 100%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: shimmer 2.2s linear infinite;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: -3px;
  width: 10px; height: 10px;
  background: var(--black);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0,0,0,0.35);
  animation: pulseRing 1.6s ease-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.progress-text {
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* FORM */
.form-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.form-section:last-of-type {
  border-bottom: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chevron deportivo al inicio de cada sección */
.question-number {
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  transition: color 0.3s ease;
}

.question-number::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transform-origin: left;
  transform: scaleX(0.4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-section.visible .question-number::before {
  transform: scaleX(1);
}

.form-section.visible .question-number {
  color: var(--black);
}

.question {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--black);
}

.question-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
  font-style: italic;
}

/* Option cards */
.options {
  display: grid;
  gap: 10px;
}

.option {
  position: relative;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

/* Barra diagonal que entra al hacer hover */
.option-label::before {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 4px; height: 100%;
  background: var(--black);
  transform: skewX(-18deg);
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.option-label:hover {
  border-color: var(--black);
  transform: translateX(6px);
  box-shadow: 4px 4px 0 0 var(--black);
}

.option-label:hover::before {
  left: 0;
}

.option-indicator {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gray-400);
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.option input[type="radio"] + .option-label .option-indicator {
  border-radius: 50%;
}

.option input:checked + .option-label {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  transform: translateX(6px);
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.15);
  animation: checkPulse 0.35s ease;
}

.option input:checked + .option-label::before {
  left: 0;
  background: var(--white);
}

@keyframes checkPulse {
  0%   { transform: translateX(6px) scale(1); }
  40%  { transform: translateX(6px) scale(1.02); }
  100% { transform: translateX(6px) scale(1); }
}

.option input:checked + .option-label .option-indicator {
  border-color: var(--white);
  background: var(--white);
}

.option input[type="radio"]:checked + .option-label .option-indicator::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
}

.option input[type="checkbox"]:checked + .option-label .option-indicator::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* Contact inputs */
.contact-grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.input-group {
  position: relative;
}

.input-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.input-label .required {
  color: var(--black);
  margin-left: 2px;
}

.input-group::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--black);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.input-group:focus-within::after {
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  font-family: inherit;
  font-size: 16px;
  background: transparent;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-bottom-color: var(--gray-200);
}

.input-field::placeholder {
  color: var(--gray-400);
}

/* Honeypot anti-bots — oculto visualmente */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* SUBMIT */
.submit-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 22px 32px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Sweep diagonal (flash deportivo) */
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-submit:hover::before {
  left: 140%;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 0 rgba(0,0,0,0.12);
}

.btn-submit:active {
  transform: translateY(-1px);
}

/* Spinner al enviar */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit.loading .btn-spinner { display: inline-block; }
.btn-submit.loading .arrow { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .arrow {
  transition: transform 0.2s ease;
}

.btn-submit:hover .arrow {
  transform: translateX(4px);
}

.form-footer {
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 1px;
}

/* ERROR + SUCCESS states */
.error-msg {
  display: none;
  padding: 16px;
  background: var(--gray-100);
  border-left: 3px solid var(--black);
  font-size: 14px;
  margin-bottom: 20px;
}

.error-msg.visible { display: block; }

.success-screen {
  display: none;
  text-align: center;
  padding: 80px 24px;
  animation: fadeIn 0.6s ease;
}

.success-screen.visible {
  display: block;
}

.success-mark {
  font-family: 'Anton', sans-serif;
  font-size: 120px;
  line-height: 1;
  margin-bottom: 24px;
}

/* Check animado con SVG (trazo que se dibuja) */
.success-check {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: block;
}
.success-check .ring {
  fill: none;
  stroke: var(--black);
  stroke-width: 3;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: drawCircle 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.success-check .tick {
  fill: none;
  stroke: var(--black);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawTick 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.success-msg {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respeta preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 32px 20px 60px; }
  .container::before,
  .container::after { display: none; }
  .speed-lines { display: none; }
  .hero-title { font-size: 36px; }
  .option-label { padding: 14px 16px; font-size: 14px; }
  .btn-submit { padding: 18px 24px; font-size: 15px; }
}
