:root {
  --ffcv-primary: #154576;
  --ffcv-primary-hover: #0a1f3c;
  --ffcv-bg-main: #f8fafc;
  --ffcv-bg-card: #ffffff;
  --ffcv-text-main: #0f172a;
  --ffcv-text-muted: #64748b;
  --ffcv-border: #e2e8f0;
  --ffcv-border-focus: #3b82f6;
  --ffcv-ring: rgba(206, 170, 95, 0.3);
  --ffcv-success: #ceaa5f;
  --ffcv-danger: #ef4444;
  --ffcv-radius-lg: 16px;
  --ffcv-radius-md: 12px;
  --ffcv-radius-sm: 8px;
  --ffcv-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --ffcv-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ffcv-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base & Typography */
#ffcv-formulario-root.ffcv-shell,
#ffcv-buscador-root.ffcv-buscador-shell {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ffcv-text-main);
  background: var(--ffcv-bg-main);
  border-radius: var(--ffcv-radius-lg);
  box-shadow: var(--ffcv-shadow-lg);
  overflow: hidden;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root.ffcv-shell *,
#ffcv-buscador-root.ffcv-buscador-shell * {
  box-sizing: border-box;
}

/* Main Form Area */
#ffcv-formulario-root .ffcv-main {
  padding: 3rem 4rem;
  background: var(--ffcv-bg-card);
}

#ffcv-formulario-root .ffcv-header {
  margin-bottom: 3rem;
  text-align: center;
}

#ffcv-formulario-root .ffcv-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

#ffcv-formulario-root .ffcv-header p {
  color: var(--ffcv-text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Stepper - Much cleaner and spacious */
#ffcv-formulario-root .ffcv-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

#ffcv-formulario-root .ffcv-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--ffcv-border);
  z-index: 1;
}

#ffcv-formulario-root .ffcv-stepper span {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ffcv-bg-card);
  border: 2px solid var(--ffcv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ffcv-text-muted);
  transition: all 0.3s ease;
}

#ffcv-formulario-root .ffcv-stepper span::after {
  content: attr(title);
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px !important;
  font-weight: 500;
  color: var(--ffcv-text-muted);
  white-space: nowrap;
}

#ffcv-formulario-root .ffcv-stepper span.active {
  border-color: var(--ffcv-primary);
  background: var(--ffcv-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--ffcv-ring);
}

#ffcv-formulario-root .ffcv-stepper span.active::after {
  color: var(--ffcv-primary);
  font-weight: 700;
}

#ffcv-formulario-root .ffcv-stepper span.done {
  border-color: #0a1f3c;
  background: #0a1f3c;
  color: #ffffff;
}

/* Form Steps */
#ffcv-formulario-root .ffcv-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

#ffcv-formulario-root .ffcv-step.active {
  display: block;
}

#ffcv-formulario-root .ffcv-step h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ffcv-border);
  color: var(--ffcv-text-main);
}

/* Fields & Grids */
#ffcv-formulario-root .ffcv-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

#ffcv-formulario-root .ffcv-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
#ffcv-formulario-root .ffcv-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

#ffcv-formulario-root .ffcv-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#ffcv-formulario-root .ffcv-form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ffcv-text-main);
}



/* Inputs */
#ffcv-formulario-root .ffcv-form input[type="text"],
#ffcv-formulario-root .ffcv-form input[type="email"],
#ffcv-formulario-root .ffcv-form input[type="tel"],
#ffcv-formulario-root .ffcv-form input[type="date"] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 1px solid var(--ffcv-border);
  border-radius: var(--ffcv-radius-md);
  background: #ffffff;
  color: var(--ffcv-text-main);
  transition: all 0.2s ease;
  box-shadow: var(--ffcv-shadow-sm);
}

#ffcv-formulario-root .ffcv-form input[readonly] {
  background: var(--ffcv-bg-main);
  color: var(--ffcv-text-muted);
  cursor: not-allowed;
}

#ffcv-formulario-root .ffcv-form input:focus {
  outline: none;
  border-color: var(--ffcv-border-focus);
  box-shadow: 0 0 0 4px var(--ffcv-ring);
}

/* Help text */
#ffcv-formulario-root .ffcv-help {
  font-size: 0.85rem;
  color: var(--ffcv-text-muted);
  margin: 0.25rem 0 0 0;
}

/* Upload Area - Much larger and clearer */
#ffcv-formulario-root .ffcv-upload {
  border: 2px dashed var(--ffcv-border);
  border-radius: var(--ffcv-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: var(--ffcv-bg-main);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

#ffcv-formulario-root .ffcv-upload:hover,
#ffcv-formulario-root .ffcv-upload.dragover {
  border-color: var(--ffcv-primary);
  background: rgba(29, 78, 216, 0.05);
}

#ffcv-formulario-root .ffcv-upload p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--ffcv-text-main);
}

#ffcv-formulario-root .ffcv-upload-meta {
  font-size: 0.9rem;
  color: var(--ffcv-text-muted);
  display: block;
  margin-bottom: 1.5rem;
}

#ffcv-formulario-root .ffcv-upload input[type="file"] {
  display: block;
  margin: 0 auto;
}

#ffcv-formulario-root .ffcv-file-name {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ffcv-primary);
}

/* Summary Grid */
#ffcv-formulario-root .ffcv-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

#ffcv-formulario-root .ffcv-summary-card {
  background: var(--ffcv-bg-main);
  border-radius: var(--ffcv-radius-md);
  padding: 1.5rem;
  border: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-summary-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ffcv-text-muted);
  margin: 0 0 1rem 0;
}

#ffcv-formulario-root .ffcv-summary-card p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: var(--ffcv-text-main);
}

/* Checkboxes */
#ffcv-formulario-root .ffcv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--ffcv-bg-main);
  border-radius: var(--ffcv-radius-md);
  border: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
}

#ffcv-formulario-root .ffcv-checkbox span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ffcv-text-main);
}

/* Buttons */
#ffcv-formulario-root .ffcv-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--ffcv-radius-md);
  border: none;
  background: var(--ffcv-primary);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--ffcv-shadow-md);
}

#ffcv-formulario-root .ffcv-btn:hover {
  background: var(--ffcv-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--ffcv-shadow-lg);
}

#ffcv-formulario-root .ffcv-btn.secondary {
  background: #ffffff;
  color: var(--ffcv-text-main);
  border: 1px solid var(--ffcv-border);
  box-shadow: var(--ffcv-shadow-sm);
}

#ffcv-formulario-root .ffcv-btn.secondary:hover {
  background: var(--ffcv-bg-main);
  border-color: #cbd5e1;
}

#ffcv-formulario-root .ffcv-btn.success {
  background: #0a1f3c;
}

#ffcv-formulario-root .ffcv-btn.success:hover {
  background: #059669;
}

#ffcv-formulario-root .ffcv-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

#ffcv-formulario-root .ffcv-btn[hidden] {
  display: none !important;
}

/* Validation */
#ffcv-formulario-root .ffcv-invalid {
  border-color: var(--ffcv-danger) !important;
}

#ffcv-formulario-root .ffcv-error {
  color: var(--ffcv-danger);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* Club Search Status */
#ffcv-formulario-root .ffcv-club-lookup {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

#ffcv-formulario-root .ffcv-club-status {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

#ffcv-formulario-root .ffcv-club-status.idle { background: #f1f5f9; color: #475569; }
#ffcv-formulario-root .ffcv-club-status.loading { background: #eff6ff; color: #1d4ed8; }
#ffcv-formulario-root .ffcv-club-status.ok { background: #ecfdf5; color: #047857; }
#ffcv-formulario-root .ffcv-club-status.danger { background: #fef2f2; color: #b91c1c; }

/* Responsive adjustments */
@media (max-width: 768px) {
  #ffcv-formulario-root .ffcv-top-info,
  #ffcv-formulario-root .ffcv-side {
    padding: 2rem;
  }
  
  #ffcv-formulario-root .ffcv-main {
    padding: 2rem;
  }

  #ffcv-formulario-root .ffcv-grid.cols-2,
  #ffcv-formulario-root .ffcv-grid.cols-3,
  #ffcv-formulario-root .ffcv-summary-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #ffcv-formulario-root .ffcv-stepper {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  #ffcv-formulario-root .ffcv-stepper::before {
    display: none;
  }
}

/* Additional Card Layout for Top Info */
#ffcv-formulario-root .ffcv-top-info {
  background: var(--ffcv-bg-main);
  padding: 3rem 4rem 1rem 4rem;
  border-bottom: 1px solid var(--ffcv-border);
}

#ffcv-formulario-root .ffcv-intro-header h3 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
  color: var(--ffcv-primary);
}

#ffcv-formulario-root .ffcv-intro-header p {
  font-size: 1.1rem;
  color: var(--ffcv-text-muted);
  margin: 0 0 2.5rem 0;
}

#ffcv-formulario-root .ffcv-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

#ffcv-formulario-root .ffcv-resource-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--ffcv-border);
  border-radius: var(--ffcv-radius-md);
  padding: 1.5rem;
  box-shadow: var(--ffcv-shadow-sm);
  transition: all 0.2s ease;
}

#ffcv-formulario-root .ffcv-resource-card:hover {
  box-shadow: var(--ffcv-shadow-md);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

#ffcv-formulario-root .ffcv-resource-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
}

#ffcv-formulario-root .ffcv-resource-icon.blue-icon {
  background: #eff6ff;
  color: #2563eb;
}

#ffcv-formulario-root .ffcv-resource-icon.green-icon {
  background: #ecfdf5;
  color: #059669;
}

#ffcv-formulario-root .ffcv-resource-content h4 {
  margin: 0 0 0.75rem 0;
  font-size: 24px !important;
  color: var(--ffcv-text-main);
  font-weight: 700;
}

#ffcv-formulario-root .ffcv-resource-content a {
  display: flex;
  align-items: center;
  color: var(--ffcv-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

#ffcv-formulario-root .ffcv-resource-content a svg {
  margin-right: 0.5rem;
  color: #94a3b8;
}

#ffcv-formulario-root .ffcv-resource-content a:hover {
  color: var(--ffcv-primary);
}

#ffcv-formulario-root .ffcv-resource-content a:hover svg {
  color: var(--ffcv-primary);
}

@media (max-width: 768px) {
  #ffcv-formulario-root .ffcv-resources-grid {
    grid-template-columns: 1fr;
  }
}




.ffcv-copyright-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
}



/* Evitar asteriscos duplicados del tema de WP */
.ffcv-form label .required, .ffcv-form label::after, .ffcv-form label::before, .ffcv-form .gfield_required { display: none !important; content: none !important; }